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 regex validation for signer #336

Conversation

qiujian16
Copy link
Member

@qiujian16 qiujian16 commented Jun 12, 2024

Summary

Related issue(s)

Fixes open-cluster-management-io/ocm#382

@openshift-ci openshift-ci bot requested review from deads2k and mdelder June 12, 2024 03:49
Copy link
Contributor

openshift-ci bot commented Jun 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@qiujian16
Copy link
Member Author

/hold
will add integration test.

/assign @zhujian7

@qiujian16
Copy link
Member Author

/unhold

Signed-off-by: Jian Qiu <jqiu@redhat.com>
@@ -314,6 +314,7 @@ spec:
will use to create csr.
maxLength: 571
minLength: 5
pattern: ^([a-z0-9][a-z0-9-]+\.)+[a-z]+\/[a-z0-9-\.]+$
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pattern: ^([a-z0-9][a-z0-9-]+\.)+[a-z]+\/[a-z0-9-\.]+$
pattern: ^([a-z0-9][a-z0-9-]*\.)+[a-z]+\/[a-z0-9-\.]+$

Signed-off-by: Jian Qiu <jqiu@redhat.com>
@zhujian7
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 13, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 60a6d04 into open-cluster-management-io:main Jun 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should validate the registration.customSigner.signerName in the addontemplate
2 participants