adobe / adobe/aio-lib-runtime

Support .env vars in annotations

Open
#149 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
6
Forks
25
Avg merge
3d 10h
Merged PRs (30d)
2

Description

Per Whisk documentation (https://github.com/apache/openwhisk/blob/master/docs/annotations.md#annotations-specific-to-web-actions) and Adobe documentation (https://developer.adobe.com/runtime/docs/guides/using/securing_web_actions/) OpenWhisk has the ability to secure a web action behind a specified header value. When the header value is placed in the .env file the expectation is that the require-whisk-auth variable will be populated with the environment variable value however this is not happening

### Expected Behaviour
require-whisk-auth value is that of the specified .env variable

### Actual Behaviour
$auth_hash is not replaced with the actual value so the require-whisk-auth variable ends up having a value of '$auth_hash'
![image](https://github.com/adobe/aio-lib-runtime/assets/18175536/c89a860d-b780-4ae3-a388-a7cce8e0c227)

### Reproduce Scenario (including but not limited to)
Within a web action annotations add value
require-whisk-auth: $auth_hash

Within .env add auth_hash=my_value

#### Platform and Version
Latest

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.