Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

One can secure their Functions via UI Settings -tab: the option Secure Web Function can be enabled. However, when re-deploying the function via doctl, the Secure Web Function (or any other) setting doesn’t persist.
The relating properties are available in the function metadata annotations which can be obtained via cmd doctl serverless functions get demo/test_auth for an already existing function:
{
"annotations": [
{
"key": "web-export",
"value": true
},
...,
{
"key": "raw-http",
"value": false
},
{
"key": "provide-api-key",
"value": false
},
{
"key": "require-whisk-auth",
"value": false
},
{
"key": "exec",
"value": "python:3.9"
}
],
...
How to configure the “Raw HTTP”, “Secure Web Function”, etc., settings in the project.yml, what are the correct field names? I’ve tried the snippet below as my project.yml, with no luck:
packages:
- name: demo
actions:
- name: test_auth
annotations:
require-whisk-auth: true
raw-http: true
runtime: 'python:default'
limits:
timeout: 12000
memory: 128
Thanks in advance!
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan