-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User \"system:anonymous\" cannot get path \"/apis/constraints.gatekeeper.sh/v1beta1// #330
Comments
Hello @steve-heslouin You could try mounting also the binary to somewhere in Another option is to build your own image for GPM adding the FROM curlimages/curl:7.81.0 as downloader
RUN curl https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.5/aws-iam-authenticator_0.5.5_linux_amd64 --output /tmp/aws-iam-authenticator
RUN chmod +x /tmp/aws-iam-authenticator
FROM quay.io/sighup/gatekeeper-policy-manager:v0.5.1
COPY --from=downloader --chown=root:root /tmp/aws-iam-authenticator /usr/local/bin/ |
@ralgozino Thanks a lot for your feedback, let me try it and i will let you know ;) |
@ralgozino I rather have this error:
DO you have an idea where that could come from? Thanks a lot :) |
What version of kubectl do you have installed? Could you please check your kubeconfig and see if you have a section like this: # [...]
users:
- name: kubernetes-admin
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
command: aws-iam-authenticator
args:
- "token"
- "-i"
- "REPLACE_ME_WITH_YOUR_CLUSTER_ID"
- "-r"
- "REPLACE_ME_WITH_YOUR_ROLE_ARN"
# no client certificate/key needed here! if you do, check that the I think it could be a mismatch between the Kubernetes client version included in GPM and your kubeconfig format. I would suggest trying with the |
Ok so i edited my kubeconfig to target v1beta1 instead and that worked great, i logged in and saw my constraints. |
Great to hear that! We'll be waiting for your feedback 🙂 |
Turns out i also had some cluster that were relying on |
I need to think about it, as first thought, I would prefer not to include them in order to no couple GPM version to AWS's tooling. What we can do instead is to add documentation on how to do it so everyone can easily build the image with the versions they need. |
Hello, i wanted to try your dashboard so i could try runing it for my company, but that didn't worked.
On my local machine i used :
It loaded my kubeconfig file correctly, when i click "Get constraints status", it give me following error:
I have gatekeeper 3.7 installed on my EKS cluster and its up and running.
We use STS assume role and use the aws-auth mechanism provided by AWS, could that be the issue , as it seems the client run by default in anonymous, and ofc we don't provide access to anonymous user in our clusters
Thanks
The text was updated successfully, but these errors were encountered: