You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In various cases we end-up with yaml files that use custom tags that we cannot load but we still want to lint the files. The most common example are encryption tags used to secure credentials. Even if would be able to decode, doing so would create a security issue.
This feature is about implementing a way to whitelist tags in config like:
whitelist:
tags:
- encrypted/pkcs1-oaep
Current behaviour:
WARNING Failed to load tests/fixtures/config/secrets/git/org_project2/zuul-secret.yaml with Syntax Error while loading YAML.
could not determine a constructor for the tag '!encrypted/pkcs1-oaep'
The error appears to be in '/Users/ssbarnea/c/opendev/zuul/tests/fixtures/config/secrets/git/org_project2/zuul-secret.yaml': line 5, column 17, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
username: test-username
password: !encrypted/pkcs1-oaep |
^ here
, assuming is not a playbook.
This discussion was converted from issue #773 on December 26, 2020 17:08.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In various cases we end-up with yaml files that use custom tags that we cannot load but we still want to lint the files. The most common example are encryption tags used to secure credentials. Even if would be able to decode, doing so would create a security issue.
This feature is about implementing a way to whitelist tags in config like:
Current behaviour:
Beta Was this translation helpful? Give feedback.
All reactions