Repository navigation
feat: Add support for Dynatrace Platform tokens - #257
Merged
Merged
Conversation
dietmar-91
self-requested a review
February 2, 2026 11:44
Contributor
Author
|
@copilot review this PR |
Contributor
|
@heinzburgstaller I've opened a new pull request, #259, to work on those changes. Once the pull request is ready, I'll request review from you. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for Dynatrace Platform tokens as an alternative authentication strategy alongside the existing OAuth client credentials flow. Previously, only OAuth authentication was supported for executing DQL queries against Dynatrace environments.
Changes:
- Introduced a new
platformTokenconfiguration parameter for Dynatrace environments - Refactored the
DynatraceEnvironmentConfigtype to support both OAuth and Platform token authentication via discriminated union types - Updated documentation with examples and permission notes for both authentication methods
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/dql-backend/src/service/dynatraceApi.ts | Refactored configuration types into discriminated unions and added conditional logic to use platform tokens when configured |
| plugins/dql-backend/src/service/dynatraceApi.test.ts | Added test case verifying platform token authentication flow |
| plugins/dql-backend/src/utils/configParser.test.ts | Added test case for parsing platform token configuration |
| README.md | Added configuration examples for platform tokens and permission notes for various features |
| .github/instructions/plugins-dql-backend.instructions.md | Updated coding guidelines with platform token configuration schema |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
2 of 4 tasks
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.
Introduction
Support Dynatrace Platform tokens as authentication strategy for DQL queries.
Technical solution before this PR
Before only OAuth client credentials were supported in backend.
Technical solution after this PR
Added new configuration parameter
platformTokento support authentication in backend.✔️ Common checklist