I am using Nuclio functions and I need to provide credentials in the function for things like accessing database etc. Is there a way to store these credentials securely (not plain text) ?
1
There are 1 best solutions below
Related Questions in MLOPS
- Extract current running stage from dvc
- How can I download data from just one of the DVC repositories?
- connection issues when MLFLow is hosted on remote server
- feast.errors.FeatureViewNotFoundException: Feature view driver_stats does not exist
- I have a prolem with feast[redis]
- how can save model by tensorflowlite
- Why MLFlow raising HTTP/2 stream 5 was not closed cleanly before end of the underlying stream?
- Model serving - tools and components
- Unable to properly register model and create Sagemaker Endpoint using Sagemaker Pipelines
- Can MLFlow be used without the `with mlflow.start_run()` block?
- Databricks DBX and Asset Bundles: Support for Storing config files in Container/Storage Account
- Manual Scaling of Nodes on a deployed Vertex AI endpoint
- How to deploy multiple instances PyTorch model API for inference on a single GPU?
- how to import ml model (python) into another programming language
- sagemaker batch transformer with my own pre-trained model
Related Questions in NUCLIO
- Scaling Nuclio With KEDA Based on Queue Length: Error ScaledObject Name is Not Specified
- Integrating nuclio with GCP
- Why is the event offset always 0 for my kafka triggered nuclio function
- How will a nuclio based kafka triggered service behave when it receives a serialized message
- issue with igztop, show mlrun/nuclio function for k8s pods
- MLRun deploy, 0/3 nodes are available: 3 Insufficient cpu
- Pull nuclio metrics into prometheus-operator
- k8s/MLRun, issue with scale to zero
- MLRun, Issue with slow response times
- MLRun, Issue with memory request setup (1B) for nuclio function
- Function cannot be deleted as it is being provisioned
- Facing Error while deploy the serving function in mlrun
- function serving deployment failed
- Nuclio Streaming Contents Support? (Docker setup - Python)
- How do I use secrets in Iguazio?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use Kubernetes secret in an Nuclio function. There are several steps to set this up.
create a Kubernetes secret, simple example using kubectl like this:
kubectl create secret generic db-user-pass --from-literal=username=devuser --from-literal=password='<A-Password-Here>'Then create an Nuclio function with set_env_from_secret like this:
fn = mlrun.code_to_function("nuclio-with-secret", kind='nuclio', image='mlrun/mlrun', handler="handler") fn.set_env_from_secret("a-secret-name", "db-user-pass", "password") fn.apply(mlrun.auto_mount()) fn.deploy()In your Nuclio function, you can use the secret like this:
the_secret_inside_nuclio_to_use = os.getenv('a-secret-name')