feat: add client-credentials OAuth flow for API testing#229
Closed
scottgerring wants to merge 1 commit into
Closed
feat: add client-credentials OAuth flow for API testing#229scottgerring wants to merge 1 commit into
scottgerring wants to merge 1 commit into
Conversation
bcf56f2 to
c0fd33f
Compare
scottgerring
commented
Mar 6, 2026
| createSsmParameterReferences: false, | ||
| }); | ||
|
|
||
| // Secret for the api-testing OAuth client (used by Datadog Synthetics) |
Member
Author
There was a problem hiding this comment.
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.
scottgerring
commented
Mar 6, 2026
|
|
||
| # 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" { |
Member
Author
There was a problem hiding this comment.
Haven't tested this bit because we're not Azure yet, but looks about right!
scottgerring
commented
Mar 6, 2026
| if (request.IsClientCredentialsGrantType()) | ||
| { | ||
| // Client credentials flow: application-level authentication (no user context). | ||
| // Used for service-to-service calls such as Datadog Synthetics API testing. |
Member
Author
There was a problem hiding this comment.
This branch'll fill out later on if/when we have services synchronously calling each other
scottgerring
commented
Mar 6, 2026
| KAFKA__SCHEMAREGISTRY: "http://kafka:8082" | ||
| KAFKA__GROUPID: "stickerlandia-user-management" | ||
| DEPLOYMENT_HOST_URL: ${DEPLOYMENT_HOST_URL} | ||
| APITESTING_CLIENT_SECRET: stickerlandia-api-testing-secret-2025 |
Member
Author
There was a problem hiding this comment.
No secrets in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This'll let us exchange client credentials for a bearer token we can use for synthetics testing of the APIs.