Skip to content

security/acme-client: Update ACL.xml fix for issues/5458#5473

Open
progS1m wants to merge 1 commit into
opnsense:masterfrom
progS1m:patch-1
Open

security/acme-client: Update ACL.xml fix for issues/5458#5473
progS1m wants to merge 1 commit into
opnsense:masterfrom
progS1m:patch-1

Conversation

@progS1m
Copy link
Copy Markdown

@progS1m progS1m commented Jun 1, 2026

#5458

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:

Model used: Google Gemini

Extent of AI involvement: AI was used as a troubleshooting partner to help trace the OPNsense redirect loop to the missing API endpoint in the ACL.xml file, and to assist in drafting this pull request description. The actual environment testing, code verification, and identification of the missing granular privilege were done manually by me.

Describe the problem

Currently, non-admin users who are granted the Services: ACME Client privilege experience an "access denied" error and a redirect loop when attempting to view the ACME logs via the UI (ui/acmeclient/logs).

This occurs because modern OPNsense versions rely on granular backend API endpoints for logging. While the os-acme-client plugin's ACL.xml successfully grants access to the frontend interface via the ui/acmeclient/* wildcard, it is missing the explicit permission for the backend logging API. Because the API route is unregistered in the ACL, OPNsense's security framework defaults it to admin-only access, causing the log viewer to fail for restricted users.

Describe the proposed solution

This PR adds the missing backend API routing pattern to the plugin's Access Control List (ACL.xml).

By adding api/diagnostics/log/core/acmeclient/* under the existing AcmeClient privilege, users who are granted access to the ACME client will automatically inherit the necessary API permissions to fetch and view the logs. This aligns the plugin with current OPNsense logging architectures (similar to how os-wireguard handles its logging endpoints) and resolves the redirect loop for non-admin users.


Related issue

#5458

@fraenki fraenki self-assigned this Jun 1, 2026
@fraenki fraenki changed the title Update ACL.xml fix for issues/5458 security/acme-client: Update ACL.xml fix for issues/5458 Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants