Giter Club home page Giter Club logo

k8s-rbac-testing's Introduction

Kubernetes RBAC Testing

Shell scripts for help automating RBAC setup on test Kubernetes clusters

The primary purpose is to create:

  • a service account
  • a namespace
  • RBAC rules that restrict the service account to only read/write to that namespace
  • RBAC rules that let the service account read Node information
  • a kubeconfig for the service account

Usage:

$ ./create-restricted-namespace.sh [namespace]

Creates a kubeconfig with a token for authentication. Instructions on how to use the kubeconfig will be printed to stdout.

Real, production auth systems use short-lived tokens that need to be refreshed periodically (e.g., aws-iam-authenticator). If you'd like to simulate that flow, use the -e option to create a fake auth script with rotate-able tokens.

$ ./create-restricted-namespace.sh -e [namespace]

Instructions on how to rotate the token will be printed to stdout.

QA

Verified working on

Won't work with:

Credits

Thanks to:

License

Copyright 2019 Windmill Engineering

Licensed under the Apache License, Version 2.0

k8s-rbac-testing's People

Contributors

haphan avatar nicks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.