Skip to content

Security

Every map, tile and feature request carries a session or an API token and respects workspace access.

  • Session login with CSRF protection and login throttling; admin and editor roles.
  • Per-workspace access for users who are not admins.
  • Read-only API tokens, as HTTP Basic or Bearer, for QGIS and other clients. A missing or wrong token gets 401, a write gets 405, repeated failures get 429.
  • Every action is written to the activity log.
A client sends a wrong API tokenlive diagram Open full screen ↗
  • Both containers run with a read-only root file system, no-new-privileges and all capabilities dropped.
  • MapCache publishes no port and sees only the mapcache/ part of the data directory.
  • On Linux both run as systemd services under the user loka with NoNewPrivileges and ProtectSystem=strict. The API may write only to /var/lib/loka, and MapCache listens on 127.0.0.1:8090 only.