Logo di Operator Security

Operator Security

Organizzazione
RedHatProductSecurity
operator-security

Enforce least-privilege RBAC and secure runtime configuration for Kubernetes Operators. Use when building, reviewing, or auditing Operator manifests, ClusterRoles, Roles, OLM bundles, or CRD definitions.

Panoramica

AutoreRedHatProductSecurity
Repositoryprodsec-skills
Nome della skilloperator-security
Stelle
56
Fork
9
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da RedHatProductSecurity su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Operator Security in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/operator-security
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RedHatProductSecurity/prodsec-skills.git /tmp/prodsec-skills
mkdir -p .claude/skills
cp -r /tmp/prodsec-skills/module/skills/operator-security .claude/skills/operator-security
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Operator Security in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Operator Security non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Operator Security non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Kubernetes Operator Security

Secure Operator manifests, OLM packaging, CRD governance, and runtime configuration for least-privilege operation.

Design Principles

Minimize Scope

  • Restrict cluster-scope and namespace-scope permissions to the minimum required for the Operator to function
  • Justify every cluster-scoped permission; move static cluster-scoped resource creation to the OLM catalog when possible
  • Use OperatorGroup to specify the set of namespaces the Operator manages

Namespace Isolation

  • Deploy the Operator in a separate namespace from its operands
  • Never deploy Operators in namespaces shared with non-privileged users
  • Ensure non-privileged users cannot read Secrets in the Operator's namespace

Fine-Grained Roles

  • Prefer many small Roles with granular permissions over a few broad Roles
  • Each Role should grant the minimum verbs and resources needed for a single responsibility

RBAC Requirements

RuleRationale
No wildcards -- list every verb and resource explicitlyWildcards grant permissions to resources that may not exist yet
No cluster-adminGrants unrestricted access to the entire cluster
No self-escalating RBACRoles must not grant the ability to create or modify their own RoleBindings
No Escalate verbAllows circumventing RBAC restrictions
No Bind verb in role definitionsAllows binding to roles with higher privileges

Container Security

  • Set a numeric USER in the Containerfile; never default to or assume uid=0
  • Accept the high UID (billion+) that OpenShift assigns to the namespace
  • Set readOnlyRootFilesystem: true
  • Set runAsNonRoot: true
  • Set automountServiceAccountToken: false unless the SA token is actually needed
  • Never require host paths unless the Operator is part of the control plane
  • Set no-new-privileges: true in the security context
  • Use group ID permissions for shared file access instead of user ID

OLM Installation

Installation Source

Operators must be installed via the Operator Lifecycle Manager (OLM). Direct deployment of operator pods bypasses OLM's dependency resolution, upgrade management, and security controls.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Installation Status

Operators must report a Succeeded installation status. Failed or pending installations indicate packaging or dependency issues.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

No SCC Privileges

Operators must not require Security Context Constraint (SCC) access privileges during installation.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

No Duplicate Operators

Only one instance of the same operator CSV should exist per cluster.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

CRD Governance

OpenAPI Schema

All Custom Resource Definitions must include an OpenAPI v3 schema specification. This enables validation of custom resources at admission time.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

CRD Versioning

CRDs must have valid versioning with proper served/storage version configuration.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Semantic Versioning

Operators must use semantic versioning (semver) for their CSV version.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Single CRD Owner

Each CRD must be owned by only one operator. Multiple operators claiming ownership of the same CRD creates conflict and unpredictable behavior.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Catalog Source Management

Bundle Count

Catalog sources must contain fewer than 1000 bundles. Large catalogs degrade OLM performance and increase memory consumption.

Required for: all profiles (optional, recommended best practice)

OLM Skip Range

Operators with multiple versions in a catalog must have a valid OLM skip range configured to enable proper upgrade paths.

Required for: all profiles (optional, recommended best practice)

Namespace Scoping

Tenant namespaces can only contain operators with SingleNamespaced or MultiNamespaced install modes. Cluster-scoped operators should not be installed in tenant namespaces.

Required for: all profiles (optional, recommended best practice)

Resource Constraints

Operator pods must not enable hugepages. Hugepage allocation is a node-level resource that should be reserved for application workloads, not operator infrastructure.

Required for: Telco (mandatory), Far-Edge (mandatory), Extended (mandatory), Non-Telco (optional)

Implementation Checklist

  • Every ClusterRole and Role lists explicit verbs and resources (no wildcards)
  • cluster-admin is not used
  • No Role can escalate its own privileges
  • Escalate and Bind verbs are not granted
  • Operator runs in a dedicated namespace, separate from operands
  • Containerfile sets a numeric non-root USER
  • readOnlyRootFilesystem: true is set
  • runAsNonRoot: true is set
  • automountServiceAccountToken: false unless required
  • No host path mounts unless justified (control plane only)
  • OperatorGroup is used to scope namespace access
  • Operator is installed via OLM
  • Operator reports Succeeded installation status
  • No SCC privileges required during installation
  • Only one instance of the operator CSV per cluster
  • All CRDs have OpenAPI v3 schema
  • CRDs have valid versioning configuration
  • Operator uses semantic versioning
  • Each CRD is owned by only one operator
  • Catalog source has fewer than 1000 bundles
  • Operator pods do not enable hugepages

Certsuite Test Mapping

GuidanceCertsuite Test IDProfiles
Installed via OLMoperator-install-sourceTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
Installation succeededoperator-install-status-succeededTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
No SCC privilegesoperator-install-status-no-privilegesTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
No duplicate operatorsoperator-multiple-same-operatorsTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
CRD OpenAPI schemaoperator-crd-openapi-schemaTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
CRD versioningoperator-crd-versioningTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
Semantic versioningoperator-semantic-versioningTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
Single CRD owneroperator-single-crd-ownerTelco/Far-Edge/Extended: mandatory, Non-Telco: optional
Catalog bundle countoperator-catalogsource-bundle-countAll profiles: optional (recommended)
OLM skip rangeoperator-olm-skip-rangeAll profiles: optional (recommended)
Namespace scopingoperator-single-or-multi-namespaced-allowed-in-tenant-namespacesAll profiles: optional (recommended)
No hugepagesoperator-pods-no-hugepagesTelco/Far-Edge/Extended: mandatory, Non-Telco: optional

References

Domande frequenti

Cosa fa la skill IA Operator Security?

Enforce least-privilege RBAC and secure runtime configuration for Kubernetes Operators. Use when building, reviewing, or auditing Operator manifests, ClusterRoles, Roles, OLM bundles, or CRD definitions.

Perché usare Operator Security su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Operator Security è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Operator Security in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/operator-security. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Operator Security?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Operator Security?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Operator Security: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Operator Security è gratuita?

Sì. È pubblicata su GitHub da RedHatProductSecurity con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