Skip to content
Docs

Access control

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

Dashmark dashboard showing an authenticated user’s access-group badges and expanded group list.

When enabled, Dashmark shows the authenticated user’s matching groups as badges beside the greeting.

services:
dashmark:
environment:
- ENABLE_ACCESS_CONTROL=true
- ACCESS_GROUPS_HEADER=auto

auto 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-Groups

Your proxy must remove or overwrite any client-supplied identity headers before forwarding a request.

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.

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.com

Cards without access entries stay visible to everyone. Group values can be comma-, semicolon-, or pipe-separated, or a JSON string array.

These settings apply independently of card visibility:

environment:
- STATUS_BADGE_ACCESS=admins
- METRICS_ACCESS=admins,operators

An unset value makes the feature visible to all users who can see the card.

For AUTH_TOKEN setup and reverse-proxy configuration, see Deployment and security.