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

AWS Secretsmanager configmap provider not working #35191

Closed
paraniraja opened this issue Sep 14, 2024 · 2 comments
Closed

AWS Secretsmanager configmap provider not working #35191

paraniraja opened this issue Sep 14, 2024 · 2 comments
Labels
bug Something isn't working confmap/provider/secretsmanagerprovider needs triage New item requiring triage

Comments

@paraniraja
Copy link

Component(s)

confmap/provider/secretsmanagerprovider

What happened?

Description

Below configuration is throwing not supported secretsmanager provider,
image:
repository: otel/opentelemetry-collector-contrib
tag: 0.109.0

exporters:
clickhouse:
endpoint: https://provider1.domain.com:12345
headers:
api-key: ${secretsmanager:}

however in the otel/opentelemetry-collector-contrib-dev docker it is working fine

Steps to Reproduce

Using otel-collector-helm chart, add the following config in values.yaml file
`image:
repository: otel/opentelemetry-collector-contrib
tag: 0.109.0

exporters:
clickhouse:
endpoint: https://provider1.domain.com:12345
headers:
api-key: ${secretsmanager:}`

Expected Result

Collector should read the secrets from AWS secret manager

Actual Result

Error: failed to resolve config: cannot resolve the configuration: scheme "secretsmanager" is not supported for uri "secretsmanager:" │
│ 2024/09/14 15:59:42 collector server run finished with error: failed to resolve config: cannot resolve the configuration: scheme "secretsmanager" is not supported for uri "secretsmana │

Collector version

v0.109.0, v0.107.0, v0.108.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

image:
  repository: otel/opentelemetry-collector-contrib
  tag: 0.109.0

config:
  exporters:
    clickhouse:
      endpoint: https://provider1.domain.com:12345
      headers:
        api-key: ${secretsmanager:<SecretArnOrName>}

Log output

Error: failed to resolve config: cannot resolve the configuration: scheme "secretsmanager" is not supported for uri "secretsmanager:<SecretArnOrName>"                                  │
│ 2024/09/14 15:59:42 collector server run finished with error: failed to resolve config: cannot resolve the configuration: scheme "secretsmanager" is not supported for uri "secretsmana │

Additional context

No response

@paraniraja paraniraja added bug Something isn't working needs triage New item requiring triage labels Sep 14, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@paraniraja
Copy link
Author

Identified, need to build custom image using builder.

Closing the issue

@paraniraja paraniraja closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confmap/provider/secretsmanagerprovider needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

1 participant