Initial Rancher token secrets engine #1
Reference in New Issue
Block a user
Delete Branch "benvin/plugin-scaffold"
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?
Why
Rancher caps API-token TTLs (commonly 90 days via
auth-token-max-ttl-minutes), so long-lived automation tokens expire and break. This engine seeds a Rancher token, auto-rotates it before expiry, and mints short-lived scoped tokens on demand.Changes
config,service-accounts/<name>+/rotate,roles/<name>,creds/<role>; secret typerancher_token).tokens.ext.cattle.ioAPI.PeriodicFuncschedule (default 45d rotate / 90d TTL) by minting a replacement with the current token, then retiring the old one.cluster_name-scoped tokens deleted from Rancher on revoke.make patch|minor|major, unit tests, and a mock-Rancher e2e.