https://prefect.io logo
Title
f

FuETL

03/30/2022, 5:01 PM
Hey guys is possible to hide the "RUN CONFIG" tab from Prefect Server? Because today everyone can see the secrets.
a

Anna Geller

03/30/2022, 5:11 PM
You should not set any secrets on the
run_config
. Why do you have Secrets there? Do you know you can use local secrets with Prefect Server?
f

FuETL

03/30/2022, 5:46 PM
I'm using like this:
flow.run_config = ECSRun(env=env, image=env.get("DOCKER_IMAGE"))
But with LocalRun i can pass the image as well?
I will try:
flow.run_config = LocalRun(env=env)
Let's see.
a

Anna Geller

03/30/2022, 6:13 PM
I don't understand. Do you want to use ECSRun or LocalRun? Those are related to two completely different agents. And the image name is not really sensitive information, you can totally share it publicly. Only the AWS ACCOUNT_ID is what some people consider private, but this is debatable 🙂
f

FuETL

03/30/2022, 6:29 PM
Indeed using LocalRun i get this error:
has a `run_config` of type `LocalRun`, only `ECSRun` is supported
Basically i want to pass the environments variables but i don't want them to show up in "RUN CONFIG" tab.
But yeah i want to use ECSRun, maybe should i load this variable on agent right?
a

Anna Geller

03/30/2022, 6:36 PM
that's correct, it seems like adding those environment variables on your agent is the right way of approaching this