Skip to content

AWS Secrets Manager Functionality Broken in v1.18.0 #643

Closed
@Timothy-Dement

Description

@Timothy-Dement

Describe the bug

The Argo CD Vault Plugin no longer seems to work properly with AWS Secrets Manager in the recently-released v1.18.0.

Secret interpolation that was previously working without issue in version v1.17.0 is now returning the following error:

Error: Replace: could not replace all placeholders in Template:
not found, ResolveEndpointV2

To Reproduce

  1. Create a sample secret in AWS Secrets Manager
  2. Reference this secret in a sample file
  3. Use argocd-vault-plugin v1.17.0 to interpolate the secret
  4. Use argocd-vault-plugin v1.18.0 to interpolate the secret

Expected behavior

The v1.18.0 version should not break existing AWS Secrets Manager functionality.

Screenshots/Verbose output

Sensitive information has been redacted in the following output (*****), but this is the sample I ran comparing plugin versions.

sample-secret.yaml:

---
apiVersion: v1
kind: Secret
metadata:
  name: sample-secret
  namespace: default
type: Opaque
data:
  secretByName: <path:2024-06-03-sample-secret#hello>
  secretByPath: <path:arn:aws:secretsmanager:*****:*****:secret:2024-06-03-sample-secret-I3pN6O#hello>

Running with v1.17.0 works fine:

./argocd-vault-plugin_1.17.0_darwin_arm64 version
argocd-vault-plugin v1.17.0 (b393c7afa63a43197c084a99959a78d0d26e5e74) BuildDate: 2023-11-12T02:03:06Z
./argocd-vault-plugin_1.17.0_darwin_arm64 generate sample-secret.yaml \
  --config-path avp.yaml \
  --verbose-sensitive-output
apiVersion: v1
data:
  secretByName: world
  secretByPath: world
kind: Secret
metadata:
  name: sample-secret
  namespace: default
type: Opaque

But running with v1.18.0 fails:

./argocd-vault-plugin_1.18.0_darwin_arm64 version
argocd-vault-plugin v1.18.0 (3986b0794cd5f217add8691a32f9276ba6b79767) BuildDate: 2024-05-28T12:57:52Z
./argocd-vault-plugin_1.18.0_darwin_arm64 generate sample-secret.yaml \
  --config-path avp.yaml \
  --verbose-sensitive-output
Error: Replace: could not replace all placeholders in Template:
not found, ResolveEndpointV2
not found, ResolveEndpointV2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions