Remove client sans #40

Merged
merged 3 commits into from Jul 7, 2016

Conversation

Projects
None yet
2 participants
Contributor

mbruzek commented Jul 7, 2016

A user of the tls layer had questions about how it was generated. I saw that we are adding Subject Alternate Names to the client certificate when that does not need to be the case.

This PR re-works the client cert/key generation to not include SANs from the leader.

mbruzek added some commits May 23, 2016

Contributor

mbruzek commented Jul 7, 2016

Fixes #39

Contributor

mbruzek commented Jul 7, 2016

I built the tls layer into the etcd charm and looked at the client certificate, it no longer has the SANs of the leader. http://paste.ubuntu.com/18705474/

- create_certificates()
+ hookenv.log('Leader is creating the server certificate.')
+ # Remove the path characters from the unit name tls/0 -> tls_0.
+ path_safe_name = hookenv.local_unit().replace('/', '_')
@chuckbutler

chuckbutler Jul 7, 2016

Contributor

Didn't we make a helper for this scrub?

Contributor

chuckbutler commented Jul 7, 2016

+1 LGTM. one question left inline, but it shouldn't hold anything up

@chuckbutler chuckbutler merged commit ae9692c into master Jul 7, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment