Wire Datadog connector bootstrap config

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-05-29 14:59:05 +02:00
parent 950b87f426
commit 3aafdad7f5
3 changed files with 5 additions and 1 deletions

View File

@@ -122,6 +122,8 @@
# CONNECTOR_VERCEL_INTEGRATION_SLUG=
# CONNECTOR_MONDAY_CLIENT_ID=
# CONNECTOR_MONDAY_CLIENT_SECRET=
# CONNECTOR_DATADOG_CLIENT_ID=
# CONNECTOR_DATADOG_CLIENT_SECRET=
# PostHog Cloud (US + EU) OAuth needs NO config: it uses the CIMD public-client
# flow (no app registration, no client_secret), auto-enabled when this
# deployment is publicly reachable at PROBOD_BASE_URL. Self-hosted PostHog uses

View File

@@ -427,6 +427,7 @@ func (b *Builder) Build() (*probodconfig.FullConfig, error) {
"NETLIFY",
"CLICKUP",
"MONDAY",
"DATADOG",
} {
clientID := b.getEnv("CONNECTOR_" + provider + "_CLIENT_ID")
if clientID == "" {
@@ -518,6 +519,7 @@ func (b *Builder) validateRequired() error {
{"CONNECTOR_NETLIFY", []string{"CLIENT_SECRET"}},
{"CONNECTOR_CLICKUP", []string{"CLIENT_SECRET"}},
{"CONNECTOR_MONDAY", []string{"CLIENT_SECRET"}},
{"CONNECTOR_DATADOG", []string{"CLIENT_SECRET"}},
{"CONNECTOR_VERCEL", []string{"CLIENT_SECRET", "INTEGRATION_SLUG"}},
}

View File

@@ -521,7 +521,7 @@ func TestBuilder_Build_AccessReviewConnectors(t *testing.T) {
// CONNECTOR_VERCEL_INTEGRATION_SLUG env var.
providers := []string{
"GITLAB", "BITBUCKET", "HEROKU", "PAGERDUTY",
"ASANA", "NETLIFY", "CLICKUP", "MONDAY",
"ASANA", "NETLIFY", "CLICKUP", "MONDAY", "DATADOG",
}
env := requiredEnv()