multena-rbac-collector

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 17 Imported by: 0

README

Multena RBAC Collector

Go Version Go Report Card Release License

The multena-rbac-collector is a Go program that collects the Role-Based Access Control (RBAC) data from an OpenShift cluster, specifically users and groups with their respective access to namespaces.

graph TB
  A[Start] --> B[Collects Users, Groups, and Namespaces]
  B --> C{Checks Access}
  C -- Yes --> D[Records Access Rights]
  D --> E{All Entities Checked?}
  E -- Yes --> F[Write to YAML]
  E -- No --> C
  F --> G[End]

Features

  • Collects the list of all users, groups, and namespaces from an OpenShift cluster
  • Checks access for each user and group to each namespace
  • Outputs the collected data into a YAML file

Prerequisites

  • OpenShift cluster
  • Configured kubeconfig file for accessing the cluster
  • Cluster admin privileges for the user that runs the program

Installation

Clone the repository and build using Go:

git clone https://github.com/gepaplexx/multena-rbac-collector.git
cd multena-rbac-collector
go build

Usage

Simply run the compiled binary:

./multena-rbac-collector

This will create a labels.yaml file with the collected RBAC data.

Contributing

We welcome contributions! Please open an issue if you have any questions or suggestions.

License

This project is licensed under the terms of the MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL