PMM-14880 Create API endpoint for demo user credentials#5157
Open
PMM-14880 Create API endpoint for demo user credentials#5157
Conversation
- Grafana login page can't read any data from disk or ENV on login page - Introduce a dedicated API endpoint `/v1/users/demo/credentials` to return credentials for demo user - this endpoint is hidden and not shown in Swagger file - endpoint reads ENV variables PMM_DEMO_USER_USERNAME and PMM_DEMO_USER_PASSWORD
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3 #5157 +/- ##
==========================================
+ Coverage 47.74% 47.79% +0.05%
==========================================
Files 410 410
Lines 41969 41974 +5
==========================================
+ Hits 20036 20062 +26
+ Misses 19953 19935 -18
+ Partials 1980 1977 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
JiriCtvrtka
approved these changes
Mar 18, 2026
ademidoff
approved these changes
Mar 19, 2026
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.
/v1/users/demo/credentialsto return credentials for demo user.PMM_DEMO_USER_USERNAMEandPMM_DEMO_USER_PASSWORDPMM-14880
Link to the Feature Build: SUBMODULES-4274