You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/03/18 20:54:12 UTC

[GitHub] [incubator-openwhisk-devtools] pritidesai opened a new issue #218: knative - protected parameters - protecting action parameters with final annotation

pritidesai opened a new issue #218: knative - protected parameters - protecting action parameters with final annotation
URL: https://github.com/apache/incubator-openwhisk-devtools/issues/218
 
 
   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.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services