Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Basic HTTP Request Handling on 8080 #101

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Add Basic HTTP Request Handling on 8080 #101

merged 2 commits into from
Dec 6, 2024

Conversation

Kaiede
Copy link
Owner

@Kaiede Kaiede commented Dec 6, 2024

Provides an implementation of /health and /live for monitoring service health. It also provides a partial implementation of /status although it doesn't report sizes of backups properly yet, just provides when the last backup occurred, if it was successful, and which containers were backed up.

It also implements /start-backup which requires the caller provide the correct token. The token is generated randomly at the start of the service, and written to a file. The file path can be configured using tokenPath in the configuration file, but by default it creates a .bedrockifierToken file adjacent to the configuration file, similar to .service_is_healthy

To kick off a backup, a user with access to the configuration directory, and curl can do something like the following.

curl http://{IPADDRESS}:8080/start-backup
   -H "Authorization: Bearer $(cat configDir/.bedrockifierToken)"

This was linked to issues Dec 6, 2024
@Kaiede Kaiede merged commit b4fccf4 into main Dec 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On-Demand Backups Monitoring API
1 participant