Expose admin commands as REST endpoints #231
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#232 Provide a web interface to administrate Garage
Deuxfleurs/garage
Reference: Deuxfleurs/garage#231
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.