Skip to content

Configuring Secrets Priority in propertySources #1867

@arjavdongaonkar

Description

@arjavdongaonkar

In the current setup, Kubernetes Secrets appear at the bottom of the propertySources list in the API response.

Example response:

"propertySources": [
  { "name": "vault:application" },
  { "name": "secret:ab-service-secrets" }
]

This ordering means that values from Kubernetes Secrets have lower precedence than other configuration sources. However, in many cases, it would be preferable for Kubernetes Secrets to take priority, allowing other configurations to resolve their values using Secrets.

Questions

  1. Is there a way to configure the order of propertySources so that Kubernetes Secrets appear at the top of the list?
  2. If not, would it be possible to introduce an option to adjust the precedence of Kubernetes Secrets dynamically?

Use Case
Having Kubernetes Secrets at the top of the list ensures that they override other configurations, making them the primary source of truth for sensitive values. This aligns with best practices for managing secrets in Kubernetes-based environments.

Looking forward to your insights on this!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions