-
Notifications
You must be signed in to change notification settings - Fork 74
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
[Cloud Security] Add support for required conditional groups of variables #855
Conversation
e890688
to
347202b
Compare
@@ -515,6 +515,8 @@ spec: | |||
description: Can input be defined multiple times | |||
type: boolean | |||
default: false | |||
required_vars: |
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.
Should this be added also into input
packages ? @jsoriano @seanrathier
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.
We could add there later if needed. @seanrathier do you need this for your current use case?
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.
No, I only need it in stream/inputs
💚 Build Succeeded
History
|
Add semantic validation and some additional tests for required variable groups added in #855.
What does this PR do?
Add support for conditionally required groups of variables.
Why is it important?
In some cases, policy templates like CloudFlare and CSPM will have mutually exclusive input variables that are required.
For example, access_key and secret_key or the session_token is required
Checklist
test/packages
that prove my change is effective.spec/changelog.yml
.Related issues