tellerops / teller

Cloud native secrets management for developers - never leave your command line for secrets.
https://github.com/tellerops/teller
Apache License 2.0
2.83k stars 186 forks source link

`teller env` produces unquoted variable values that have whitespace characters #240

Closed zshehov closed 4 months ago

zshehov commented 6 months ago

Expected Behavior

Variables containing whitespace characters should be quoted on env generation

Current Behavior

Variables containing whitespace characters are produced without quotes in the resulting env file after teller env. Also, variables coming from a dotenv provider that already have quotes have their quotes removed.

Possible Solution

Persist already quoted variable values in the dotenv provider + Scan for whitespaces and quote values for teller env output

Steps to Reproduce

  1. Create a source dotenv .env.source file with a variable including whitespace: TEST="two words"
  2. Create a .teller.yml file with dotenv provider that has
    env_sync:
      path: .env.source
  3. Call teller env
  4. The produced output has TEST=two words

Specifications

jondot commented 4 months ago

Thanks, should be fixed with Teller 2.0 now