-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add environment variable name/value length validation in UI #8046
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 environment variable name/value length validation in UI #8046
Conversation
Also, decrease maxlen for value from ~64k*3/4 to a nice round 32k.
@AmirHosseinKarimi: changing LGTM is restricted to collaborators In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AmirHosseinKarimi Associated issue: #8045 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/werft run 👍 started the job as gitpod-build-add-env-var-length-validation-issue-8045-fork.0 |
Unfortunately, the deployment of a preview environment is failing because the name of the branch is too long. (k8s namespace is derived from the branch name.) On the other hand, it's sufficient to check for a build in a workspace. (✅ ) |
@meysholdt, we need you help with a CLA, please! 🙏🏻 |
hi @randomir! Great to see a PR from you :-D I've reached out to you via email about the CLA. |
/werft run 👍 started the job as gitpod-build-add-env-var-length-validation-issue-8045-fork.1 |
Well, thank you for nothing, Werft 😅 CI job failed with:
I guess we'll need to move this commit to a branch with a shorter name. Let's do that after the CLA question is resolved. |
Thanks @jankeromnes. I've tried renaming the branch on GH, but that just closed the PR. I've opened a new PR from a shorter branch name in #8248. I'm fine with that one lingering until the CLA is signed. |
Aha, that's perfect, many thanks @randomir! 🙏 Then I suggest we move over to the new Pull Request. 🚚 |
Also, decrease maxlen for value from ~64k*3/4 to a nice round 32k.
Description
On variable save, we now validate:
and inform the user of the error, instead of silently failing.
The 32k limit might be worth some discussion. The db limit is mysql's
TEXT
max of 64k, but that's after encryption and base64 encoding, resulting with a real current limit of about ~48k. I chose 32k because it looks nicer 😆.Related Issue(s)
Fixes #8045
How to test
Release Notes
Documentation
No update.