Skip to content
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

knative - protected parameters - protecting action parameters with final annotation #218

Open
pritidesai opened this issue Mar 18, 2019 · 0 comments

Comments

@pritidesai
Copy link
Member

OpenWhisk web actions has the ability to protect action parameters against accidental or intentional mutation in query or body parameters. Using the final annotation on an action seals all action parameters with predefined values and makes those parameters immutable. For example, to seal the name parameter:

$ wsk action update /guest/demo/hello \
      --param name Jane \
      --annotation final true \
      --annotation web-export true

The result of these changes is that name is bound to Jane and may not be overridden by query or body parameters because of the final annotation. Any attempt to override a final parameter will result in a 400 Bad Request response.

Add this capability in knative web actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant