tibsfox/gsd-skill-creator/security

Claude Code and agent skill by tibsfox/gsd-skill-creator

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

OpenStack security operations skill for hardening, certificate management, and security posture assessment of cloud infrastructure. Covers TLS certificate lifecycle (generation, deployment, rotation, expiry monitoring), security group management (default deny, minimum required openings), RBAC policy customization (per-service policy.yaml), network segmentation (management vs tenant vs external), audit logging (Keystone CADF events), vulnerability assessment procedures, compliance auditing, intrusion detection patterns, incident response procedures (credential compromise, instance compromise), password rotation, and API rate limiting. Use when hardening OpenStack, managing certificates, auditing security posture, or responding to security incidents.

Install

npx vskill@latest install tibsfox/gsd-skill-creator/security

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

OpenStack Security Operations

Security posture management for OpenStack requires defense-in-depth: no single control prevents all threats, so multiple overlapping layers protect the cloud. The defense layers are network segmentation (isolate management from tenant from external traffic), TLS everywhere (encrypt all API communication), RBAC least-privilege (users and services get only the permissions they need), and audit logging (record every authentication and authorization decision).

Security is not a one-time deployment task. Certificates expire. Vulnerabilities are disclosed. Passwords must rotate. Security groups drift. The GUARD agent consumes this skill for continuous security posture assessment, evaluating whether the cloud's security controls remain effective against evolving threats.

In NASA SE terms, security spans multiple phases: Phase B (security design and architecture), Phase C (certificate generation and TLS deployment), Phase D (security audit verification), and Phase E (ongoing security operations). SP-6105 SS 6.4 (Technical Risk Management) provides the framework for identifying, assessing, and mitigating security risks throughout the cloud lifecycle.

Deploy

Security-First Deployment

Kolla-Ansible TLS configuration (globals.yml):

yaml
# Enable TLS on all interfaces
kolla_enable_tls_internal: "yes"
kolla_enable_tls_external: "yes"
kolla_copy_ca_into_containers: "yes"
# Certificate paths
kolla_external_fqdn_cert: "/etc/kolla/certificates/haproxy.pem"
kolla_internal_fqdn_cert: "/etc/kolla/certificates/haproxy-internal.pem"
kolla_admin_openrc_cacert: "/etc/kolla/certificates/ca/root.crt"
# Optional: client certificate verification
kolla_enable_tls_backend: "yes" # Encrypt HAProxy-to-service traffic

Generating certificates:

bash
# Self-signed CA (lab/development)
mkdir -p /etc/kolla/certificates/ca
openssl genrsa -out /etc/kolla/certificates/ca/root.key 4096
openssl req -x509 -new -nodes -key /etc/kolla/certificates/ca/root.key \
-sha256 -days 3650 -out /etc/kolla/certificates/ca/root.crt \
-subj "/C=US/ST=Lab/O=OpenStack/CN=Kolla-CA"
# HAProxy certificate (external)
openssl genrsa -out /etc/kolla/certificates/haproxy.key 2048
openssl req -new -key /etc/kolla/certificates/haproxy.key \
-out /etc/kolla/certificates/haproxy.csr \
-subj "/C=US/ST=Lab/O=OpenStack/CN=${KOLLA_EXTERNAL_FQDN}" \
-addext "subjectAltName=DNS:${KOLLA_EXTERNAL_FQDN},IP:${KOLLA_EXTERNAL_VIP}"
openssl x509 -req -in /etc/kolla/certificates/haproxy.csr \
-CA /etc/kolla/certificates/ca/root.crt \
-CAkey /etc/kolla/certificates/ca/root.key \
-CAcreateserial -out /etc/kolla/certificates/haproxy.crt \
-days 365 -sha256
# Combine into PEM (required by HAProxy)
cat /etc/kolla/certificates/haproxy.crt \
/etc/kolla/certificates/haproxy.key \
> /etc/kolla/certificates/haproxy.pem
# Internal certificate (same process with internal FQDN/VIP)
# ... repeat with kolla_internal_fqdn and kolla_internal_vip

HAProxy TLS termination:

HAProxy handles TLS for all OpenStack API endpoints. Kolla-Ansible configures this automatically when TLS is enabled. Verify:

