spring-cloud-starter-aws-secrets-manager-config does not work with spring-cloud-starter-kubernetes-client-config #349
Replies: 2 comments 6 replies
-
Do you mean to load this secret |
Beta Was this translation helpful? Give feedback.
-
yes it is unwanted side effect and application fails to load due to that. what i am trying to do is load the aws secret from config map instead from app. yaml. my contents of config map -
this fails with error - 2022-04-29 03:15:07.445 INFO [spring-cloud-k8s-demo,,] 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-configmap.spring-cloud-k8s-demo.default'}] io.awspring.cloud.secretsmanager.AwsSecretsManagerPropertySources$AwsSecretsManagerPropertySourceNotFoundException: com.amazonaws.services.secretsmanager.model.ResourceNotFoundException: Secrets Manager can't find the specified secret. (Service: AWSSecretsManager; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: 0270f925-cd16-4bb3-b0e2-8047af614bba; Proxy: null) |
Beta Was this translation helpful? Give feedback.
-
I am trying to use aws-secrets-manager for secrets and kubernetes-client-config for app configuration.
aws-secrets-manager works fine in isolation , however when i add the kubernetes-client-config dependency the app fails.
aws-secrets-manager for some reason tries to read a non existent secret (/secret/null_kubernetes) and fails with below error
aws-sdk-java-1651158580786 is not authorized to perform: secretsmanager:GetSecretValue on resource: /secret/null_kubernetes because no identity-based policy allows the secretsmanager:GetSecretValue action (Service: AWSSecretsManager; Status Code: 400; Error Code: AccessDeniedException;
Beta Was this translation helpful? Give feedback.
All reactions