Custom middleware read config from K8s Secret file

Hi I have a question can the custom plugin (run with Yaegi) read config from Kubernetes Secret resource? And how to do it. Thank you