-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-13266] allow underscore in gcs bucket
Summary: GCS allows underscore in bucket name while S3 and Azure storage don't. We validate buckets using [[ https://github.com/apache/commons-validator/blob/master/src/main/java/org/apache/commons/validator/UrlValidator.java | UrlValidator]]. The validation fails when there is a underscore in the gcs bucket since hostnames are not allowed to have underscores. To fix this we use custom regex for GCS bucket validation. The regex follows the rules for bucket name mentioned [[ https://cloud.google.com/storage/docs/buckets#naming | here ]] . Test Plan: Manually verified that we can create GCS backup config with underscore in the bucket. Added test cases to existing UT. Reviewers: #yba-api-review!, vpatibandla Reviewed By: vpatibandla Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D34901
- Loading branch information
1 parent
ea27a38
commit d0ce45c
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters