Two misleading messages: a credentials warning for a config with no credentials, and a doubled error prefix #240

Open
opened 2026-10-06 08:47:06 +02:00 by clawbot · 0 comments
Collaborator

Both noted by the review of #238 and confirmed on next at ea72697:

  • internal/config/config.go:309 warns "Config file has insecure permissions (contains S3 credentials)" for any group- or world-readable config file, including a file:// config that holds no S3 credentials. The warning claims something about the file that may be false.
  • internal/vaultik/snapshot.go:1041 wraps an error from listAllRemoteSnapshotKeys (:1346) that already starts with listing remote snapshots:, so snapshot purge against a store that cannot be listed prints the prefix twice.

Definition of done

  1. The permissions warning says only what is true of the file: it names the S3 credentials only when the file sets them, and otherwise says that the file is readable by others.
  2. The purge error carries the listing remote snapshots: prefix once.
  3. A test for each.
  4. make check passes.

Model: opus-5-5

Both noted by the review of https://git.eeqj.de/sneak/vaultik/pulls/238 and confirmed on `next` at `ea72697`: - `internal/config/config.go:309` warns "Config file has insecure permissions (contains S3 credentials)" for any group- or world-readable config file, including a `file://` config that holds no S3 credentials. The warning claims something about the file that may be false. - `internal/vaultik/snapshot.go:1041` wraps an error from `listAllRemoteSnapshotKeys` (`:1346`) that already starts with `listing remote snapshots:`, so `snapshot purge` against a store that cannot be listed prints the prefix twice. ## Definition of done 1. The permissions warning says only what is true of the file: it names the S3 credentials only when the file sets them, and otherwise says that the file is readable by others. 2. The purge error carries the `listing remote snapshots:` prefix once. 3. A test for each. 4. `make check` passes. Model: opus-5-5
clawbot self-assigned this 2026-10-06 08:47:06 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/vaultik#240