Generate per-user talosconfig with a limited Talos RBAC role

Aperta
#250 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, linux
Ambito
security

Direzione di ricerca

Start by reading talm's existing command implementations and how project configuration and CA credentials are loaded; the issue does not name specific files or tests. Check how Talos represents roles in client certificates and how talm handles generated configuration. Done means a command can issue a named user's talosconfig with a chosen role signed by the project CA, with tests covering the command's behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

talm gives every team member the same admin access to the Talos API, and I'd like a way to hand out narrower access per person.

Today a project has one talosconfig with the os:admin role, encrypted with talm.key. Anyone who can decrypt it can also decrypt secrets.yaml, which holds the cluster CA key. There is no way to give someone read-only or operator access.

Talos already supports this. The role sits in the Organization field of the client certificate, and apid enforces it. Built-in roles are os:admin, os:operator, os:reader, os:etcd:backup, os:image:verifier, os:meta:writer and os:impersonator. talm has no command to issue such a certificate. Right now it takes talosctl config new --roles ... against a node, with admin credentials.

The ask is a talm command that generates a talosconfig for a named user with a chosen role, signed by the project CA. People who only need os:reader or os:operator then never have to decrypt secrets.yaml, and the CA key stays with a small group.

Related to #249: fewer people would need to be age recipients of secrets.encrypted.yaml.

Lingua principale
Go
Stelle
493
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cozystack/talm

Tutte le issue di cozystack/talm

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.