-
Notifications
You must be signed in to change notification settings - Fork 5
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
Resend Password Utility #1169
Resend Password Utility #1169
Conversation
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 file can be ignored for your review. This is just the resend password utility that I wrote to get the PKCS12 password back to Nikolay.
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 file can also be ignored, it is generated using go generate
from the html and txt email template files.
@@ -47,27 +47,32 @@ type VerifyContactData struct { | |||
// VerifyContactURL composes the link to verify the contact from the context. If the | |||
// link is not able to be composed, the function returns an empty string and logs an | |||
// error because without the link the email is fairly useless. | |||
func (d VerifyContactData) VerifyContactURL() string { | |||
func (d VerifyContactData) VerifyContactURL() *url.URL { |
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.
Changing this to a URL will fix future problems with URLs and ensure proper encoding … we should use url.URL
in all of our templates instead of string
.
func (d VerifyContactData) VerifyContactURLUnencoded() template.HTML { | ||
url := d.VerifyContactURL() | ||
return template.HTML(url.String()) |
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 is the equivalent of safeHTML
in hugo -- it keeps the & as & instead of & -- I'm using it only for text not for a href
based on my reading of the HTML5 spec.
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.
Nice work on receiving a user's feedback and quickly making changes to the email copy! I'm also sure the resend password utility will continue to be helpful.
Scope of changes
Adds a
reissuer
helper command to resend the PKCS12 password of the last certificate request (if the user lost it or it expired and so long as the password is still in Google Secret manager).Also fixes the wording of the email to be less confusing and the & bug referred to us by Bitonic.
Fixes SC-24910 and SC-25491
Type of change
Acceptance criteria
Please pay special attention to wording and HTML in the email templates.
Author checklist
Reviewer(s) checklist