paperclip: RBAC and scoped kubeconfigs for ops and deploy agents #63
Labels
No labels
Monitoring
automation
bug
duplicate
feature
forgejo
help wanted
homepage
invalid
k3s
keycloak
ldap
paperclip
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/homelab#63
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?
Context
Two agents with different cluster powers, both narrower than the workstation
kubeconfig.
Steps
lxc/paperclip/manifests/paperclip-agent/namespace.yamlserviceaccount.yamlforopsanddeploytoken-secret.yamlfor each SA (typekubernetes.io/service-account-token)clusterrolebinding-ops-view.yaml:ops-> built-inviewdeploy:editinmedia,monitoring,opengymlxc/paperclip/generate-kubeconfig.sh: copy of the opencode script,parameterised by
NAMESPACE,SA_NAME,SECRET_NAME, andCONTEXTtemp/paperclip-ops.kubeconfigandtemp/paperclip-deploy.kubeconfig(gitignored)Done when
kubectl auth can-i --list --kubeconfig temp/paperclip-ops.kubeconfigshows read verbs everywhere and no writes
editin the three namespaces and nothing elsekubectl auth can-i delete nodes --kubeconfig ...isnofor both