1
0
Fork 0

k/matrix: add slack-bridge ingress and update app credentials

This commit is contained in:
Danny Grove 2024-03-11 16:32:03 -07:00
parent 9b012b72da
commit 4d463021b5
Signed by: drgrove
GPG Key ID: E1F4160251DB4C2E
3 changed files with 40 additions and 6 deletions

View File

@ -73,7 +73,10 @@ module "digitalocean_database_cluster" {
name = "telegram",
create_default_superuser = true,
}, {
name = "slack",
name = "mautrix_slack",
create_default_superuser = true,
}, {
name = "matrix_slack_appservice",
create_default_superuser = true,
}, {
name = "media_repo",

View File

@ -4,16 +4,16 @@ metadata:
name: matrix-appservice-slack
type: Opaque
stringData:
config.yaml: ENC[AES256_GCM,data:wgpE6EZr1o7qvQdXhJgB3Uz47LFHFuN/b56qAgodf7GzNt5BAaPS7c0EiIZBcjZaZtg5BjGnohXsnyd2s/9Gww/ImZqAIk9nf7yTDYNoKeOx67r0dzTex6EE/ZjfTtKRdW6b+LZgehCT6TjutxnfY6HVFdT9MLsdSzAyWdD4e1q3imK6KGn4GMWx7xFqDMmjzUWzU/XC4dc7CxVfDZcNX5CZpCDUw7M8qz3OVf+afIRZPwy67eUG9MuueyLZpC+AD3OX4PFvsM7hlavIZWE3NL2yWloiMsqVA15IsfZkPvOjFSsOba7Xh8ko59HTIhaOBE4WCC4GI7QiWZU9/oh1497gq2ZKMc9jVbFMcz5psMWSwARIWobM+wHTRBSY7RmQqCyRkBqqL+gpKk0ZYgdOrtIQUOxlkRs3sNy+2tfpyvZxj+WxitUpsfMGQWhOzB7xzhTe6bsFLHFf3WCS3/JkbbVF7jAz8Ky+2l5WFwNGO8DR0oRWjwYiFNbY1id0JiL0x/zhLAhtAZoG9wXYkDcaOUZLPBf19uNCtPpxlcSoh8Z22M4gvZsgdRqGeaW8L2CRPmFpvlIkMslnPmW4a0ZSGKF/prPvTQ8Ize7osR0gP9kANgNaYrZjXu/mvbnzwkyN5Ak9HTh5UGEKZ5BdjUrZ1CDefZb5JCYqJvRKZEAdaNr2ARVUN+a0qSj9ng4r7v+vS6wb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MblEEpkLVo42n2Vaaq2ihMtzXLeq4qd+g7PIQf47RNWtP78+T8csxzlPG7s+c8UPZCoKoVw9EFBXS7SBE=,iv:xNXCfyNWCbWgeDL0oEkPFSxtPxH9SNcUb6nfGo2bRaU=,tag:uy9IUhzGgKgrAI0Fu+hR1g==,type:str]
slack.yaml: ENC[AES256_GCM,data:cIvPkVdSA5gJl0jj1BkwnHwGsJoh2971kphae1IEEirwt9oJ71T0sR9ZAPqhXHlhK8LkYulZX9CcEeMuRwysh4DaFynqBF3J7O7xJnJP9jFC3QopsVnaEhRARnGlLRMqJuOVQFeUixm+71eJ1DI6ApfdfIDwR8KFJfx0+6TWlgeVNNQBu6Vhxlbf/x8sUZEPU6M/FqPaP6Evara0cWSKJ1NIhaosQh6cghp6bxoOOJtrLweGwcKHv2QWCPajUlVv5aHl3qK9djoGDc50cTzD6HPCq6swzn2coI5i2uGNVMg2s6Mxp1zcB6/5PgOeZon2vhlrwsq6T53MzIjyQaocGVXsqQWXZO9eeG0E4ZJxp1lz7DmiwLr9zOrz+9WGWkPkVGII7uskYsUIpOI5qnJp5pkXO828KCSrzlOKdqHu7L7UqYcxnbjYvWaEnOje9snoXMNykYwoLS1Pmb7Sq7jXxQTgMjYjquNVp/yKHKCX2gBmSptYZtcCqU4=,iv:BU3Sz/tFhVn+1uNVYtHT5Db+p8KEqt66BWUhig9lK4o=,tag:SZAujz6AQZPkBYp0QweuCQ==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-01-19T07:52:51Z"
mac: ENC[AES256_GCM,data:eerncWbi85ZV3KYgLcRiSYVDF9WtlTfTS7XnMN3rlX8O4T2c8K76G1KIsL92U3pIFGCJOg1KUPrMajVGiWdXIsypT/J/BKkiijetk6z5javtc1JmuWC9V4VA0DqpHnL5+Nf7EHewxa8GWWe9bGtwOkkcWlujRfu2algCwUmtCUY=,iv:mWA0wJcJl/S5rbYJXIxuwouXsNg+pB/zmXvv0D7lA2o=,tag:+VzRB2Pixsv4jDcnlEnKLw==,type:str]
lastmodified: "2024-03-11T23:12:03Z"
mac: ENC[AES256_GCM,data://wtLgQoGiN4oybs2nvw2v1aH7qIAbOOCqEpLSCX+vsIJz3Niqh3dZeuuh/7Rup+9ETobECNeL6RvnCGRvfGcbqSOiKdIl7kerbJJkaYCB3vdJwPaglwBceob5VuH+dI/T5bmfAX9ghyUirK84yLPq8DW9VYus83BpLnzBBGDiY=,iv:V8WWkDzZr772Qo+JNiYggPYGQgbZMN/TbvrpALAofE4=,tag:TbaMhN4Q9ICqMvBnQfKqHA==,type:str]
pgp:
- created_at: "2024-01-11T20:55:07Z"
enc: |-

View File

@ -118,4 +118,35 @@ spec:
name: element-web
port:
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: appservice-slack
labels:
app.kubernetes.io/name: appservice-slack
app.kubernetes.io/part-of: matrix
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/configuration-snippet: |
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "frame-ancestors 'self'";
spec:
ingressClassName: nginx
tls:
- hosts:
- slack-bridge.matrix.distrust.co
secretName: slack-bridge-matrix-distrust-co-tls
rules:
- host: slack-bridge.matrix.distrust.co
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: appservice-slack
port:
name: rtm