teller icon indicating copy to clipboard operation
teller copied to clipboard

A way to resolve values for a similarly named entry from more than 1 provider

Open kevbook opened this issue 3 years ago • 4 comments

Feature Request

A way to resolve values for a similarly named entry from more than 1 provider

kevbook avatar Jul 15 '22 15:07 kevbook

Hey @kevbook can you please elaborate this case? Example usecase will be perfect

kaplanelad avatar Jul 17 '22 08:07 kaplanelad

Absolutely. A common use case:

  1. Our dev creds for service X lives on AWS secrets manager
  2. As engineers are working locally, they tend to override certain env vars
aws_secretsmanager:
    env:
      # Values http,library-a
      DEBUG_LOGGER:
        path: dev/service-x

dotenv:
    env:
      # Values http,library-a,library-b,library-c
      DEBUG_LOGGER:
        path: .local.env

A key can be in 2 vaults, there is no way to set precedence when using teller show|sh|json|yaml

kevbook avatar Jul 18 '22 13:07 kevbook

I'll continue with your example. Why are you configuring the same key name (DEBUG_LOGGER). In case you are not working with Teller and using an environment variable, you need it to be unique. You have an option to create a prefix to each entry and use teller template.

What do you expect from teller to do? Add a prefix to each entry with the provider name?

kaplanelad avatar Jul 19 '22 12:07 kaplanelad

@kevbook, any thoughts about my previous message?

kaplanelad avatar Aug 03 '22 05:08 kaplanelad

As it's been quite some time since I've received any response to this pull request, I'll be closing it for now. Thank you for your consideration and time.

If anyone would like to continue the discussion on this issue, please feel free to reopen the ticket.

kaplanelad avatar May 04 '23 07:05 kaplanelad