-
Notifications
You must be signed in to change notification settings - Fork 21
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
Certificates in templates #32
Conversation
Hey @maraino I just started putting some docs together for this. |
sshutil/templates.go
Outdated
@@ -134,6 +136,18 @@ func (t TemplateData) SetUserData(v interface{}) { | |||
t.SetInsecure(UserKey, v) | |||
} | |||
|
|||
// SetCertificate sets a the given certificate in the template. This certificate |
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.
sets the given - remove a
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.
Fixed with b9132b1
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.
lgtm. left one comment.
Description
This PR adds fixed keys and methods to add certificates and certificate chains to the templates. If a provisioner adds those methods they will be accessible from the template like
{{ .AuthorizationCrt }}
or{{ .AuthorizationChain }}
.