bottlerocket-os / bottlerocket-os/bottlerocket

SELinux seems to be blocking spire csi driver installation.

Open
#3,833 2 comments 0 reactions 1 assignee Claimed by @bcressey View on GitHub
status/icebox
Dominant language
Rust
Stars
9.7k
Forks
586
Avg merge
1d 11h
Merged PRs (30d)
11

Description

I followed the spire/istio quick start here and I'm seeing a lot of selinux denials on the node:

[ 9787.965707] audit: type=1400 audit(1710880774.925:558): avc: denied { search } for pid=33158 comm="sh" name="spire-agent-socket-dir" dev="nvme1n1p1" ino=288654 scontext=system_u:system_r:container_t:s0:c244,c337 tcontext=system_u:object_r:data_t:s0:c839,c970 tclass=dir permissive=0

**Image I'm using:**

bottlerocket-aws-k8s-1.26-x86_64-v1.19.2-29cc92cc

**What I expected to happen:**

I should be able to mount the csi driver socket as a volume.

**What actually happened:**

I get permission denied errors.

**How to reproduce the problem:**

https://istio.io/latest/docs/ops/integrations/spire/

Follow the quick start tutorial in the istio documentation here, the ingress gateway won't come up because of permissions problems.

Maybe this is just a user error sort of thing and I need to fix the security context or something that needs to be fixed in the spire agent, but there's a work around here:

https://github.com/spiffe/spiffe-csi/issues/54#issuecomment-1490620403

that supposedly fixes the issue in OpenShift but doesn't resolve it for bottlerocket. (i get permission denied when trying to relabel the file)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.