Skip to content

feat: add client-credentials OAuth flow for API testing#229

Closed
scottgerring wants to merge 1 commit into
mainfrom
feat/client-creds-for-synthetics
Closed

feat: add client-credentials OAuth flow for API testing#229
scottgerring wants to merge 1 commit into
mainfrom
feat/client-creds-for-synthetics

Conversation

@scottgerring

Copy link
Copy Markdown
Member

This'll let us exchange client credentials for a bearer token we can use for synthetics testing of the APIs.

@scottgerring scottgerring force-pushed the feat/client-creds-for-synthetics branch from bcf56f2 to c0fd33f Compare March 6, 2026 14:17
createSsmParameterReferences: false,
});

// Secret for the api-testing OAuth client (used by Datadog Synthetics)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For AWS, we let secrets manager give us a secret. We can pull it out by hand and provide it to Datadog synthetics for a given env.


# Secret for the api-testing OAuth client (used by Datadog Synthetics).
# Inject as APITESTING_CLIENT_SECRET into the migration service environment.
resource "random_password" "api_testing_client_secret" {

@scottgerring scottgerring Mar 6, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested this bit because we're not Azure yet, but looks about right!

if (request.IsClientCredentialsGrantType())
{
// Client credentials flow: application-level authentication (no user context).
// Used for service-to-service calls such as Datadog Synthetics API testing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch'll fill out later on if/when we have services synchronously calling each other

Comment thread docker-compose.yml
KAFKA__SCHEMAREGISTRY: "http://kafka:8082"
KAFKA__GROUPID: "stickerlandia-user-management"
DEPLOYMENT_HOST_URL: ${DEPLOYMENT_HOST_URL}
APITESTING_CLIENT_SECRET: stickerlandia-api-testing-secret-2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No secrets in docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant