Get secret in jupyterlab

I try to get a value from the secrets.yaml in my config folder inside a jupyter notebook

in secrets.yaml:

key: "value"

How can I read out the value for the stored key?

import detective.core as detective
detective.config.load_yaml("/config/secrets.yaml")