Skip to content

The encryption design gives the age key file as ~/.config/sops/age/keys.txt everywhere: sops reads it there on Linux only #978

Open

Description

@David-Noble-at-work

docs/architecture/3.5.13-encryption-provider.md:44-45 gives the ambient age identity as SOPS_AGE_KEY or ~/.config/sops/age/keys.txt. The path is right only on Linux. sops v3.12.1, the version writ builds with, reads sops/age/keys.txt under its user configuration directory (age/keysource.go:393-399, :440-444):

  • Linux: XDG_CONFIG_HOME, else ~/.config.
  • macOS: XDG_CONFIG_HOME when set, else ~/Library/Application Support.
  • Windows: always %AppData%.

sops also reads SOPS_AGE_KEY_FILE, SOPS_AGE_KEY_CMD, the two SSH variables, and ~/.ssh/id_ed25519 and ~/.ssh/id_rsa, and tries every identity it finds.

On Windows this runs against devlore's rule that XDG locations hold there too (#903): a key kept at devlore's ~/.config/sops/age/keys.txt is found only when SOPS_AGE_KEY_FILE points at it.

The user guide carries the full table as of #974 (docs/guides/writ/index.md § Secrets, "Where writ finds your keys"). The design document wasn't changed there, because changing a design is the owner's ruling. Found 2026-09-29 by #974's review.

Resolution

The design document names the per-platform locations or links the guide's table, and says whether writ should point sops at devlore's XDG location on Windows or leave that to the user.

Plan and design documents

Kind Document
Plan Not yet opened
Design docs/architecture/3.5.13-encryption-provider.md

Activity

  1. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • no-evidence: no Evidence of completion section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions