Skip to content
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

Error with Mounting SecretproviderClass with AWS Provider #26

Closed
ephriamj opened this issue Jun 7, 2021 · 3 comments
Closed

Error with Mounting SecretproviderClass with AWS Provider #26

ephriamj opened this issue Jun 7, 2021 · 3 comments

Comments

@ephriamj
Copy link

ephriamj commented Jun 7, 2021

Hello,

I'm receiving an error when I launch a new deployment. These are the steps I'm using.

  1. Deploy SecretProviderClass: kubectl apply -f test-secrets-array.yaml
  2. Create a deploy using helm

When I go to deploy pods, I receive an error:

"Warning FailedMount 23s (x7 over 55s) kubelet, ip-10-6-19-185.ec2.internal MountVolume.SetUp failed for volume "secrets" : rpc error: code = Unknown desc = failed to mount secrets store objects for pod test-service/deployment-test-data-services-8646cdc588-vbz2p, err: rpc error: code = Unknown desc = Failed to load SecretProviderClass: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go value of type []*provider.SecretDescriptor"

Here's how my manifest is setup for SecretProviderClass:

kind: SecretProviderClass
metadata:
  name: eks-test-secrets
  namespace: test-services
spec:
  provider: aws
  parameters:
    objects: |
      array:
        - |
          objectName: "arn:aws:secretsmanager:us-east-1:174596742332:secret:test1-qlL3Np"
        - |
          objectName: "arn:aws:secretsmanager:us-east-1:174596742332:secret:testsecret-uDiDIO"

I also added the parameter:

--set grpcSupportedProviders=”aws”

Just wanted to see if anyone's having the same issue. Thanks.

@lasred
Copy link
Contributor

lasred commented Jun 9, 2021

One thing that caught my attention with your manifest is "array:". That isn't needed. See the example under "SecretProviderClass options" - https://github.com/aws/secrets-store-csi-driver-provider-aws

@ephriamj
Copy link
Author

That worked. Thank you @lasred.

@ephriamj
Copy link
Author

I removed the array, and was able to mount secrets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants