GithubHelp home page GithubHelp logo

AWS provider pod failing with "panic: runtime error: invalid memory address or nil pointer dereference" about secrets-store-csi-driver-provider-aws HOT 2 CLOSED

egarbi avatar egarbi commented on August 27, 2024
AWS provider pod failing with "panic: runtime error: invalid memory address or nil pointer dereference"

from secrets-store-csi-driver-provider-aws.

Comments (2)

jbct avatar jbct commented on August 27, 2024

Thank you for the bug report, @egarbi. We will take a look

from secrets-store-csi-driver-provider-aws.

YuvalShAz avatar YuvalShAz commented on August 27, 2024

Hi @egarbi I see that in your supplied secrets.yaml provider class you seem to be using an ssmparameter objectType and a full arn as the objectName. However, for parameter store objects you must use the name and not the full arn. From the README:

For SSM Parameter Store, this must be the Name of the parameter and can not be a full ARN.

I've reproduced your problem using the full arn:

MountVolume.SetUp failed for volume "grafana-db-creds" : rpc error: code = Unavailable desc = failed to mount secrets store objects for pod default/pod, err: rpc error: code = Unavailable desc = error reading from server: EOF

And I've confirmed that the container starts up and mounts as intended when using just the name.

An additional note: I can't see your full deployment specification file so it's impossible to know, but if you check the examples/ExampleDeployment.yaml you'll see that the

volumeMounts:
  - name: grafana-db-creds
    mountPath: /mnt/secrets
    readOnly: true
env:
  - name: GF_SECURITY_ADMIN_USER
    valueFrom:
      secretKeyRef:
        name: grafana-db-creds
        key: username
  - name: GF_SECURITY_ADMIN_PASSWORD
    valueFrom:
      secretKeyRef:
        name: grafana-db-creds
        key: password

block is included in the containers section and is therefore not at the same indentation as volumes which is what your deployment specification seems to be.

from secrets-store-csi-driver-provider-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.