Skip to content

Commit

Permalink
chore: improve sentry for frontends (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve authored Jul 23, 2024
1 parent f8a4b21 commit 89e4fc9
Show file tree
Hide file tree
Showing 17 changed files with 9,803 additions and 162 deletions.
15 changes: 15 additions & 0 deletions .kontinuous/env/dev/templates/frontend.sealed-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: "true"
name: frontend-secret
spec:
encryptedData:
SENTRY_AUTH_TOKEN: AgC9375+wcKRTtihuRR2e/Z533lVKm6Uck1od1kEQTDnaN9qKQI0RMFu84Iq4vKNs5hBnlvHf8UYn/dC3e6dYqIg00Z5YC/BVstAwYO4T+E9ETZiPCtDkP8p83E35ragNr3PpY8W9xTd1LVdVsHtWgoW4LG5CC4UMRqhHAbA/Hs/QuOn010uwoqCLik2ZHA8SFITI7p72H9loWxlVhj69AjR0aQXuZIfMIewb0X3IWQx10FVZP0z5W3sXEZnzsQYGmPC35oAxa8rf5ee4X78qLYPJ/4Tjm/atwkVftqDs6rkKbc4hEIcyPzD5yo2h94g9f2bC0QBz/br1gZhWRuNIgekOVBnOSNp3Es7zEGDw0PRobuXLf6CRrdiWPXWWt6J6UAi/OcdAtCEJnU0Q0P9hgYTYVfZURcseqfXfTEgvdVL4u6CA/zv2TJ3UBB3i+2efXRtJJ84n/BsuUI9ASN50Fa1rGOsRgfHu2RRm+tC/+MvqQJ84yxenmxv9FZLYQIGS4ZkuXvQ1NGJOxYDUqsGaZmgbvl5mjM2zjJ3Ta4ibEjcvT8u1EOs2JaYT1JnEOqy/SZXFI4duSGWlaRmWesdEjgEz/yuSy71d1ay4tB3cBnN9FlbYPKsYR7OGOiSr/dAEfVDZjSaIdS2afnh9FXFa8A7gj77/ZvTLWwiD80FMhf9nSWtbbUee61eE3g9nAplZr97Ls+SoO/Gi2nVurioI3CP4n6DY/I2ptKalKlo8NvnQze1eO8JPyDV8QsJKf/e90wgiUcgV6+0NenVb98fw0jJ
template:
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: "true"
name: frontend-secret
type: Opaque
15 changes: 0 additions & 15 deletions .kontinuous/env/dev/templates/www-secret.sealed-secret.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ backend:
secretKeyRef:
name: pg-app
key: PGDATABASE
- name: SENTRY_RELEASE
value: "{{.Values.global.branchSlug32}}"

frontend-usagers:
~chart: app
Expand Down Expand Up @@ -140,6 +142,14 @@ jobs:
NUXT_PUBLIC_MATOMO_HOST: "${FRONTEND_USAGERS_MATOMO_HOST}"
NUXT_PUBLIC_MATOMO_SITE_ID: "${FRONTEND_USAGERS_MATOMO_SITE_ID}"
NUXT_PUBLIC_SENTRY_DSN: "https://[email protected]/103"
SENTRY_RELEASE: "{{.Values.global.branchSlug32}}"
SENTRY_URL: "https://sentry.fabrique.social.gouv.fr"
SENTRY_ORG: incubateur
SENTRY_PROJECT: vao-usagers
secrets:
sentry_auth_token:
secretName: frontend-secret
secretKey: SENTRY_AUTH_TOKEN

build-frontend-bo:
use: build
Expand All @@ -158,6 +168,14 @@ jobs:
NUXT_PUBLIC_MATOMO_HOST: "${FRONTEND_BO_MATOMO_HOST}"
NUXT_PUBLIC_MATOMO_SITE_ID: "${FRONTEND_BO_MATOMO_SITE_ID}"
NUXT_PUBLIC_SENTRY_DSN: "https://[email protected]/104"
SENTRY_RELEASE: "{{.Values.global.branchSlug32}}"
SENTRY_URL: "https://sentry.fabrique.social.gouv.fr"
SENTRY_ORG: incubateur
SENTRY_PROJECT: vao-admin
secrets:
sentry_auth_token:
secretName: frontend-secret
secretKey: SENTRY_AUTH_TOKEN

migrations-db:
~needs: [build-migrations, init-db]
Expand Down
8 changes: 6 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ fileignoreconfig:
checksum: 1ad4f82701febd38af91d6e8a8e4a2e04ef641f29134305c09417b1e68033f64
- filename: .kontinuous/env/dev/templates/backend.configmap.yaml
checksum: 1a87514b01d542124d0707c3508c903a3d55ebdc8159d6fc80c6876799de22e5
- filename: .kontinuous/env/dev/templates/frontend.sealed-secret.yaml
checksum: 81df30b5b48c9d2ab036559b0c8a7b984193b6efe4ec1aa069bce823b943e83f
- filename: .kontinuous/env/dev/templates/smtp.sealed.secret.yaml
checksum: b43b48e350f4b1957598febc30e1c75517f69f34855dec00e621308ae9deb81e
- filename: .kontinuous/env/dev/templates/smtp/deployment.yaml
Expand Down Expand Up @@ -72,7 +74,7 @@ fileignoreconfig:
- filename: .kontinuous/prod/templates/pg.sealed.secret.yaml
checksum: ebaeaef58dff99ed0a70ace0cb1cfceb31c0656d921999e19ce183e2adc9431f
- filename: .kontinuous/values.yaml
checksum: fcdb09d92639f10b21b7893dfd2f9cbe19bbab0fb68dbf3973e5602de80ef071
checksum: 40913e433609d86128443db129e4b97da472b3f0811f4db61024ab2943051ca4
- filename: README.md
checksum: 3627cd363d1cfc640df689ce74d5467e13707a2cc9c44b0bffaba14f217296e2
- filename: _scripts/dev/local-node.dockerfile
Expand Down Expand Up @@ -133,6 +135,8 @@ fileignoreconfig:
checksum: 777a2c86e16769a1305d8fd2cd6a67eb195c2084855fe7fd0b6544af5028b72a
- filename: packages/backend/src/utils/regex.js
checksum: 9e58840c352b67fb278a7409352b7afc6c8a628fb30d19d13f0d52993a5d9463
- filename: packages/frontend-bo/Dockerfile
checksum: 2ba032561adc4ef237463114e8761fb3f7a754e062f0d192f7b38d31f80763b7
- filename: packages/frontend-bo/src/assets/Download.svg
checksum: 2845f88f98040035bf7e9434a9bd5fe5cb8d0dd28fd1d765dd9c6a0b440e49f7
- filename: packages/frontend-bo/src/components/connexion/email/validateToken.client.vue
Expand All @@ -154,7 +158,7 @@ fileignoreconfig:
- filename: packages/frontend-bo/src/pages/sejours/[idDemande].vue
checksum: 5e065bcbafcfbefc24c9cab2ba0026b2b7926bb8c9391434a7469c763c0b3c89
- filename: packages/frontend-usagers/Dockerfile
checksum: 8016caec96fd18371c86bf3ca2b4f51804351290a9d77aab24ef0266316df827
checksum: 4716f6a0de6f2dc2af6d8ac8abf11a253a5a719c231df5ae51c783e6148c42ed
- filename: packages/frontend-usagers/src/assets/Download.svg
checksum: a5c2caf47b1b715b2cf8240e9af9090061faae6261b21bc62173689f1666536e
- filename: packages/frontend-usagers/src/components/DS/synthese.vue
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (config.sentry.enabled) {
},
}),
],

release: config.sentry.release,
tracesSampleRate: 1.0,
});
}
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = {
dsn: process.env.SENTRY_DSN,
enabled: process.env.SENTRY_ENABLED === "true",
environment: process.env.SENTRY_ENVIRONMENT,
release: process.env.SENTRY_RELEASE,
},
smtp: {
auth: {
Expand Down
Loading

0 comments on commit 89e4fc9

Please sign in to comment.