-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
implement a no_store option for pki roles, refs #2511 #2565
Conversation
It's not -- please add it! |
Key: "certs/" + cb.SerialNumber, | ||
Value: parsedBundle.CertificateBytes, | ||
}) | ||
if !*role.NoStore { |
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.
No need to dereference the role here.
builtin/logical/pki/path_roles.go
Outdated
@@ -504,6 +529,7 @@ type roleEntry struct { | |||
OU string `json:"ou" structs:"ou" mapstructure:"ou"` | |||
Organization string `json:"organization" structs:"organization" mapstructure:"organization"` | |||
GenerateLease *bool `json:"generate_lease,omitempty" structs:"generate_lease,omitempty"` | |||
NoStore *bool `json:"no_store,omitempty" structs:"no_store,omitempty"` |
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 doesn't need to be a *bool
, just bool
is fine, with associated updates elsewhere.
Need anything else from me on this? (Sorry, I'm new to this CR UI.) |
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.
Just one minor change requested. Otherwise it looks good.
Key: "certs/" + cb.SerialNumber, | ||
Value: parsedBundle.CertificateBytes, | ||
}) | ||
} | ||
if err != nil { |
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.
Can you move this error handling into the previous block?
LGTM, thanks! |
* oss/master: (43 commits) Bump deps Update SSH docs to indicate deprecation of dynamic key type Bump Go version in Travis changelog++ Bump go version to 1.8.1 Consider new bounds as a criteria to allow role creation (#2600) Update 404.html.md (#2594) Add some extra documentation around ssh-keygen -L to see signed cert info. changelog++ Respect the configured address's path in the client (#2588) changelog++ Verify that a CSR specifies IP SANs before checking whether it's allowed (#2574) minor docs update changelog++ Update AES-GCM verification text changelog++ implement a no_store option for pki roles (#2565) Remove superfluous/misleading comments around some listener options Update SSH CA documentation Add press-kit ...
This implements option 1 from #2511. The implementation (including the test) is mostly cargo-culted from the implementation of
generate_lease
. I didn't updatewebsite/source/api
because that looked like it might be autogenerated?Thanks for your time.