AnthonyAmanse opened a new issue #1045: require-whisk-auth in actions/sequences not working URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/1045 * Specifying `require-whisk-auth` in actions isn't working as mentioned in the [docs]( https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/specification/html/spec_actions.md#fields) ```yaml <actionName>[.<type>]: <Entity schema> version: <version> function: <string> code: <string> runtime: <name>[@<[range of ]version>] inputs: <list of parameter> outputs: <list of parameter> limits: <list of limit key-values> feed: <boolean> # default: false web | web-export: <boolean> | yes | no | raw raw-http: <boolean> docker: <string> native: <boolean> final: <boolean> web-custom-options: <boolean> require-whisk-auth: <boolean> main: <string> ``` * It works when using it in the `annotations` key (suggested here: #712) Example: ```yaml --- packages: test-package: actions: hello-action: function: test.js runtime: nodejs:10 web: true annotations: require-whisk-auth: true ``` * Using `true` does not create a random number like what the wsk cli does `wsk action create ... --web true --web-secure true` ```json wsk action get test-package/hello-action ok: got action test-package/hello-action { "namespace": "<redacted>/test-package", "name": "hello-action", "version": "0.0.1", "exec": { "kind": "nodejs:10", "binary": false }, "annotations": [ { "key": "web-export", "value": true }, { "key": "raw-http", "value": false }, { "key": "final", "value": true }, { "key": "require-whisk-auth", "value": true }, { "key": "exec", "value": "nodejs:10" } ], "limits": { "timeout": 60000, "memory": 256, "logs": 10, "concurrency": 1 }, "publish": false } ``` Invoking the function via the web api throws an error ```json curl -H 'x-require-whisk-auth: true' https://us-south.functions.cloud.ibm.com/api/v1/web/<redacted>/test-package/hello-action.json { "code": "7787529ef89a1675a9ed2b9c4cde563a", "error": "Authentication is possible but has failed or not yet been provided." } ```
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
