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

secrethub init with setup code #332

Merged
merged 29 commits into from
Sep 7, 2020
Merged

Conversation

Marton6
Copy link
Member

@Marton6 Marton6 commented Aug 7, 2020

This PR implements the --setup-code flag for the secrethub init command allowing users to initialize accounts using setup codes.

@Marton6 Marton6 marked this pull request as ready for review August 10, 2020 10:45
@Marton6 Marton6 marked this pull request as draft August 11, 2020 15:14
@Marton6 Marton6 removed the request for review from SimonBarendse August 11, 2020 15:14
The new names reflect the kind of clients they create, making it
easier to spot which type of client is used where.
@SimonBarendse SimonBarendse marked this pull request as ready for review August 12, 2020 13:24
Copy link
Member

@jpcoenen jpcoenen left a comment

Choose a reason for hiding this comment

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

Tried it and it does work nicely 🎉

My comments are mainly abou the chunks of duplicate code (I think) I found. If they are actually duplicated, it makes the maintenance of this code a lot more difficult. So see if you can move some things to separate functions (if this makes sense).

internals/secrethub/client_factory.go Outdated Show resolved Hide resolved
internals/secrethub/init.go Outdated Show resolved Hide resolved
internals/secrethub/init.go Outdated Show resolved Hide resolved
internals/secrethub/init.go Outdated Show resolved Hide resolved
internals/secrethub/init.go Outdated Show resolved Hide resolved
internals/secrethub/init.go Outdated Show resolved Hide resolved
This commit also makes the cli point to the version of the client containing the required changes.
Co-authored-by: Floris van der Grinten <floris@grinten.com>
@jpcoenen jpcoenen merged commit b964bc5 into develop Sep 7, 2020
@jpcoenen jpcoenen deleted the feature/init-with-setup-code branch September 7, 2020 16:15
@florisvdg florisvdg mentioned this pull request Sep 8, 2020
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.

4 participants