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

Using Credential Environment Variables to login #5

Open
tomateoooh opened this issue Jan 10, 2025 · 0 comments
Open

Using Credential Environment Variables to login #5

tomateoooh opened this issue Jan 10, 2025 · 0 comments

Comments

@tomateoooh
Copy link

Hi,

I am trying to use credential environment variables to log into the CLI. I set my CDP_ACCESS_KEY_ID and CDP_PRIVATE_KEY as two strings, as they are presented in the API Access Key:
image

I'm getting the following error:
cdpy.common.CdpError: CdpError(NoCredentialsError('Unable to locate CDP credentials: Private key file does not exist.'))

Which suggests to me that the code expects a path to a private key file. This seems odd to me, as a file is unnecessary when the token is available in the environment variable. Is this the intended behaviour? Using a file, rather than the string directly from the variable seems less secure as the credentials will be just available to read.

Thanks,
Tom

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

No branches or pull requests

1 participant