bash
# Check HAProxy is serving TLS
openssl s_client -connect ${KOLLA_EXTERNAL_VIP}:443 -showcerts </dev/null 2>/dev/null | head -20
# Verify certificate chain
openssl s_client -connect ${KOLLA_EXTERNAL_VIP}:5000 -CAfile /etc/kolla/certificates/ca/root.crt </dev/null 2>/dev/null | grep "Verify return code"
# Expected: Verify return code: 0 (ok)

Firewall rules for management network:

bash
# Allow only necessary ports on management interface
firewall-cmd --zone=management --add-service=ssh --permanent
firewall-cmd --zone=management --add-port=5000/tcp --permanent # Keystone
firewall-cmd --zone=management --add-port=8774/tcp --permanent # Nova
firewall-cmd --zone=management --add-port=9696/tcp --permanent # Neutron
firewall-cmd --zone=management --add-port=8776/tcp --permanent # Cinder
firewall-cmd --zone=management --add-port=9292/tcp --permanent # Glance
firewall-cmd --zone=management --add-port=8080/tcp --permanent # Swift
firewall-cmd --zone=management --add-port=8004/tcp --permanent # Heat
firewall-cmd --zone=management --add-port=443/tcp --permanent # Horizon
firewall-cmd --zone=management --add-port=3000/tcp --permanent # Grafana
firewall-cmd --zone=management --add-port=9090/tcp --permanent # Prometheus
firewall-cmd --reload
# Default deny on all other ports
firewall-cmd --zone=management --set-target=DROP --permanent
firewall-cmd --reload

Security group defaults:

bash
# Create restrictive default security group rules
openstack security group rule delete $(openstack security group rule list default -f value -c ID)
# Start with no rules (default deny)
# Add only SSH and ICMP for management
openstack security group rule create --protocol tcp --dst-port 22 --remote-ip 10.0.0.0/8 default
openstack security group rule create --protocol icmp default

Configure

Certificate Lifecycle Management

Certificate inventory:

CertificateLocationExpiryRotation Frequency
CA root/etc/kolla/certificates/ca/root.crt10 yearsRarely (re-sign all on rotation)
HAProxy external/etc/kolla/certificates/haproxy.pem1 yearAnnually (or before expiry)
HAProxy internal/etc/kolla/certificates/haproxy-internal.pem1 yearAnnually
Service backendPer-service in /etc/kolla/<service>/1 yearAnnually

Expiry monitoring:

