Expose admin commands as REST endpoints #231

Closed
opened 2022-02-09 18:13:28 +00:00 by quentin · 1 comment
Owner
No description provided.
quentin added this to the Speculative milestone 2022-02-09 18:13:28 +00:00
quentin added the
kind
improvement
label 2022-02-09 18:13:28 +00:00
trinity-1686a added a new dependency 2022-02-10 08:26:45 +00:00
lx removed this from the Speculative milestone 2022-04-25 15:48:36 +00:00
Owner

In #295 the need was expressed for a machine-readable interface to cluster management commands (garage status, garage layout). We will start by adding these commands to the REST API accessible through the admin endpoint. Ultimately, we would like all of the commands currently available on the Garage CLI to be available from the REST API.

Concerning authentification, we will first start by securing the admin API endpoint with simple bearer tokens, e.g. by using the cluster shared secret (rpc_secret) as a token for admin APIs. We will consider using a separate bearer token for metrics scraping on /metrics as we don't want to have to put our cluster administration token in the Prometheus configuration.

In #295 the need was expressed for a machine-readable interface to cluster management commands (`garage status`, `garage layout`). We will start by adding these commands to the REST API accessible through the admin endpoint. Ultimately, we would like all of the commands currently available on the Garage CLI to be available from the REST API. Concerning authentification, we will first start by securing the admin API endpoint with simple bearer tokens, e.g. by using the cluster shared secret (`rpc_secret`) as a token for admin APIs. We will consider using a separate bearer token for metrics scraping on `/metrics` as we don't want to have to put our cluster administration token in the Prometheus configuration.
lx closed this issue 2022-05-24 10:16:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: Deuxfleurs/garage#231
No description provided.