Loading OPA Bundles from S3 using EKS and OIDC #477
-
Hello I am currently trying to set up OPA Bundles in S3 (not public) and I am having trouble getting the web_identity_credentials to work in OPA. I have set up the EKS with OIDC and enabled full S3 privileges (for testing). To confirm connectivity and permissioning I was able to download the bundle via the aws-cli using the OIDC s3 credentials without issue in a different container but when I use the OPA container I receive a 403 forbidden. Testing with this command Current config is
Error is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Have you already followed the steps documented here? There was a related issue mentioning Web Identity Creds that could be helpful open-policy-agent/opa#5562. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing this. Is there any difference between a public and non-public S3 setup in terms of access? Also are you able to verify that the env variables are properly set and available to the OPA container? |
Beta Was this translation helpful? Give feedback.
After investigation, the issue was found to be in the OPA config. s3_signing was spelt incorrectly causing OPA to skip over using or pulling in AWS credentials.
Thanks all for your time on this.