HabitaNexus/monorepo / skills/system-reliability-engineering/container-security
container-security
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.5 KB |
| scripts/README.md | markdown | 1.4 KB |
| scripts/admission_controller.py | script | 6.7 KB |
| scripts/requirements.txt | manifest | 254 B |
| scripts/sign-image.sh | script | 1.2 KB |
scripts/sign-image.sh
View on GitHub#!/bin/bash
# Sign Container Image with Notary
#
# Usage:
# ./sign-image.sh --image gcr.io/my-project/my-app:latest
# ./sign-image.sh --image my-image:latest --notary-server https://notary-server:4443
set -e
IMAGE=""
NOTARY_SERVER="${NOTARY_SERVER:-https://notary-server:4443}"
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--image)
IMAGE="$2"
shift 2
;;
--notary-server)
NOTARY_SERVER="$2"
shift 2
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
done
if [ -z "$IMAGE" ]; then
echo "❌ Error: --image is required"
echo "Usage: $0 --image <image> [--notary-server <server>]"
exit 1
fi
echo "🔐 Signing image: $IMAGE"
echo " Notary server: $NOTARY_SERVER"
echo ""
# Pull image
echo "📥 Pulling image..."
docker pull "$IMAGE"
# Get image digest
IMAGE_DIGEST=$(docker inspect --format='{{.Id}}' "$IMAGE" | cut -d':' -f2)
echo " Image digest: $IMAGE_DIGEST"
echo ""
# Sign with Notary
echo "✍️ Signing image with Notary..."
notary -s "$NOTARY_SERVER" \
-d ~/.docker/trust \
add \
"$IMAGE" \
"$IMAGE_DIGEST"
echo ""
echo "✅ Image signed successfully!"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |