Hey guys is possible to hide the "RUN CONFIG" tab ...
# prefect-community
f
Hey guys is possible to hide the "RUN CONFIG" tab from Prefect Server? Because today everyone can see the secrets.
a
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
I'm using like this:
Copy code
flow.run_config = ECSRun(env=env, image=env.get("DOCKER_IMAGE"))
But with LocalRun i can pass the image as well?
I will try:
Copy code
flow.run_config = LocalRun(env=env)
Let's see.
a
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
Indeed using LocalRun i get this error:
Copy code
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
that's correct, it seems like adding those environment variables on your agent is the right way of approaching this