Test Pod Privileges¶
The test-operator follows security best practices by applying a restricted security profile to all test pods by default. This section describes the defaults and when you might need to change them.
Default Security Profile¶
Every test pod runs with the following restrictions:
Seccomp: A
RuntimeDefaultprofile filters system calls at the kernel level.Privilege escalation: Disabled processes cannot gain more privileges than their parent.
Root filesystem: Read-only containers cannot modify their own binaries or write to unexpected locations.
Capabilities: All capabilities are dropped.
SELinux level: Not set by default. Only needed for privileged workflows that write to shared PVCs.
When to Use Privileged Mode¶
Important
Leave privileged: false unless your tests specifically require it.
Set privileged: true on the CR spec when your tests need capabilities
that the default profile blocks. The two capabilities added in privileged mode
are:
NET_ADMINallows modifying network configuration such as routing tables, interfaces, and firewall rules.NET_RAWallows raw socket access for tools likepingandtcpdump.
Privileged mode is also required when Tempest installs additional RPMs at
runtime via extraRPMs, since that needs a writable root filesystem.