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

Add ability to configure the NotBefore property of certificates in role api #5325

Merged
merged 6 commits into from
Oct 2, 2018

Conversation

vincent-boulin
Copy link
Contributor

@vincent-boulin vincent-boulin commented Sep 12, 2018

Correction of #4639

@vincent-boulin vincent-boulin changed the title Correction of #4639 : Add ability to configure the NotBefore property of certificates in ro… Add ability to configure the NotBefore property of certificates in role api Sep 12, 2018
@vincent-boulin
Copy link
Contributor Author

Close pull request, need to relaunch CI

@vishalnayak vishalnayak added this to the 0.11.2 milestone Sep 17, 2018
@@ -286,6 +286,11 @@ for "generate_lease".`,
Type: framework.TypeBool,
Description: `Mark Basic Constraints valid when issuing non-CA certificates.`,
},
"not_before": &framework.FieldSchema{
Type: framework.TypeInt,
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 switch this to TypeDuration which will require some other changes in storage. See max_ttl for an example of a TypeDuration field.

"not_before": &framework.FieldSchema{
Type: framework.TypeDurationSecond,
Default: 30,
Description: `The duration before now the cert need to be created / sign.`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/need/needs
s/sign/signed

@@ -104,6 +104,11 @@ export default DS.Model.extend({
basicConstraintsValidForNonCA: attr('boolean', {
label: 'Mark Basic Constraints valid when issuing non-CA certificates.',
}),
notBeforeDuration: attr({
label: 'Not Before Duration',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to have this line as it will "humanize" the attribute name, but fine to leave it in.

Copy link
Contributor

@meirish meirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS looks good - thanks!

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.

6 participants