Matheus Moreno

03/15/2022, 2:37 PM
Hey, everyone! I think I stumbled upon a bug involving Secrets and fast registration. Basically, I have this workflow that consists of two tasks,
. The second task connects to Google Cloud Storage and MLflow to log artifacts and model to the servers, and to do so it needs passwords and service account files, and I pass them as Secrets to the task (passwords as environment variables, and service accounts as files). When I build the image and serialize the tasks, everything works perfectly (see Image 1). But then, if I use fast registration, suddenly the task does not have access to Secrets passed as environment variables (see Image 2). Keep in mind, the only changes I made to the task was to add a
to debug my current environment variables and the
directory. When I print the contents of
, I see that the service account was correctly mounted as a file, because I specified that
on the Secret definition. All the other secrets, that were specified as
, are unavailable. When I print
, I can't find a single variable that starts with
. I think that fast registration is breaking the process of setting the secret environment variables. I'd help to fix this problem, but I have no idea where to start on the repository (where fast registration occurs, when the task is initialized, etc.).