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

Use a less strict URL validation for PKI issuing and crl distribution urls #26477

Merged
merged 8 commits into from
Apr 18, 2024

Conversation

sgmiller
Copy link
Collaborator

@sgmiller sgmiller commented Apr 17, 2024

The library we were using is quite strict about what is and is not a URL, in
order to catch errors. But its strictness prevents unanticipated uses
schems unknown to it, for example, ldap:

Use Go's URL parser instead.

@sgmiller sgmiller requested a review from a team as a code owner April 17, 2024 20:21
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Apr 17, 2024
Copy link

github-actions bot commented Apr 17, 2024

CI Results:
All required Go tests succeeded but failures were detected ⚠️
Failures:

Test Type Package Test Logs
race plugins/database/cassandra TestInitialize view test results
race plugins/database/cassandra TestInitialize/integer_protocol_version view test results
race plugins/database/cassandra TestInitialize/string_protocol_version view test results

Copy link

github-actions bot commented Apr 17, 2024

Build Results:
All builds succeeded! ✅

@sgmiller sgmiller enabled auto-merge (squash) April 18, 2024 16:10
@sgmiller sgmiller merged commit fd9e113 into main Apr 18, 2024
81 of 83 checks passed
@sgmiller sgmiller deleted the sgm/looser-url-parsing branch April 18, 2024 17:35
sgmiller added a commit that referenced this pull request Apr 18, 2024
… urls (#26477)

* Use a less strict URL validation for PKI issuing and crl distribution urls

* comma handling

* limit to ldap

* remove comma hack

* changelog

* Add unit test validating ldap CRL urls

---------

Co-authored-by: Steve Clark <[email protected]>
sgmiller added a commit that referenced this pull request Apr 18, 2024
… urls (#26477)

* Use a less strict URL validation for PKI issuing and crl distribution urls

* comma handling

* limit to ldap

* remove comma hack

* changelog

* Add unit test validating ldap CRL urls

---------

Co-authored-by: Steve Clark <[email protected]>
sgmiller added a commit that referenced this pull request Apr 18, 2024
… urls (#26477) (#26516)

* Use a less strict URL validation for PKI issuing and crl distribution urls

* comma handling

* limit to ldap

* remove comma hack

* changelog

* Add unit test validating ldap CRL urls

---------

Co-authored-by: Steve Clark <[email protected]>
sgmiller added a commit that referenced this pull request Apr 18, 2024
… urls (#26477) (#26514)

* Use a less strict URL validation for PKI issuing and crl distribution urls

* comma handling

* limit to ldap

* remove comma hack

* changelog

* Add unit test validating ldap CRL urls

---------

Co-authored-by: Steve Clark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants