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

fix: hide password for create-service-broker (v8) #2410

Merged
merged 1 commit into from Apr 24, 2023

Conversation

blgm
Copy link
Member

@blgm blgm commented Apr 20, 2023

Does this PR modify CLI v6, CLI v7, or CLI v8?

  • v8

Please see the contribution doc above or review Architecture Guide.

Description of the Change

The cf create-service-broker command did not allow the password to be specified as an environment variable or via a prompt, meaning that users with certain logging options ended up with a password in the log. This fix brings the cf create-service-broker and cf update-service-broker into line with cf auth and cf login which allow credentials to be specified via environment variables and interactive prompts.

Why Is This PR Valuable?

It fixes a security issue that users have raised

Why Should This Be In Core?

Because it's a fix to an existing core command

Applicable Issues

List any applicable GitHub Issues here

How Urgent Is The Change?

Is the change urgent? If so, explain why it is time-sensitive.

Other Relevant Parties

Who else is affected by the change?

The `cf create-service-broker` command did not allow the password to be
specified as an environment variable or via a prompt, meaning that users
with certain logging options ended up with a password in the log. This
fix brings the `cf create-service-broker` and `cf update-service-broker`
into line with `cf auth` and `cf login` which allow credentials to be
specified via environment variables and interactive prompts.
@blgm
Copy link
Member Author

blgm commented Apr 20, 2023

Cherry-pick of #2400

Copy link
Member

@gururajsh gururajsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gururajsh gururajsh merged commit e535653 into cloudfoundry:v8 Apr 24, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants