Skip to content

Map Each Host Secret File to the Repository That Owns It #3946

Closed as not planned

Description

@ptr727

A host's ~/.secrets/ directory is shared by every fleet repository that runs on that host. Each repository catalogs only its own files, for example in its own .secrets/README.md. So a file that no repository's catalog lists has no owner anyone can find. No one repository can say whether that file is a leftover, since another repository may read it.

The hub's spec/resolve_secrets.py scaffold already reports a file as unclaimed, but only within the github_ namespace that repository secret provisioning reserves. Host secret files outside that namespace have no ownership record at all.

Proposal (from the maintainer, 2026-11-09)

Keep a README.md inside the host's actual secrets directory. In it each repository lists the secret files it owns, so every file maps to a repository. Every repository that uses host secrets follows the fleet standard for secret file naming.

A constructed example:

| File | Owning repository |
| --- | --- |
| `example_api_token` | `ptr727/ExampleRepo` |
| `github_codecov_token` | fleet (`repo-config`) |

Open points for whoever designs it

  • Who writes the file. Each repository's installer adds or updates its own rows, or the hub generates the whole file from each repository's catalog.
  • How a file that is listed nowhere gets reported, since scaffold's unclaimed check could extend to it.
  • Whether a repository's own catalog stays its source of truth, with the directory README derived from it.

Raised in ptr727/HomeAutomation-Config#1812, which found tracker credential files on a host that no catalog lists and that no one repository could account for.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Nov 9, 2026
  2. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Related issue noted (open-issue sweep, 2026-11-10).

    #3959 proposes the owner-first naming scheme for host secret files, and this issue proposes the ownership map. Each depends on the same fleet naming standard, so they are decided together rather than one at a time.

  3. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Researched with #3959 (decision triage, 2026-11-10).

    The question and its options are on #3959, since the two are decided together. The recommendation there makes the owner-first file name the ownership record, so this issue is answered by it or narrowed to the resolve_secrets.py scaffold change.

  4. added
    decision
    on Nov 10, 2026
  5. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Closed in favor of #3959 (maintainer answer, 2026-11-10).

    The maintainer chose owner-first file names as the ownership record, so the host secrets README this issue proposed is not built. The one change it still implied, widening resolve_secrets.py scaffold's unclaimed check, is part of #3959.

  6. removed
    decision
    on Nov 10, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions