-
Notifications
You must be signed in to change notification settings - Fork 713
Adding list leaf for SSH public keys #1498
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
b0a56b1
2cf87a9
53d3cbb
ac7b959
95fb033
46bb298
043a1c2
bb0945f
2a21e0f
88f6e9b
0bc4cc8
148f620
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -420,6 +420,23 @@ module openconfig-aaa { | |||||
| description | ||||||
| "Operational state data for local users"; | ||||||
| } | ||||||
|
|
||||||
| grouping authorized-ssh-key-config { | ||||||
| description | ||||||
| "Configuration data for user SSH keys"; | ||||||
|
|
||||||
| leaf key-name { | ||||||
|
syaghi-c marked this conversation as resolved.
Outdated
|
||||||
| type string; | ||||||
| description | ||||||
| "The name with which to reference the authorized SSH public key"; | ||||||
| } | ||||||
|
|
||||||
| leaf authorized-ssh-key { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nomenclature-wise, would suggest key/public-key vs. "authorized-ssh-key" throughout - This also replicated the list name as a child |
||||||
| type string; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ref to credentialz decomposition: https://github.com/openconfig/gnsi/blob/main/credentialz/credentialz.proto#L445-L461 |
||||||
| description | ||||||
| "Authorized SSH public key for the user (RSA or ECDSA)"; | ||||||
|
syaghi-c marked this conversation as resolved.
Outdated
|
||||||
| } | ||||||
| } | ||||||
|
|
||||||
| grouping aaa-authentication-user-top { | ||||||
| description | ||||||
|
|
@@ -458,6 +475,38 @@ module openconfig-aaa { | |||||
| uses aaa-authentication-user-config; | ||||||
| uses aaa-authentication-user-state; | ||||||
| } | ||||||
|
|
||||||
| container authorized-ssh-keys { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest putting this into a grouping rather and outside of this grouping |
||||||
| description | ||||||
| "Top-level container for authorized SSH keys"; | ||||||
|
|
||||||
| list authorized-ssh-key { | ||||||
| key "key-name"; | ||||||
| description | ||||||
| "Authorized SSH public keys for the user (RSA or ECDSA)"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the key type refs |
||||||
|
|
||||||
| leaf key-name { | ||||||
| type leafref { | ||||||
| path "../config/key-name"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
| description | ||||||
| "References the key name in the configuration block"; | ||||||
| } | ||||||
|
|
||||||
| container config { | ||||||
| description | ||||||
| "Configuration data for the authorized SSH key"; | ||||||
| uses authorized-ssh-key-config; | ||||||
| } | ||||||
|
|
||||||
| container state { | ||||||
| config false; | ||||||
| description | ||||||
| "Operational state data for the authorized SSH key"; | ||||||
| uses authorized-ssh-key-config; | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| } | ||||||
|
|
||||||
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.
nit: check your whitespace + spaces vs. tabs - github UI doesn't help for this