kanidm: server.toml and the DB folder are world-readable inside the volume #519

Stängd
öppnade 2026-10-02 13:12:53 +00:00 av supernaut · 0 kommentarer
Ägare

Problem

Every kanidmd database backup (daily and, since #517, hourly) logs three warnings:

  • /data/server.toml has 'everyone' permission bits in the mode
  • /data/server.toml owned by the current uid, which may allow file permission changes
  • DB folder /data has 'everyone' permission bits in the mode

So server.toml and the DB folder inside the Kanidm volume are world-readable or writable from inside the container. The identity database should not be.

Fix

Set server.toml to 0640 or 0600 and the /data folder to 0750 or 0700, as the container user sees them, without fighting podman's ownership mapping (manage the mode, not the owner). Confirm the warnings are gone from the next backup run, and that Kanidm still starts.

Done when

A backup run logs none of the three warnings.

## Problem Every `kanidmd database backup` (daily and, since #517, hourly) logs three warnings: - `/data/server.toml has 'everyone' permission bits in the mode` - `/data/server.toml owned by the current uid, which may allow file permission changes` - `DB folder /data has 'everyone' permission bits in the mode` So `server.toml` and the DB folder inside the Kanidm volume are world-readable or writable from inside the container. The identity database should not be. ## Fix Set `server.toml` to 0640 or 0600 and the `/data` folder to 0750 or 0700, as the container user sees them, without fighting podman's ownership mapping (manage the mode, not the owner). Confirm the warnings are gone from the next backup run, and that Kanidm still starts. ## Done when A backup run logs none of the three warnings.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#519
Ingen beskrivning angiven.