Skip to content

Add Datadog plugin settings API#46744

Merged
bernardjkim merged 5 commits intomasterfrom
bernard/datadog-plugin-api
Sep 19, 2024
Merged

Add Datadog plugin settings API#46744
bernardjkim merged 5 commits intomasterfrom
bernard/datadog-plugin-api

Conversation

@bernardjkim
Copy link
Copy Markdown
Contributor

Follow up to #46271.

This PR adds the API for the Datadog plugin settings. This is required to support the hosted version of the plugin.

@bernardjkim bernardjkim added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Sep 19, 2024
@github-actions github-actions Bot added size/md tctl tctl - Teleport admin tool ui labels Sep 19, 2024
Comment thread web/packages/design/src/assets/images/icons/datadog.svg
Comment thread api/types/constants.go
Comment thread api/types/plugin.go
return trace.Wrap(err)
}

staticCreds := p.Credentials.GetStaticCredentialsRef()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was trying to understand how the static credentials ref work, and I'm not entirely sure I understood everything, so take this with a grain of salt.

Do we need to extend the PluginStaticCredentials to have a new method that returns two Keys? So that we can return the API Key and the Application Key that is required to set up the Datadog access plugin?

Copy link
Copy Markdown
Contributor Author

@bernardjkim bernardjkim Sep 19, 2024

Choose a reason for hiding this comment

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

I believe the static credentials reference can be used as a reference to a set of credentials. You can check the follow up PR in lib/web/plugindescriptor.go to see how this is done https://github.com/gravitational/teleport.e/pull/4992 .

@bernardjkim bernardjkim added this pull request to the merge queue Sep 19, 2024
Merged via the queue into master with commit de5c648 Sep 19, 2024
@bernardjkim bernardjkim deleted the bernard/datadog-plugin-api branch September 19, 2024 20:49
@public-teleport-github-review-bot
Copy link
Copy Markdown

@bernardjkim See the table below for backport results.

Branch Result
branch/v16 Failed

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

Labels

no-changelog Indicates that a PR does not require a changelog entry size/md tctl tctl - Teleport admin tool ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants