-
Notifications
You must be signed in to change notification settings - Fork 230
[sonatype-nexus] IRSA is not working #281
Comments
Facing with the same issue in eks. Checked in cloudtrail, and found, that when I used aws-cli, it uses role attached via serviceaccount, but when nexus try to trigger As I see during this configuration, env variables AWS_ROLE_ARN: arn:aws:iam::xxxx:role/nexus-bucket-role-xxx
AWS_WEB_IDENTITY_TOKEN_FILE: /var/run/secrets/eks.amazonaws.com/serviceaccount/token configured automatically, when I have in my chart values: serviceAccount:
annotations:
"eks.amazonaws.com/role-arn": "arn:aws:iam::xxxx:role/nexus-bucket-role-xxx" with existed role. Possibly current version of aws sdk <aws-java-sdk.version>1.11.822</aws-java-sdk.version> does not support WebIdentityToken as it described here https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html? Looks like so, in Changelog of aws sdk v1 I have not found anything about it, but found it here Changelog of aws sdk v2 - AWS Security Token Service Edited: hm, no it was added previously in another changelog file for 1.11.x in 1.11.704 version this env variable already exist |
Currently I faced with issue Oteemo/charts#281, and possibly bump of aws sdk java version can help with it
Currently I faced with issue Oteemo/charts#281, and possibly bump of aws sdk java version can help with it
Hm, tested locally update of aws sdk java to 1.12.57 with compiling locally |
Faced the same issue. SolutionWe solved the issue by delegating volume permission to the group of the Get group ID of $ id -u nexus
1000 Update the security context for the pod in the Helm values: nexus:
securityContext:
- fsGroup: 200
+ fsGroup: 1000 Additional informationDocker image: |
IRSA should be supported with Nexus version 3.26 as per NEXUS-24019
Chart version: 4.4.3
Image: quay.io/travelaudience/docker-nexus:3.27.0
Got the following error while trying to create a S3 blob store:
The text was updated successfully, but these errors were encountered: