You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden Redis, InstanceHA, Memcached, DNSMasq, and RabbitMQ workload security
Address anyuid SCC and overly permissive RBAC findings
across all infra-operator workloads.
Redis:
- Remove sudo -E kolla_set_configs from startup scripts — eliminates
the only blocker for nonroot-v2. Config files are now read directly
from the generated path (/var/lib/config-data/generated/), and TLS
certs reference the volume-mounted paths instead of /etc/pki/tls/.
- Change SCC from anyuid to nonroot-v2
- Remove kolla-config volumes and mounts (config.json files deleted)
- Reduce workload SA pod verbs from full CRUD to get/list/watch/patch
- Add full SecurityContext via pod.RestrictiveSecurityContext helper
- Set AutomountServiceAccountToken: false with projected SA token volume
InstanceHA:
- Change SCC from anyuid to nonroot-v2
- Add SeccompProfile RuntimeDefault
- Set AutomountServiceAccountToken: false with projected SA token volume
- Use lib-common pod.RestrictiveSecurityContext helper
Memcached:
- Bypass kolla_start entrypoint — run memcached directly by sourcing
/etc/sysconfig/memcached (volume-mounted) instead of going through
kolla_set_configs which requires sudo. Delete kolla config.json and
remove kolla-config volume/mount.
- Change SCC from anyuid to nonroot-v2
- Remove full pod CRUD from workload SA (no SA token usage)
- Set AutomountServiceAccountToken: false
- Add full SecurityContext via pod.RestrictiveSecurityContext helper
DNSMasq:
- Change SCC from anyuid to nonroot-v2
- Remove full pod CRUD from workload SA (no SA token usage)
- Set AutomountServiceAccountToken: false
- Add DnsmasqUID constant (42435, neutron UID from kolla)
- Add full SecurityContext via pod.RestrictiveSecurityContext helper
RabbitMQ:
- Change SCC from anyuid to nonroot-v2 (bypasses kolla entrypoint,
runs rabbitmq-server directly as UID 999, no sudo needed)
- Set AutomountServiceAccountToken: false with projected SA token volume
- Add full SecurityContext via pod.RestrictiveSecurityContext on both
rabbitmq and amqp-proxy containers
- Keep FSGroup=0 to avoid chown overhead on existing PVCs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments