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

feature: retrieve credentials from SP environment variables #1640

Merged
merged 2 commits into from
May 31, 2023

Conversation

bossenti
Copy link
Contributor

Purpose

This PR allows to retrieve credentials for the Python client directly from the environment variables without the need to call an additional method (previously: from_env()).
The credential chain applied here looks the following:

  1. keyword arguments passed to StreamPipesApiKeyCredentials()
    if not passed:
  2. environment variables SP_API_KEY and SP_USERNAME are checked.

Remarks

PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): yes

@bossenti bossenti self-assigned this May 30, 2023
@github-actions github-actions bot added dependencies Pull requests that update a dependency file documentation Everything related to documentation python Pull requests that update Python code testing Relates to any kind of test (unit test, integration, or E2E test). labels May 30, 2023
@bossenti bossenti added deprecation Assigned to pull requests or issues that introduce a deprecation. and removed dependencies Pull requests that update a dependency file python Pull requests that update Python code documentation Everything related to documentation testing Relates to any kind of test (unit test, integration, or E2E test). labels May 30, 2023
@bossenti bossenti added this to the 0.93.0 milestone May 30, 2023
@github-actions github-actions bot added dependencies Pull requests that update a dependency file documentation Everything related to documentation python Pull requests that update Python code testing Relates to any kind of test (unit test, integration, or E2E test). labels May 30, 2023
Signed-off-by: bossenti <bossenti@posteo.de>
Signed-off-by: bossenti <bossenti@posteo.de>
@bossenti bossenti force-pushed the feature/retrieve-crendetials-from-envs branch from c8a03b6 to 0276125 Compare May 31, 2023 13:50
@bossenti bossenti merged commit 42b5c9e into dev May 31, 2023
@bossenti bossenti deleted the feature/retrieve-crendetials-from-envs branch May 31, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file deprecation Assigned to pull requests or issues that introduce a deprecation. documentation Everything related to documentation python Pull requests that update Python code testing Relates to any kind of test (unit test, integration, or E2E test).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants