We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
else
The docs currently show this example for the else keyword:
# Service queries "authorize" and intreprets result ("allow" or "deny") authorize = "allow" { input.user = "superuser" } # Check if caller is from outside network. else = "deny" { input.path[0] = "admin" input.source_network = "external" } # Check if caller is from inside network. else = "allow" { input.path[0] = "admin" input.source_network = "internal" } # ... more rules
From this example, it's not obvious that else is applied to the rule above (i.e., authorize).
# Service queries "authorize" and intreprets result ("allow" or "deny") authorize = "allow" { input.user = "superuser" } else = "deny" { # Check if caller is from outside network. input.path[0] = "admin" input.source_network = "external" } else = "allow" { # Check if caller is from inside network. input.path[0] = "admin" input.source_network = "internal" } # ... more rules
We should replace the example with the second snippet above.
The text was updated successfully, but these errors were encountered:
Fixing documentation on "else" keyword
8a25538
- Fixes #475
No branches or pull requests
The docs currently show this example for the
else
keyword:From this example, it's not obvious that else is applied to the rule above (i.e., authorize).
We should replace the example with the second snippet above.
The text was updated successfully, but these errors were encountered: