Add authentication for all ponos endpoints
Refs https://redmine.teklia.com/issues/4333
These endpoints need a standard user authentication (used from frontend):
- UpdateTask
- ListAgents
- RetrieveAgent
- ListFarms
These endpoinst need a ponos agent only authentication:
- RefreshAgentToken
- RetrieveAgentActions
- RetrieveTaskDefinition
- CreateArtifact
- RetrieveTaskFromAgent
- UpdateTaskFromAgent
This endpoint must be openly available to anyone:
- CreateAgent
- GetPublicKey
These endpoints need a ponos task only authentication:
- CreateTask
- PartialUpdateTask
- RetrieveSecret
These endpoints must be available to standard users AND ponos agent:
- ListArtifacts
- DownloadArtifact
- PartialUpdateTaskFromAgent
Edited by Bastien Abadie