Hi all. I'm trying to set up a Prefect docker agent as a systemd service (CentOS).
What is the recommended practice for storing the prefect API Key and passing it on to the systemd service?
a
Anna Geller
01/04/2022, 9:43 AM
You can pass it as environment variable if you prefer it, but in general your first line of defence would be ensuring that the instance itself is protected (hosted in your trusted network, certificate key protection etc). You can check more ideas here
that’s true, if some attacker gets into your server, then whether the key is stored in env variable or in a service description such as supervisord or systemd, it doesn’t make much of a difference
You could use e.g. Kubernetes agent instead, if you want to have more control over it - this way, you could use Kubernetes secrets
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.