Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Add a password STDIN option to registry login #171

Merged
merged 1 commit into from
Dec 26, 2019

Conversation

Waterdrips
Copy link
Contributor

Description

I had not added the --password-stdin option to
registry-login command, it has now been added so
users dont leave stuff in history

closes #169
Signed-off-by: Alistair Hey [email protected]

How Has This Been Tested?

go build && echo $PASSWORD | ./ofc-bootstrap registry-login --username foo --password-stdin
creates the same file as
go build && ./ofc-bootstrap registry-login --username foo --password $PASSWORD

(tested by creating both and using diffto check they are identical

Checklist:

I have:

  • checked my changes follow the style of the existing code / OpenFaaS repos
  • updated the documentation and/or roadmap in README.md
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Thanks. Added a flag

cmd/registry_login.go Outdated Show resolved Hide resolved
@Waterdrips Waterdrips force-pushed the password-stdin branch 2 times, most recently from 71e2274 to 5816e7d Compare December 25, 2019 23:10
Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Approved

@alexellis
Copy link
Member

Did CI fail?

I had not added the --password-stdin option to
registry-login command, it has now been added so
users dont leave stuff in history

Signed-off-by: Alistair Hey <[email protected]>
@Waterdrips
Copy link
Contributor Author

Did CI fail?

go fmt again. Still need to setup my commit hooks on this laptop :/

@alexellis alexellis merged commit 84a2b30 into openfaas:master Dec 26, 2019
@alexellis
Copy link
Member

Thank you. 0.8.8 contains this fix

@Waterdrips Waterdrips deleted the password-stdin branch June 2, 2020 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

registry-login command should read password from stdin
2 participants