fix: require root credentials be set to start gateway

Fixes #466
This commit is contained in:
Ben McClelland
2024-03-18 15:32:54 -07:00
parent 8fcb443477
commit 1cd86d188f

View File

@@ -369,6 +369,10 @@ func initFlags() []cli.Flag {
}
func runGateway(ctx context.Context, be backend.Backend) error {
if rootUserAccess == "" || rootUserSecret == "" {
return fmt.Errorf("root user access and secret key must be provided")
}
app := fiber.New(fiber.Config{
AppName: "versitygw",
ServerHeader: "VERSITYGW",