Skip to content

Support .env vars in annotations #149

Open
@arobsco

Description

@arobsco

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions