Skip to content

feat: Add support for Dynatrace Platform tokens - #257

Merged
heinzburgstaller merged 6 commits into
mainfrom
feat/support-dt-platform-token
Feb 3, 2026
Merged

heinzburgstaller merged 6 commits into
mainfrom
feat/support-dt-platform-token

Conversation

@heinzburgstaller

Copy link
Copy Markdown
Contributor

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 platformToken to support authentication in backend.

✔️ Common checklist

  • Added tests for new functionality and regression tests for bug fixes
  • Screenshots of before and after attached (for UI changes)
  • Added or updated documentation (if applicable)
  • Helpful resources linked (if applicable)

@heinzburgstaller
heinzburgstaller requested a review from a team as a code owner February 2, 2026 07:17
@dietmar-91
dietmar-91 self-requested a review February 2, 2026 11:44
@heinzburgstaller

Copy link
Copy Markdown
Contributor Author

@copilot review this PR

Copilot AI commented Feb 2, 2026

Copy link
Copy Markdown
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.

Copilot AI left a comment

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.

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 platformToken configuration parameter for Dynatrace environments
  • Refactored the DynatraceEnvironmentConfig type 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

Comment thread README.md Resolved
Comment thread README.md Resolved

@dietmar-91 dietmar-91 left a comment

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.

lgtm

@heinzburgstaller
heinzburgstaller merged commit d579303 into main Feb 3, 2026
2 checks passed
@heinzburgstaller
heinzburgstaller deleted the feat/support-dt-platform-token branch February 3, 2026 12:52
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.

4 participants