Setting cdp_private_key incorrect format
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I set the cdp_private_key as follows:
cdp configure set cdp_private_key "$CDP_PRIVATE_KEY"
The value of environment variable CDP_PRIVATE_KEY is:
`-----BEGIN OPENSSH PRIVATE KEY-----
-----END OPENSSH PRIVATE KEY-----
`
After executing command cdp datalake backup-datalake --datalake-name ****** --backup-location ******
, I get error
Failed to import private key from: 'shared-credentials-file'. The private key is corrupted or not in the right format. The private key was extracted either from 'env' (environment variables), 'shared-credentials-file' (a profile in the shared credentials file.....
What should be the correct format for the CDP_PRIVATE_KEY so this configuration is usable in e.g. cdp datalake backup-datalake?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the cdp configure set cdp_private_key and cdp datalake backup-datalake commands with the shown environment-variable value. Trace how the CLI reads the private key from env and shared-credentials-file, then compare the accepted format with the OpenSSH key shown. Done means documenting or correcting the usable CDP_PRIVATE_KEY format and confirming the backup command no longer reports a corrupted key.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100