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

service key as true JSON #2739

Open
ThePlenkov opened this issue Jan 15, 2024 · 0 comments
Open

service key as true JSON #2739

ThePlenkov opened this issue Jan 15, 2024 · 0 comments

Comments

@ThePlenkov
Copy link

ThePlenkov commented Jan 15, 2024

The problem

Cloud Foundry CLI delivers service-key command capable to print credentials. Unfortunately printing credentials to the terminal is not always secure. Additionally the response of this CLI is not parseable because of the text Getting key ... for service instance ... as ...

Yes, the solution is very simple now - just removing few lines with a script like this cf service-key $SK $SK-key | sed -n '2,$p' but still - since we talk about CLI it would be nice to make it a standard feature with some parameter like --parseable ( like in npm commands )

Desired solution
Instead of the script like this
cf service-key $SK $SK-key | sed -n '2,$p' | jq .credentials
I'd like to run something like
cf service-key $SK $SK-key --parseable | jq .credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants