Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use a secrets.ini file + jinja templating to apply secrets in cli apps #25

Merged
merged 4 commits into from
Jul 8, 2018

Conversation

lockefox
Copy link
Contributor

@lockefox lockefox commented Jul 8, 2018

  • Adds render_secrets() to prosper_config module
    • uses jinja2 templating to obscure secrets
  • Adds --secret-cfg switch to CLI template
  • Updates get_local_config_filepath() to use os.path utilities rather than just string replace()
  • Updates tests for python3.6 (python3.5 might not work any more)

sample credentials.ini file:

[logging]
    discord_webhook = https://discordapp.com/api/webhooks/99999/fake-fake_fake-fake
    slack_webhook = https://hooks.slack.com/services/T1FAKE/B1FAKE/fakefake

@lockefox lockefox merged commit 4f03f4c into master Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant