Page MenuHomeDevCentral

Integrate Sentry and GitHub
ClosedPublic

Authored by dereckson on Mar 25 2023, 16:22.
Tags
None
Referenced Files
F3753162: D2920.id7441.diff
Sun, Nov 17, 23:37
F3753160: D2920.id7440.diff
Sun, Nov 17, 23:37
F3753159: D2920.id7439.diff
Sun, Nov 17, 23:37
F3753158: D2920.id7438.diff
Sun, Nov 17, 23:37
Unknown Object (File)
Sat, Nov 16, 14:36
Unknown Object (File)
Sat, Nov 16, 13:34
Unknown Object (File)
Sat, Nov 16, 13:26
Unknown Object (File)
Sat, Nov 16, 11:35
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 4603
Build 4875: 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.