Skip to content
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

Merged
merged 3 commits into from
Apr 7, 2017

Conversation

slingamn
Copy link
Contributor

@slingamn slingamn commented Apr 4, 2017

This implements option 1 from #2511. The implementation (including the test) is mostly cargo-culted from the implementation of generate_lease. I didn't update website/source/api because that looked like it might be autogenerated?

Thanks for your time.

@jefferai
Copy link
Member

jefferai commented Apr 4, 2017

I didn't update website/source/api because that looked like it might be autogenerated?

It's not -- please add it!

Key: "certs/" + cb.SerialNumber,
Value: parsedBundle.CertificateBytes,
})
if !*role.NoStore {
Copy link
Member

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.

@@ -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"`
Copy link
Member

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.

@jefferai jefferai added this to the 0.7.1 milestone Apr 4, 2017
@slingamn
Copy link
Contributor Author

slingamn commented Apr 5, 2017

Need anything else from me on this? (Sorry, I'm new to this CR UI.)

Copy link
Contributor

@chrishoffman chrishoffman left a 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 {
Copy link
Contributor

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?

@jefferai
Copy link
Member

jefferai commented Apr 7, 2017

LGTM, thanks!

@jefferai jefferai merged commit 7cbc5d6 into hashicorp:master Apr 7, 2017
chrishoffman pushed a commit that referenced this pull request Apr 17, 2017
* 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
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants