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

Can't reference AWSCURRENT and AWSPREVIOUS in the same secretproviderclass #95

Open
sergei-riazanov-privitar opened this issue May 27, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@sergei-riazanov-privitar

The configuration I want to use:

spec:
  parameters:
    objects: |
      ---
      - objectAlias: "encryption-key"
        objectVersionLabel: "AWSCURRENT"
        objectName: "arn:aws:secretsmanager:XXX"
        objectType: "secretsmanager"
      - objectAlias: "previous-encryption-key"
        objectVersionLabel: "AWSPREVIOUS"
        objectName: "arn:aws:secretsmanager:XXX"
        objectType: "secretsmanager"
  provider: aws
  secretObjects:
  - data:
    - key: encryption-key
      objectName: encryption-key
    - key: previous-encryption-key
      objectName: previous-encryption-key
    secretName: YYY
    type: Opaque

As result I get this on mounting the volume:
"Warning FailedMount 71s (x9 over 3m19s) kubelet MountVolume.SetUp failed for volume "YYY" : rpc error: code = Unknown desc = failed to mount secrets store objects for pod ..., err: rpc error: code = Unknown desc = Name already in use for objectName: arn:aws:secretsmanager:XXX"

@sergei-riazanov-privitar
Copy link
Author

sergei-riazanov-privitar commented May 27, 2022

Does this check make sense if the object have aliases?

@jbct
Copy link

jbct commented Feb 2, 2023

Thank you for the report, sergei-riazanov-, we are looking into the issue.

@jbct jbct added bug Something isn't working and removed enhancement New feature or request labels Feb 2, 2023
@Tanakpek
Copy link

has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants