Page MenuHomeDevCentral

Integrate Sentry and GitHub
ClosedPublic

Authored by dereckson on Mar 25 2023, 16:22.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 14:30
Unknown Object (File)
Sat, Dec 7, 18:52
Unknown Object (File)
Sat, Dec 7, 18:50
Unknown Object (File)
Fri, Dec 6, 21:32
Unknown Object (File)
Wed, Dec 4, 17:41
Unknown Object (File)
Wed, Dec 4, 05:23
Unknown Object (File)
Thu, Nov 28, 13:41
Unknown Object (File)
Thu, Nov 28, 00:16
Subscribers
None

Details

Summary

A custom GitHub application has been created in the Nasqueron account,
and credentials published to Vault under apps/sentry/github key.

The keys under apps/sentry/github match the expected settings names,
that allows the use of the for loop instead of querying the 6 of them.

Those credentials are in apps/ and not ops/secrets/ as they don't need
to be deployed by Salt, they can directly been fetched by Sentry config.
As such, the updated Vault policy is the one used by Sentry config.

Reference: https://develop.sentry.dev/integrations/github/

Ref T1806

Test Plan

Deploy on docker-002 for sentry_web

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
Unit
No Test Coverage
Branch
sentry-github
Build Status
Buildable 4602
Build 4874: arc lint + arc unit

Event Timeline

dereckson created this revision.

⚠ A little tricky to test this as it will be deployed to live container. ⚠

I'd suggest to first deploy the Vault policy, then spin a new test container
and see if it has correctly the settings: the web container is only a client,
any automated write occurs in other containers, so that should be safe, and
won't disrupt our instance.

Test container:

+    sentry_web_test:
+      app_port: 26081
+      host: sentry.nasqueron.org
+      command: run web
+      realm: nasqueron
+      network: sentry
+
dereckson added inline comments.
roles/vault/policies/files/sentry.hcl
16

!! Configuration error: ConfigurationError('Forbidden: 1 error occurred:\n\t* permission denied\n\n, on get https://172.27.27.7:8200/v1/apps/data/sentry/github')

Fix integer for GitHub application ID

This revision is now accepted and ready to land.Mar 25 2023, 17:26
This revision was landed with ongoing or failed builds.Mar 25 2023, 17:27
This revision was automatically updated to reflect the committed changes.