Skip to content

Fix CI/CD API-key dialog (Settings.Read permission, scroll) and PRTG hint#442

Open
Wiesenwischer wants to merge 1 commit into
mainfrom
bugfix/prtg-apikey-and-modal
Open

Fix CI/CD API-key dialog (Settings.Read permission, scroll) and PRTG hint#442
Wiesenwischer wants to merge 1 commit into
mainfrom
bugfix/prtg-apikey-and-modal

Conversation

@Wiesenwischer

Copy link
Copy Markdown
Owner

Fixes three issues spotted on the CI/CD Integration and SNMP/PRTG settings pages.

1. Missing Settings.Read permission for the PRTG sensor

The PRTG HTTP status endpoint (GET /api/integrations/prtg/status) requires [RequirePermission("Settings","Read")], but the Create API Key dialog only offered Hooks.* permissions — so the documented PRTG "HTTP Data Advanced" flow couldn't actually be completed. Added a "Read Status (PRTG)" permission (Settings.Read) to the key options. No backend change needed: the create handler accepts arbitrary permission strings and ApiKey.HasPermission / RbacService already match Settings.Read.

2. Create API Key dialog clipped at 1080p

The modal had no max-height/scroll, so on shorter viewports (e.g. full-HD) the "Create API Key" header was cut off at the top with no way to scroll. Added max-h-[90vh] overflow-y-auto to the modal and overflow-y-auto p-4 to the backdrop (Create + Revoke modals).

3. PRTG sensor instructions text

  • Fixed the missing space (rendered as "Settings:Read​via") in the SNMP page's PRTG sensor steps.
  • The step now references the actual "Read Status (PRTG)" permission instead of the Settings:Read jargon, so it matches the checkbox a user sees.

Testing

  • Frontend pnpm build (tsc + vite): green.
  • Settings.Read verified end-to-end against ApiKey.HasPermission + RbacService api-permission matching (Resource.Action, wildcard-aware).

…og scrollable, fix PRTG hint

- CI/CD: the PRTG HTTP status endpoint requires Settings.Read, but the Create API Key dialog
  offered only Hooks.* permissions — so the documented PRTG sensor flow could not be completed.
  Add a 'Read Status (PRTG)' permission (Settings.Read) to the key creation options.
- CI/CD: the Create/Revoke API key modals had no max-height/scroll, so the dialog header was
  clipped on shorter (e.g. 1080p) viewports. Add max-h-[90vh] + overflow + padding so it scrolls.
- SNMP/PRTG: fix the missing space in the sensor instructions ('Settings:Read​via' -> proper
  spacing) and point the step at the actual 'Read Status (PRTG)' permission.
@github-actions github-actions Bot added the bug Something isn't working label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant