Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IBM Cloud Functions - Storing sensitive data (environment variables) with Docker based actions

I am looking for a recommendation how to do this.

From the docs:

https://cloud.ibm.com/docs/openwhisk?topic=cloud-functions-creating-docker-actions#creating-and-invoking-a-docker-action

You can use actions to call images from public registries only, such as an image that is publicly available on Docker Hub. Private registries are not supported.

How to store database credentials, api keys etc... when the Docker image must be publicly available on Docker Hub?

like image 320
vlatkorun Avatar asked Mar 05 '26 12:03

vlatkorun


1 Answers

Use default parameters to store credentials on actions. These parameters are stored securely by the platform and merged with request parameters during invocations.

Default parameters can be set by the CLI using the -p parameter when creating or updating actions.

ibmcloud wsk action create my_action -p name value ...
like image 69
James Thomas Avatar answered Mar 08 '26 21:03

James Thomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!