question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Meltano `config list` and `config set` should print settings with `kind:secret` as `(redacted)`

See original GitHub issue

As reported in slack and I have confirmed locally.

Currently meltano config set will print the setting value in clear text after setting it, and similarly, config list will print the secret value in clear text as well.

Proposed changes:

  1. meltano config set would print (redacted) in place of the setting value when confirming that the value has been stored.
  2. meltano config list would print (redacted) in place of the current value when printing the list of all settings.

cc @tayloramurphy

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronsteerscommented, Oct 5, 2022

@DouweM - Thanks for the extra context. It’s pretty common for secrets to be set in a one-way capacity, without visibility after the value being set. (GitHub does this, for example. Once set, you can override the value but not view it.)

I would personally lean towards also redacting on meltano config (with no subcommand) but adding something like --secrets --with_secrets or --secrets=true allowing users to skip redactions.

1reaction
DouweMcommented, Oct 5, 2022

@aaronsteers @tayloramurphy I think we should still have some way to verify it’s been set correctly. We had a bug in the past where env-var expansion would accidentally remove anything following a $ from a password, for example, that would be hard to identify without being able to see what Meltano will actually pass on to the plugin.

A new flag on config list perhaps? Or do you think meltano config showing the unredacted value will be sufficient (assuming you left that one out in the description on purpose)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Configuration
You can use meltano config <plugin> list to list all available settings for a plugin with their names, environment variables, and current values....
Read more >
Settings - Meltano Documentation
You can use meltano config meltano list to list all available settings with their names, environment variables, and current values. Configuration that is ......
Read more >
Command Line - Meltano Documentation
Enables you to manage the configuration of Meltano itself or any of its plugins, as well as plugin extras. When no explicit --store...
Read more >
Complete Tutorial - Meltano Documentation
Follow the prompts to step through all available settings, or select an individual setting to configure. You can also optionally use the list...
Read more >
General Usage - Meltano Documentation
Since plugins in your project need to have unique names, a discoverable plugin can ... A setting kind can be specified alongside the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found