Repository navigation
fix: Vault URL validation scheme broken with placeholder - #9714
Conversation
Signed-off-by: Kump3r <[email protected]>
taylorsilva
left a comment
There was a problem hiding this comment.
I think this is good enough. It means someone could pass in a bad URL, but this really is just a "best-effort" check we're doing here.
|
Yeah, I agree. Again the problem with validations when there are placeholders arises. I can try to think of something, but as the variables are resolved later during runtime, we either need to accept this risk and not break it, or force operators to placeholder only the interchangeable part of the URL, without the prefix. I guess if we opt for that we would need to note it down explicitly. Edit: I would assume the Vault library will panick further down the line and raise an Exception as well, it would have been just nicer to handle it before creating the pipeline, but afaik the vars will be interpolated later during a build. Edit-2: Yup, with invalid URL in placeholder users will see: |
Changes proposed by this PR
closes #9706
Tested on local Concourse with example pipeline: