registry: no type for a Forgejo access token, so its name and its secret item cannot be computed #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is missing
At v4.0.0,
registry/types/forgejo.yamlhas no entry for an access token. The only rule about tokens is in a note onforgejo_user: "A token is named after its consumer, never after what it can do."That note gives a principle, not a name:
max_len,charset).Why it blocks a consumer
I11 (adoption
home-node-infra.md, Specifics) titles a secret item "with the v4 name of the object it holds a secret for". A Forgejo token has no v4 name, so the title of the item that stores it cannot be computed. The consumer has to write the name by hand, and the convention forbids that.Example: a service account
agent-<role>gets a token restricted towrite:issueon one repository, used by one consumer repository. Today its name (<consumer>-<timestamp>?) and its item title are a local choice.What is asked
A type (for example
forgejo_access_token; the provider does not manage it, so it would be a consumer rule like I9), giving:max_lenandcharset;rename: replace(a token is never renamed; rotating it creates a new one);Measured: read in
registry/types/forgejo.yaml@ v4.0.0 on 2026-11-03. Not checked: the forge's own limits on token names (not read in the Forgejo source).