OC Authentication Helper

Official

Secure OpenShift API calls, effortlessly.

Authoropenshift-eng
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Users often struggle with securely managing OAuth tokens for multiple OpenShift clusters, leading to token exposure, code duplication, and complex authentication logic. This skill centralizes token retrieval and injection, eliminating these issues and simplifying authenticated API requests.

Core Features & Use Cases

  • Automated Token Handling: Automatically retrieves and injects OAuth tokens into curl requests.
  • Multi-Cluster Support: Seamlessly works with multiple OpenShift cluster contexts configured in kubeconfig.
  • Enhanced Security: Prevents accidental token exposure in command history or logs.
  • Use Case: Instead of manually fetching tokens and adding Authorization headers, simply prefix your curl command with curl_with_token.sh <cluster_api_url> to make secure API calls to any OpenShift cluster.

Quick Start

Example: Authenticated API call to app.ci cluster

curl_with_token.sh https://api.ci.l2s4.p1.openshiftapps.com:6443 -X POST
-d '{"job_name": "my-job"}'
https://gangway-ci.apps.ci.l2s4.p1.openshiftapps.com/v1/executions

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: OC Authentication Helper
Download link: https://github.com/openshift-eng/ai-helpers/archive/main.zip#oc-authentication-helper

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository