-
Notifications
You must be signed in to change notification settings - Fork 657
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
fix: GCS endpoint validation to allow ports #1985
fix: GCS endpoint validation to allow ports #1985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you add a port number? for perfectly simple URL like
storage.googleapis.com
?
In the case of a URL with added port number, the validation check fails even though the endpoint is |
yes but why add the port, |
You are saying by default http and https requests are handled through 80 and 443 so why do we have to mention it explicitly that is what you are asking right? |
I added review comments, we can take it in with the requested changes. |
@harshavardhana I made the changes. |
Please run gofumpt and goimports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Test is failing:
|
@klauspost found the issue in test18 it has been written that the GCP endpoint with a port number should fail, since we made that change it is not failing. |
606d97c
to
1175374
Compare
FWIW I fixed it locally, waiting for the build will be merged. |
) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/minio/minio-go/v7](https://togithub.com/minio/minio-go) | `v7.0.73` -> `v7.0.74` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fminio%2fminio-go%2fv7/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fminio%2fminio-go%2fv7/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fminio%2fminio-go%2fv7/v7.0.73/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fminio%2fminio-go%2fv7/v7.0.73/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>minio/minio-go (github.com/minio/minio-go/v7)</summary> ### [`v7.0.74`](https://togithub.com/minio/minio-go/releases/tag/v7.0.74): Bugfix Release [Compare Source](https://togithub.com/minio/minio-go/compare/v7.0.73...v7.0.74) #### What's Changed - return appropriate error type for generic handling by [@​harshavardhana](https://togithub.com/harshavardhana) in [https://github.com/minio/minio-go/pull/1981](https://togithub.com/minio/minio-go/pull/1981) - feat: add SetContentDisposition method for postPolicy Upload by [@​lianggx6](https://togithub.com/lianggx6) in [https://github.com/minio/minio-go/pull/1982](https://togithub.com/minio/minio-go/pull/1982) - docs: fix doc about default alias by [@​emil2k](https://togithub.com/emil2k) in [https://github.com/minio/minio-go/pull/1984](https://togithub.com/minio/minio-go/pull/1984) - fix: GCS endpoint validation to allow ports by [@​ammarhusain-sol](https://togithub.com/ammarhusain-sol) in [https://github.com/minio/minio-go/pull/1985](https://togithub.com/minio/minio-go/pull/1985) #### New Contributors - [@​lianggx6](https://togithub.com/lianggx6) made their first contribution in [https://github.com/minio/minio-go/pull/1982](https://togithub.com/minio/minio-go/pull/1982) - [@​emil2k](https://togithub.com/emil2k) made their first contribution in [https://github.com/minio/minio-go/pull/1984](https://togithub.com/minio/minio-go/pull/1984) - [@​ammarhusain-sol](https://togithub.com/ammarhusain-sol) made their first contribution in [https://github.com/minio/minio-go/pull/1985](https://togithub.com/minio/minio-go/pull/1985) **Full Changelog**: minio/minio-go@v7.0.73...v7.0.74 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/canonical/lxd). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go | `v1.34.2-20240508200655-46a4cf4ba109.2` -> `v1.34.2-20240717164558-a6c49f84cc0f.2` | [![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fbufbuild%2fprotovalidate%2fprotocolbuffers%2fgo/v1.34.2-20240717164558-a6c49f84cc0f.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fbufbuild%2fprotovalidate%2fprotocolbuffers%2fgo/v1.34.2-20240717164558-a6c49f84cc0f.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fbufbuild%2fprotovalidate%2fprotocolbuffers%2fgo/v1.34.2-20240508200655-46a4cf4ba109.2/v1.34.2-20240717164558-a6c49f84cc0f.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fbufbuild%2fprotovalidate%2fprotocolbuffers%2fgo/v1.34.2-20240508200655-46a4cf4ba109.2/v1.34.2-20240717164558-a6c49f84cc0f.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | patch | | [github.com/aws/aws-sdk-go](https://togithub.com/aws/aws-sdk-go) | `v1.54.19` -> `v1.54.20` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2faws%2faws-sdk-go/v1.54.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2faws%2faws-sdk-go/v1.54.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2faws%2faws-sdk-go/v1.54.19/v1.54.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2faws%2faws-sdk-go/v1.54.19/v1.54.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | patch | | [github.com/aws/aws-sdk-go-v2/config](https://togithub.com/aws/aws-sdk-go-v2) | `v1.27.7` -> `v1.27.27` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2faws%2faws-sdk-go-v2%2fconfig/v1.27.27?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2faws%2faws-sdk-go-v2%2fconfig/v1.27.27?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2faws%2faws-sdk-go-v2%2fconfig/v1.27.7/v1.27.27?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2faws%2faws-sdk-go-v2%2fconfig/v1.27.7/v1.27.27?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | patch | | [github.com/goccy/go-yaml](https://togithub.com/goccy/go-yaml) | `v1.11.3` -> `v1.12.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoccy%2fgo-yaml/v1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoccy%2fgo-yaml/v1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoccy%2fgo-yaml/v1.11.3/v1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoccy%2fgo-yaml/v1.11.3/v1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | minor | | [github.com/minio/minio-go/v7](https://togithub.com/minio/minio-go) | `v7.0.73` -> `v7.0.74` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fminio%2fminio-go%2fv7/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fminio%2fminio-go%2fv7/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fminio%2fminio-go%2fv7/v7.0.73/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fminio%2fminio-go%2fv7/v7.0.73/v7.0.74?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | patch | | golang.org/x/exp | `46b0784` -> `8a7402a` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fexp/v0.0.0-20240719175910-8a7402abbf56?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fexp/v0.0.0-20240719175910-8a7402abbf56?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fexp/v0.0.0-20240707233637-46b078467d37/v0.0.0-20240719175910-8a7402abbf56?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fexp/v0.0.0-20240707233637-46b078467d37/v0.0.0-20240719175910-8a7402abbf56?slim=true)](https://docs.renovatebot.com/merge-confidence/) | require | digest | --- ### Release Notes <details> <summary>aws/aws-sdk-go (github.com/aws/aws-sdk-go)</summary> ### [`v1.54.20`](https://togithub.com/aws/aws-sdk-go/blob/HEAD/CHANGELOG.md#Release-v15420-2024-07-18) [Compare Source](https://togithub.com/aws/aws-sdk-go/compare/v1.54.19...v1.54.20) \=== ##### Service Client Updates - `service/acm-pca`: Updates service waiters - `service/connect`: Updates service API, documentation, and paginators - `service/ec2`: Updates service API and documentation - Amazon VPC IP Address Manager (IPAM) now supports Bring-Your-Own-IP (BYOIP) for IP addresses registered with any Internet Registry. This feature uses DNS TXT records to validate ownership of a public IP address range. - `service/firehose`: Updates service API and documentation - This release 1) Add configurable buffering hints for Snowflake as destination. 2) Add ReadFromTimestamp for MSK As Source. Firehose will start reading data from MSK Cluster using offset associated with this timestamp. 3) Gated public beta release to add Apache Iceberg tables as destination. - `service/ivschat`: Updates service API, documentation, and waiters - `service/medialive`: Updates service API and documentation - AWS Elemental MediaLive now supports the SRT protocol via the new SRT Caller input type. - `service/rds`: Updates service API, documentation, waiters, paginators, and examples - Updates Amazon RDS documentation to specify an eventual consistency model for DescribePendingMaintenanceActions. - `service/sagemaker`: Updates service API - SageMaker Training supports R5, T3 and R5D instances family. And SageMaker Processing supports G5 and R5D instances family. - `service/secretsmanager`: Updates service documentation - Doc only update for Secrets Manager - `service/taxsettings`: Updates service API - `service/timestream-query`: Updates service API and documentation - `service/workspaces-thin-client`: Updates service API and documentation </details> <details> <summary>goccy/go-yaml (github.com/goccy/go-yaml)</summary> ### [`v1.12.0`](https://togithub.com/goccy/go-yaml/releases/tag/v1.12.0): 1.12.0 [Compare Source](https://togithub.com/goccy/go-yaml/compare/v1.11.3...v1.12.0) #### What's Changed - Replace deprecated `io/ioutil` by [@​harryzcy](https://togithub.com/harryzcy) in [https://github.com/goccy/go-yaml/pull/429](https://togithub.com/goccy/go-yaml/pull/429) - support custom unmarshalling for map keys by [@​KSpaceer](https://togithub.com/KSpaceer) in [https://github.com/goccy/go-yaml/pull/453](https://togithub.com/goccy/go-yaml/pull/453) - trim right spaces before adding carriage return or linefeed by [@​mfleader](https://togithub.com/mfleader) in [https://github.com/goccy/go-yaml/pull/462](https://togithub.com/goccy/go-yaml/pull/462) - fix: Correct token.Tokenize double quoted strings with escape sequences handling by [@​nieomylnieja](https://togithub.com/nieomylnieja) in [https://github.com/goccy/go-yaml/pull/457](https://togithub.com/goccy/go-yaml/pull/457) - Fix decoding of scientific notation by [@​morris-kelly](https://togithub.com/morris-kelly) in [https://github.com/goccy/go-yaml/pull/463](https://togithub.com/goccy/go-yaml/pull/463) - Quote is required even if it begins with backquote. by [@​k1LoW](https://togithub.com/k1LoW) in [https://github.com/goccy/go-yaml/pull/440](https://togithub.com/goccy/go-yaml/pull/440) #### New Contributors - [@​harryzcy](https://togithub.com/harryzcy) made their first contribution in [https://github.com/goccy/go-yaml/pull/429](https://togithub.com/goccy/go-yaml/pull/429) - [@​KSpaceer](https://togithub.com/KSpaceer) made their first contribution in [https://github.com/goccy/go-yaml/pull/453](https://togithub.com/goccy/go-yaml/pull/453) - [@​mfleader](https://togithub.com/mfleader) made their first contribution in [https://github.com/goccy/go-yaml/pull/462](https://togithub.com/goccy/go-yaml/pull/462) - [@​nieomylnieja](https://togithub.com/nieomylnieja) made their first contribution in [https://github.com/goccy/go-yaml/pull/457](https://togithub.com/goccy/go-yaml/pull/457) - [@​morris-kelly](https://togithub.com/morris-kelly) made their first contribution in [https://github.com/goccy/go-yaml/pull/463](https://togithub.com/goccy/go-yaml/pull/463) **Full Changelog**: goccy/go-yaml@v1.11.3...v1.11.4 </details> <details> <summary>minio/minio-go (github.com/minio/minio-go/v7)</summary> ### [`v7.0.74`](https://togithub.com/minio/minio-go/releases/tag/v7.0.74): Bugfix Release [Compare Source](https://togithub.com/minio/minio-go/compare/v7.0.73...v7.0.74) #### What's Changed - return appropriate error type for generic handling by [@​harshavardhana](https://togithub.com/harshavardhana) in [https://github.com/minio/minio-go/pull/1981](https://togithub.com/minio/minio-go/pull/1981) - feat: add SetContentDisposition method for postPolicy Upload by [@​lianggx6](https://togithub.com/lianggx6) in [https://github.com/minio/minio-go/pull/1982](https://togithub.com/minio/minio-go/pull/1982) - docs: fix doc about default alias by [@​emil2k](https://togithub.com/emil2k) in [https://github.com/minio/minio-go/pull/1984](https://togithub.com/minio/minio-go/pull/1984) - fix: GCS endpoint validation to allow ports by [@​ammarhusain-sol](https://togithub.com/ammarhusain-sol) in [https://github.com/minio/minio-go/pull/1985](https://togithub.com/minio/minio-go/pull/1985) #### New Contributors - [@​lianggx6](https://togithub.com/lianggx6) made their first contribution in [https://github.com/minio/minio-go/pull/1982](https://togithub.com/minio/minio-go/pull/1982) - [@​emil2k](https://togithub.com/emil2k) made their first contribution in [https://github.com/minio/minio-go/pull/1984](https://togithub.com/minio/minio-go/pull/1984) - [@​ammarhusain-sol](https://togithub.com/ammarhusain-sol) made their first contribution in [https://github.com/minio/minio-go/pull/1985](https://togithub.com/minio/minio-go/pull/1985) **Full Changelog**: minio/minio-go@v7.0.73...v7.0.74 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cerbos/cerbos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhcmVhL2RlcGVuZGVuY2llcyIsImJvdHMiLCJraW5kL2Nob3JlIl19--> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Charith Ellawala <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Charith Ellawala <[email protected]>
fix: Fixed the endpoint validation issue for GCS if port number is added to the URL