Skip to content

Guarantee that SerialFileGenerator starts at 2 - #18713

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
enj:enj/i/serial_file_start
Feb 24, 2018
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
enj:enj/i/serial_file_start

Conversation

@enj

@enj enj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor

This changes makes it so that SerialFileGenerator never returns a value less than 2 for a call to Next. This guarantees that certificates generated using it do not have a serial number that conflicts with the CA's serial number of 1. This behavior was lost in 266aa46.

Signed-off-by: Monis Khan [email protected]

/kind bug
/assign @liggitt

Supersedes #18710

@openshift/sig-security

This changes makes it so that SerialFileGenerator never returns a
value less than 2 for a call to Next.  This guarantees that
certificates generated using it do not have a serial number that
conflicts with the CA's serial number of 1.  This behavior was lost
in 266aa46.

Signed-off-by: Monis Khan <[email protected]>
@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. sig/security labels Feb 22, 2018
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 22, 2018
@enj

enj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@simo5

simo5 commented Feb 22, 2018

Copy link
Copy Markdown

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 22, 2018
@mrogers950

Copy link
Copy Markdown

/lgtm

@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enj, mrogers950, simo5

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@enj

enj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@enj

enj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@enj

enj commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

/retest

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

4 similar comments
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@richm

richm commented Feb 23, 2018

Copy link
Copy Markdown

/retest

@richm

richm commented Feb 23, 2018

Copy link
Copy Markdown

gcp test failure:

failed: [35.227.68.241] (item=PyYAML) => {"attempts": 2, "changed": false, "item": "PyYAML", "msg": "Failure talking to yum: File /var/cache/yum/x86_64/7Server/epel/metalink.xml does not exist"}

@smarterclayton

Copy link
Copy Markdown
Contributor

If the batch fails I'll direct merge

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

Automatic merge from submit-queue.

@nmav

nmav commented Mar 2, 2018

Copy link
Copy Markdown

+1, a serial number of zero is illegal. According to rfc5280:
"CAs MUST force the serialNumber to be a non-negative integer."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. queue/critical-fix sig/security size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants