Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Switch secret store to the keyring secret store #4754
Switch secret store to the keyring secret store #4754
Changes from 3 commits
28859d2
10fcf0c
aa0441f
3455769
75e4272
20d26e3
df118b2
12cd140
040f3a4
3e36d53
7381a97
49ef05d
650ef8b
630aec0
f82f871
c4bf95d
43e4d6c
0b9995d
98caf12
a0e18dd
ca275a2
4283079
3fb144a
4511c5f
9186212
66ba136
cbe6b34
54ee067
73f0188
2ab5885
5b5f483
8155784
14053ee
4ae6295
374b636
02c146a
41706eb
c5fde86
395d008
9f6c0fb
e02969d
2a56062
669fa30
fb6c357
e92e489
878145f
528df97
17067ee
f6d5ff4
f8b78ae
a224259
04589a6
f379cfc
a7344d8
ce6806b
f8867e4
dfef9ba
010c4ec
253f8ed
9539583
c21bd0c
8b900c3
d49c4a0
9e2aa00
17f023c
96b4b94
75e1acf
c182e14
bef4778
7c497d8
c474bef
2e8e881
d1a013c
7a78786
e66b8ce
c6b537b
e98f309
9f47a91
4069283
6e6f1a3
effd2dd
f3de484
0b7ecd9
e8cf6c9
9c4cf7e
09cc23f
507cdcf
2717800
c2338a7
5207c7b
af7dece
8f66659
cfb4dd3
9f73d8f
52a0bd9
4ab875b
d0f676e
a9c3573
e4417a1
1cea42c
777bbb0
7e348ae
096f56c
bfc3b55
acf6b17
803d2eb
788f762
2e74282
54d2326
bbc3ea2
9065a01
f7c39a9
d83f189
cda535e
553ef29
cbb43ab
c408e67
27fa3eb
d59bfd7
3e1a2f3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need an
io.Reader
here? We should rather not break the existing API(s) and require anio.Reader
just to get an address.If it's a must, then the
io.Reader
should already exist or be set on the context.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to pass the return value of the call
cmd.InOrStdin()
, I see the point of introducing this change.Though I agree with @alexanderbez, ideally this API should not change and an input buffer should be passed via a
func (ctx CLIContext) SetInput(io.Reader) Context
method.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that if the input is not passed in, it will cause problems when the new keyring secret store gets initiated. The input is required for the keyring secret store because we need the input to pass in the password. The password input unlocks the keyring store. The way it is implemented seems to be the best way. Let me know your thoughts. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I understand the need for the
io.Reader
, but what I'm suggesting is:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I understand the proposed refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See updates to the API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API should not change. Rather, a user should call
NewCLIContext().WithInput(reader)...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same reasoning as #4754 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See response; I do not believe this API should change solely due to Keybase requirements.