Conjur - Follower fails to configure with 'operation not permitted' error

Conjur - Follower fails to configure with 'operation not permitted' error

138
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:59 PM


Symptom


Follower fails to configure with 'follower not permitted' message. This may manifest in a few different messages in the Conjur Follower Docker logs. For example:

keyctl_join_session_keyring: Operation not permitted

tar: opt/conjur/etc/ssl/conjur-follower.dap-follower-cluster1.svc.cluster.local.key: Cannot change ownership to uid 0, gid 999: Operation not permitted


Environment


11.7;12.0;12.1;12.2;12.4;12.3;12.5;12.6;12.7 Conjur Server Conjur v11 and higher

Cause


This is cause by insufficient permissions for the Conjur Follower container. The Conjur Follower container must run as root.

Resolution


Ensure the Conjur Follower Deployment allows the Conjur container to run with a privileged security context. This can be accomplished by adding:

securityContext:
  privileged: true

to the Conjur container in the Deployment's Pod template.

For example, when using the templates in kubernetes-conjur-deploy, this will look like:

containers:
  - name: conjur-appliance
     command: ["/tmp/seedfile/start-follower.sh"]
     ...
     securityContext:
       privileged: true
     ...

 

Few other options are:
1. Apply Least Privilege using JSON.
As a best practice, it is recommended to run the appliance container with security-opt (seccomp):

security-opt seccomp=/opt/cyberark/conjur/security/seccomp.json

Note: This option is not applicable for a Follower deployed in k8s or OCP.

2. Deploy Conjur Kubernetes Follower that runs as non-root.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000018uwCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail