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] Read credentials from environment variables #53

Open
bhamail opened this issue Mar 23, 2021 · 1 comment
Open

[FEATURE] Read credentials from environment variables #53

bhamail opened this issue Mar 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bhamail
Copy link
Contributor

bhamail commented Mar 23, 2021

Allow Jake to read OSSI and/or IQ credentials from environment variables.

For consistency, should follow the same naming as nancy, eg:

export [email protected]
export OSSI_TOKEN=A4@k3@p1T0k3n

and for IQ:

export [email protected]
export OSSI_TOKEN=A4@k3@p1T0k3n
export IQ_USERNAME=nondefaultuser
export IQ_TOKEN=yourtoken
export IQ_SERVER=http://adifferentserverurl:port

may relate to Issue #37

cc @bhamail / @DarthHater

@bhamail bhamail added the enhancement New feature or request label Mar 23, 2021
@ewohnlich
Copy link

I like this, particularly for ddt/ossindex since that doesn't appear to accept any parameters for authentication, unlike IQ/Nexus.

I noticed that ossindex already has the capability to configure authentication https://github.com/sonatype-nexus-community/ossindex-python/blob/main/ossindex/ossindex.py#L60 but the jake CLI doesn't seem to use it. Maybe jake could just instantiate with with these OSSI environment variables if they exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants