Skip to content

PMM-14880 Create API endpoint for demo user credentials#5157

Open
maxkondr wants to merge 2 commits intov3from
PMM-14880-rta-pmm-demo
Open

PMM-14880 Create API endpoint for demo user credentials#5157
maxkondr wants to merge 2 commits intov3from
PMM-14880-rta-pmm-demo

Conversation

@maxkondr
Copy link
Copy Markdown
Contributor

@maxkondr maxkondr commented Mar 18, 2026

  • Grafana login page can't read any data from disk or ENV because it is processes on client side only.
  • Introduce a dedicated API endpoint /v1/users/demo/credentials to return credentials for demo user.
  • this endpoint doesn't require authentication.
  • due to previous point, this endpoint is hidden and not shown in Swagger file.
  • endpoint reads ENV variables PMM_DEMO_USER_USERNAME and PMM_DEMO_USER_PASSWORD

PMM-14880

Link to the Feature Build: SUBMODULES-4274

- 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
@maxkondr maxkondr self-assigned this Mar 18, 2026
@maxkondr maxkondr requested a review from a team as a code owner March 18, 2026 12:47
@maxkondr maxkondr requested review from JiriCtvrtka and ademidoff and removed request for a team March 18, 2026 12:47
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.79%. Comparing base (7ef1dda) to head (fdc8177).
⚠️ Report is 1 commits behind head on v3.

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     
Flag Coverage Δ
admin 35.80% <ø> (ø)
agent 53.33% <ø> (+0.20%) ⬆️
managed 47.72% <100.00%> (+<0.01%) ⬆️
vmproxy 72.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants