Skip to content

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

Merged
sgmiller merged 8 commits intomainfrom
sgm/looser-url-parsing
Apr 18, 2024
Merged

Use a less strict URL validation for PKI issuing and crl distribution urls#26477
sgmiller merged 8 commits intomainfrom
sgm/looser-url-parsing

Conversation

@sgmiller
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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

@github-actions
Copy link
Copy Markdown

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
@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 <steven.clark@hashicorp.com>
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 <steven.clark@hashicorp.com>
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 <steven.clark@hashicorp.com>
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 <steven.clark@hashicorp.com>
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.

2 participants