Skip to content
youdede

Container registry publish guard

OperationsHookv1.0.0

A deterministic Claude Code PreToolUse gate that recognizes Docker, Podman, ORAS, buildx, and Helm publication commands while allowing local build, load, inspect, scan, and packaging operations.

Runs on

Scope
$npx @youdede/toolkit add container-registry-publish-guard --target claude-code

What it does

Block direct publication of container images, Helm charts, and OCI artifacts.

When it fires

  • release

How it behaves

Recognize OCI and chart publication commands and refuse registry writes.

It does not push, sign, copy, delete, or promote registry artifacts.

It does not inspect registry credentials, ownership, or retention policy.

It does not accept a tag, registry name, or prompt as publication approval.

Configuration

targets/claude-code/container-registry-publish-guard.mjsnode · none

Version
1.0.0
Requires
Shell command guard
Licence
RiskThis automatic gate blocks direct publication of container images, Helm charts, and OCI artifacts; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyThe entrypoint handles one intercepted event to block direct publication of container images, Helm charts, and OCI artifacts without deferred work.
Immediate
Data retentionWhether data remains after use and who manages its storage.
Not retained

Often used with

All in Operations