bash
#!/bin/bash
# check-cert-expiry.sh -- alert on certificates expiring within 30 days
THRESHOLD_DAYS=30
THRESHOLD_SECS=$((THRESHOLD_DAYS * 86400))
for cert in /etc/kolla/certificates/*.pem /etc/kolla/certificates/*.crt; do
[ -f "$cert" ] || continue
expiry=$(openssl x509 -in "$cert" -noout -enddate 2>/dev/null | cut -d= -f2)
expiry_epoch=$(date -d "$expiry" +%s 2>/dev/null)
now_epoch=$(date +%s)
remaining=$((expiry_epoch - now_epoch))
if [ $remaining -lt $THRESHOLD_SECS ]; then
echo "WARNING: $cert expires in $((remaining / 86400)) days ($expiry)"
fi
done

Rotation procedure:

bash
# 1. Generate new certificate (see Deploy section)
# 2. Replace PEM file
cp /etc/kolla/certificates/haproxy-new.pem /etc/kolla/certificates/haproxy.pem
# 3. Reconfigure HAProxy to pick up new cert
kolla-ansible -i inventory reconfigure --tags haproxy
# 4. Verify
openssl s_client -connect ${KOLLA_EXTERNAL_VIP}:443 </dev/null 2>/dev/null | openssl x509 -noout -dates
RBAC Policy Customization

Per-service policy files:

Each OpenStack service has a policy.yaml (or policy.json) that defines authorization rules:

bash
# Location: /etc/kolla/<service>/policy.yaml
# Kolla-Ansible merges custom policies with code defaults
# Example: Keystone -- restrict user creation to domain admins
# /etc/kolla/keystone/policy.yaml
"identity:create_user": "rule:admin_required and domain_id:%(target.user.domain_id)s"
# Example: Nova -- restrict flavor management to cloud admins
# /etc/kolla/nova/policy.yaml
"os_compute_api:os-flavor-manage": "role:admin and is_admin_project:True"
# Example: Neutron -- restrict external network creation
# /etc/kolla/neutron/policy.yaml
"create_network:router:external": "role:admin"

Best practices:

  • Start with defaults; override only what you need
  • Document every policy override with rationale
  • Test policy changes with a non-admin user before deploying
  • Use oslopolicy-checker to validate policy files
bash
# Validate policy syntax
docker exec nova_api oslopolicy-checker --policy /etc/nova/policy.yaml
Network Segmentation
NetworkPurposeVLAN/SubnetAccess Control
ManagementAPI endpoints, admin accessVLAN 100 / 10.0.100.0/24Firewall: SSH + API ports only
Tenant (overlay)VM-to-VM trafficVXLAN / 10.0.1.0/24Neutron security groups
External (provider)Internet-facing, floating IPsVLAN 200 / 192.168.1.0/24NAT + security groups
Storage (optional)Cinder/Swift backendVLAN 300 / 10.0.200.0/24No external access
Audit Logging

Keystone CADF events:

ini
# keystone.conf
[DEFAULT]
notification_driver = messagingv2
notification_format = cadf
# CADF events include:
# - authentication.authenticate (success/failure)
# - identity.authenticate.pending
# - identity.create_user
# - identity.update_project
# - identity.delete_role_assignment

Log aggregation for security events:

bash
# Search for failed authentication attempts
docker logs keystone_api 2>&1 | grep -i "authentication failed\|401\|Unauthorized" | tail -20
# Search for RBAC denials
docker logs nova_api 2>&1 | grep -i "policy\|403\|Forbidden" | tail -20
# Aggregate across all services
for svc in keystone nova neutron cinder glance; do
echo "=== ${svc} ==="
docker logs ${svc}_api 2>&1 | grep -c "401\|403" || echo 0
done
Password Rotation
bash
# 1. Generate new passwords
kolla-genpwd # Or manually update /etc/kolla/passwords.yml
# 2. Reconfigure services to use new passwords
kolla-ansible -i inventory reconfigure
# 3. Verify all services authenticate with new credentials
openstack token issue
openstack service list
API Rate Limiting

Configure HAProxy rate limiting to prevent brute-force attacks:

# /etc/kolla/haproxy/haproxy.cfg (via Kolla-Ansible custom config)
frontend keystone_api
stick-table type ip size 100k expire 30s store http_req_rate(10s)
http-request deny deny_status 429 if { sc_http_req_rate(0) gt 100 }
http-request track-sc0 src
Service Account Hardening
bash
# List all service accounts
openstack user list --domain default --project service
# Verify each service account has only the required role
for svc in nova neutron cinder glance swift heat; do
echo "=== ${svc} ==="
openstack role assignment list --user ${svc} --names
done
# Each should have exactly "admin" role on "service" project -- no more

Operate

Certificate Rotation Procedures

Planned rotation (before expiry):

  1. Generate new certificate with same SAN entries
  2. Verify new certificate: openssl x509 -in new.crt -noout -text
  3. Create combined PEM: cat new.crt new.key > new.pem
  4. Backup current certificate: cp haproxy.pem haproxy.pem.bak
  5. Replace: cp new.pem haproxy.pem
  6. Reconfigure: kolla-ansible -i inventory reconfigure --tags haproxy
  7. Verify all endpoints: openstack token issue

Emergency rotation (compromised key):

  1. Revoke compromised certificate (if using CA with CRL)
  2. Generate new key pair immediately (do not reuse old key)
  3. Issue new certificate from CA
  4. Deploy and reconfigure (same as planned rotation steps 3-7)
  5. Audit: review logs for unauthorized access during compromise window
  6. Rotate all service passwords as precaution
Security Audit Checklist

Weekly:

  • [ ] Review failed authentication logs (Keystone CADF)
  • [ ] Check for unauthorized API access patterns
  • [ ] Verify security group rules unchanged from baseline
  • [ ] Confirm certificate expiry > 30 days

Monthly:

  • [ ] Run vulnerability scan against API endpoints
  • [ ] Review RBAC policies against least-privilege baseline
  • [ ] Audit service account permissions
  • [ ] Check for CVEs affecting deployed OpenStack version
  • [ ] Verify audit logging is active and rotated properly

Quarterly:

  • [ ] Conduct penetration test scope review
  • [ ] Review network segmentation effectiveness
  • [ ] Rotate service account passwords
  • [ ] Update security baseline documentation
Incident Response Procedures

Compromised credential (user or service account):

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
35
Repository forks
5
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tibsfox/gsd-skill-creator/security/badge)](https://verified-skill.com/skills/tibsfox/gsd-skill-creator/security)

Something wrong with this skill or its page? Tell us.