According to the Prefect documentation, Prefect Cloud authenticates users and service accounts with API keys. Both users and service accounts, which are non-human actors that interact with Prefect, use API keys for authentication purposes. It does not specifically mention any restrictions about multiple agent processes using the same API key.
However, it is important to consider best practices and the purpose of the API keys. Service accounts and their API keys are designed for non-human actors like workers and CI/CD systems. To maintain security and proper auditing, it is best to use different API keys for separate agent processes, especially if these processes will perform different tasks or operate in different environments.
No specific excerpt mentions the concurrent use of the same API key by separate agent processes. Therefore, to be cautious and to avoid potential conflicts or security issues, it is generally recommended to use separate API keys for different agents or processes.
For more details, you can refer to the
Prefect documentation on authentication.