A guide to using secrets securely in your ML models
config.yaml
config.yaml
with a placeholder value:
config.yaml
file. Only put secret values in secure places, like the Baseten workspace secret manager.model.py
Model
class as a keyword argument in init
. They can be accessed with:
self._secrets
dictionary in the load
and predict
functions:
--trusted
flag during truss push
as follows: