Giter VIP home page Giter VIP logo

acs's Introduction

ACS API Examples

Examples of API usage to perform configuration and reporting tasks with Red Hat Advanced Cluster Security

Introduction:

This repository contains scripts to seamlessly integrate ACS Central with OpenShift for Single Sign-On (SSO) and to set up custom rules for user group management. The two main scripts in this repository are:

  • auth.sh: This script integrates OpenShift with ACS Central for SSO.
  • rules.sh: This script creates a custom rule in ACS Central that assigns a specific role to a user group from the OpenShift authentication provider.

Requirements:

  • curl: Required for making API calls.
  • jq: Necessary for parsing and manipulating JSON data.
  • ACS Central installation.
  • OpenShift environment.

Usage:

1. Setting Up OpenShift Authentication (auth-provider.sh):

This script integrates ACS Central with OpenShift to enable Single Sign-On (SSO).

Steps:

  • Update the CENTRAL and CENTRAL_PASS variables in the script to point to your Central instance and provide the correct password.

  • Execute the script:

    sh auth-provider.sh

2. Creating Custom Rules (add-rule.sh):

This script sets up a custom rule that grants the "Analyst" role to members of the dev-group within the OpenShift authentication provider.

Steps:

  • Make sure you've run auth.sh first to establish the integration.

  • Update the CENTRAL and CENTRAL_PASS variables in the script to match your Central instance and provide the correct password.

  • Execute the script:

    sh add-rule.sh

The script will automatically fetch the ID of the existing OpenShift auth provider and use it to establish the custom rule.

acs's People

Contributors

turbra avatar

Watchers

 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.