openshift-tls-profile
БесплатноБез исполняемых скриптовНе проверенUse this skill to implement TLS security profiles for operators and workloads on OpenShift. Provides guidance on reading TLS config from APIServer CR and…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
OpenShift TLS Security Profile Configuration
This skill helps implement TLS security profiles for operators and workloads running on OpenShift. It provides complete guidance on reading TLS configuration from OpenShift cluster and applying it consistently across all secured endpoints.
Background
This skill implements the requirements defined in the Centralized and Enforced TLS Configuration Enhancement. The enhancement addresses the gap where many OpenShift components hardcode TLS settings or rely on library defaults rather than respecting cluster-wide TLS configuration. Key points:
- All components must honor the centralized TLS security profile from the cluster
- This enables consistent cryptographic policy enforcement and Post-Quantum Cryptography (PQC) readiness
- Do not hardcode TLS versions (e.g., TLS 1.3). Always read TLS settings dynamically.
The API changes are implemented in openshift/api#2680, which adds the TLSAdherence feature gate and tlsAdherence field to apiserver.config.openshift.io/v1.
TLS Adherence Modes
The tlsAdherence field in the APIServer CR controls how strictly components adhere to the configured TLS security profile:
| Mode | Description |
|---|---|
| Legacy (default) | Backward-compatible behavior. Components attempt to honor the configured TLS profile but may fall back to their individual defaults if conflicts arise. Intended for clusters that need to maintain compatibility during migration. |
| Strict | Enforces strict adherence to the TLS configuration. All components must honor the configured profile without fallbacks. Recommended for security-conscious deployments and required for certain compliance frameworks. |
Feature Gate: The TLSAdherence feature gate controls this functionality. It is currently enabled in DevPreviewNoUpgrade and TechPreviewNoUpgrade.
Implementation Note: When implementing TLS profile support in your operator, ensure your component applies the configured TLS profile and reports degraded status on failure in both modes. In Strict mode, components that fail to apply the configured TLS profile should report degraded status rather than silently falling back to defaults.
TLS Profile Sources
Default Source: API Server Configuration
Most components should use the API Server configuration as their TLS profile source. This is the default and preferred option. If you're unsure which source to use, start with the API Server configuration.
Order of Precedence (use only if you have a specific reason to deviate from API Server):
| Source | When to Use |
|---|---|
| API Server (default) | Use this by default. Most OpenShift operators use library-go's apiserver config observer pattern, which automatically observes the API Server TLS profile. |
| Kubelet | Only use if your component is specifically running on the kubelet and needs to match kubelet's TLS settings. |
| Ingress Controller | Only use if your component is specifically handling ingress traffic and needs to match the ingress controller's TLS settings. |
When to Use This Skill
Use this skill when:
- Implementing TLS security profiles in a Kubernetes operator running on OpenShift
- Configuring webhook servers and metrics endpoints with cluster-wide TLS settings
- Setting up HTTP or gRPC clients/servers that need to comply with OpenShift TLS policies
- Converting OpenShift TLS profile types to Go
crypto/tlsconfiguration
Requirements
Operators implementing TLS security profiles must satisfy these requirements:
- Read TLS profile from APIServer CR: Fetch configuration from
apiservers.config.openshift.io/cluster - Apply to all TLS endpoints: Webhook server, metrics server, and any HTTP/gRPC clients or servers
- Respond to profile changes: If the TLS profile is updated in the cluster, the component must pick up the changes (existing connections should be terminated and new connections should use the new profile).
Handling Profile Changes
There are several approaches to respond to TLS profile changes:
Option A: Use controller-runtime-common Package (Recommended for controller-runtime)
For operators using controller-runtime, the recommended approach is to use the official package:
github.com/openshift/controller-runtime-common/pkg/tls
This package provides all necessary utilities for TLS profile implementation.
Quick Start Example:
package main
import (
"context"
"crypto/tls"
"os"
configv1 "github.com/openshift/api/config/v1"
openshifttls "github.com/openshift/controller-runtime-common/pkg/tls"
"sigs.k8s.io/controller-runtime/pkg/metrics/filters"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/con
Установить openshift-tls-profile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл openshift-tls-profile?
Use this skill to implement TLS security profiles for operators and workloads on OpenShift. Provides guidance on reading TLS config from APIServer CR and applying it to webhook/metrics servers, HTTP, and gRPC endpoints.
Как установить скилл openshift-tls-profile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openshift-tls-profile запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic