RBAC - The Hard way

Authentication

Authorisation

  • Create user's key (key)
  • Create certificate signing request file (crs)
  • Create signed certificate file (crt)
  • Create namespace
  • Create rules
  • Create roles
  • Create rolebinding
  • Create serviceaccount

Automated Way

  • PyOpenSSL
  • Kubernetes Python-Client

PyOpenSSL

  • from OpenSSL import crypto
  • def generate_self_signed_key()
  • def generate_ca_signed_key()

Kubernetes Python-Client

  • from kubernetes import client, config
  • def create_namespace()
  • def create_rules()
  • def create_role()
  • def create_rolebinding()
  • def create_serviceaccount()

Thank You

 

Dishant Sethi

dishantsethi14@gmail.com

Linkedin

Made with Slides.com