-
Notifications
You must be signed in to change notification settings - Fork 19
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
credentialz: clarify the expected format of authorized_key
field
#210
Comments
In some other places we specified the key type with an enum (I thought) is there a reason to not just add the fields and proper enums here? |
Unless the |
Not necessarily.
As long as there's a strict definition of the expected inputs, I'm fine with it; the main issue is the ambiguity. I think for a typical user (outside of google) the direct consumption of a
Yes, choose which approach you think is correct (there are at least three possible options I indicated above, and that is only under the assumption that we're sticking to the single format) and explicitly document it. |
Currently
AuthorizedKey
message does not define the exact format of the key that is expected to be present in the message.gnsi/credentialz/credentialz.proto
Lines 436 to 445 in 559f777
Even if we can assume that openssh rfc4253-based keys are used, then three interpretations are possible:
authorized_key
should include a full pubkey string in the form oftype key comment
authorized_key
should include only thekey
bytes, making a non-zero value of theKeyType
enum mandatoryThis should be clarified in the .proto description.
cc @marcushines @morrowc @robshakir
The text was updated successfully, but these errors were encountered: