Access control
Dashmark expects your reverse proxy or authentication provider to set trusted identity headers. It does not authenticate users itself.

When enabled, Dashmark shows the authenticated user’s matching groups as badges beside the greeting.
1. Enable filtering
Section titled “1. Enable filtering”services: dashmark: environment: - ENABLE_ACCESS_CONTROL=true - ACCESS_GROUPS_HEADER=autoauto checks headers used by Authentik, Authelia, oauth2-proxy, and Keycloak Gatekeeper. For another proxy, set the exact header name:
environment: - ACCESS_GROUPS_HEADER=X-Forwarded-GroupsYour proxy must remove or overwrite any client-supplied identity headers before forwarding a request.
Identity and group headers
Section titled “Identity and group headers”ACCESS_GROUPS_HEADER=auto checks X-Authentik-Groups, Remote-Groups, X-Auth-Request-Groups, X-Forwarded-Groups, and X-Auth-Groups in that order. Group values may be comma-, semicolon-, or pipe-separated, or a JSON array of strings.
Set USER_NAME_HEADER, USER_FIRST_NAME_HEADER, USER_LAST_NAME_HEADER, USER_USERNAME_HEADER, and USER_EMAIL_HEADER to map your proxy’s identity headers into greeting templates. Leave them at auto to use supported provider defaults.
When group-based access is required and the configured group header is missing, Dashmark shows a missing-groups-header error rather than exposing filtered cards.
2. Restrict a card
Section titled “2. Restrict a card”Set dashmark.access on the container, or access in its YAML service entry. Entries match groups, usernames, and email addresses without case sensitivity.
labels: dashmark.url: https://portainer.example.com dashmark.access: admins,ops@example.comCards without access entries stay visible to everyone. Group values can be comma-, semicolon-, or pipe-separated, or a JSON string array.
3. Restrict status and metrics
Section titled “3. Restrict status and metrics”These settings apply independently of card visibility:
environment: - STATUS_BADGE_ACCESS=admins - METRICS_ACCESS=admins,operatorsAn unset value makes the feature visible to all users who can see the card.
Optional direct-access token
Section titled “Optional direct-access token”For AUTH_TOKEN setup and reverse-proxy configuration, see Deployment and security.