Skip to content

Support OCI Vault integration using Instance Principals #226

Open
@anilmoris

Description

@anilmoris

I’m trying to configure the Oracle DB Observability Exporter (v1.6.0) to retrieve the database password from OCI Vault using Instance Principals.

I am passing
OCI_VAULT_ID
OCI_VAULT_SECRET_NAME

I am seeing this error

time=2025-05-02T11:13:16.538Z level=INFO  source=main.go:75 msg="OCI_VAULT_ID env var is present so using OCI Vault" vaultOCID=ocid1.vault.oc1.phx...
2025/05/02 11:13:16 can not create client, bad configuration: did not find a proper configuration for tenancy

Expected behavior:
The exporter should detect and use the instance principal (no local config file), retrieve the secret from OCI Vault, and connect to the database without requiring a wallet or ~/.oci/config.

Actual current behavior:
It fails with did not find a proper configuration for tenancy even though instance principal is enabled.

a local ~/.oci/config is not needed when using Instance Principals.

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