How palomar88/gestion_de_usuarios_y_reglas_de_acceso_en_kubernetes works
File Structure Analysis
• Top-level:
• Proyecto.md – full project spec and step-by-step scenarios
• README.md – table of contents pointing to sections in Proyecto.md
• No source directories; focus is purely on infrastructure/components.
README Insights
• Sections 1–2: introduction and cluster scenario setup
• Section 3: access control broken into Authentication (client X.509 certs), Authorization (policy enforcement), RBAC & Quotas (Roles, RoleBindings, resource quotas)
• Section 4: auxiliary CLI/tools (elastickube, klum, rakkess, kubectl-who-can, rbac-lookup)
a. Main Components to include
• End Users / Clients (kubectl, CI/CD pipelines)
• Kubernetes API Server (the single entrypoint)
• Authentication subsystem (X.509 certificate issuer or external IdP)
• Authorization subsystem:
– Static/admission plugins (Node authorizer, NamespaceLifecycle)
– RBAC engine (Roles, ClusterRoles, RoleBindings, ClusterRoleBindings)
– ResourceQuota controller
• etcd datastore
• Kubelet & Controller Manager (optional detail)
• Auxiliary tools (elastickube, klum, rakkess, kubectl-who-can, rbac-lookup)
b. Relationships & Interactions
1. Client presents X.509 cert ➔ API Server
2. API Server calls Authentication plugins ➔ validate cert against CA
3. If authenticated, API Server passes request to Authorization chain:
– Static rules ➔ RBAC rules lookup ➔ Quota evaluation
4. Upon authorization, API Server writes to etcd or returns response
5. Controller Manager / Kubelet react to changes in etcd
6. Auxiliary tools query API Server to inspect RBAC/quotas
c. Architectural Patterns & Principles
• API-centric design: single control-plane entry
• Pluggable authentication & authorization modules
• Declarative configuration stored in etcd
• Separation of concerns: authentication vs. authorization vs. resource management
d. Key Technologies & Frameworks
• Kubernetes Control Plane (API Server, etcd, Admission Controllers)
• X.509 PKI for client cert auth
• Kubernetes RBAC API objects (Role, ClusterRole, RoleBinding, ClusterRoleBinding)
• ResourceQuota API
• Third-party CLI tools for introspection