Merge pull request #468 from versity/ben/root_cred_check

fix: require root credentials be set to start gateway
This commit is contained in:
Ben McClelland
2024-03-19 12:49:42 -07:00
committed by GitHub

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",