feat: enable auth for local requests to Corrosion API (resolves #110)

This commit is contained in:
Pasha Sviderski committed 2026-05-26 10:07:12 +10:00
1 parent 26951773d1
commit 9424daff28
6 files changed
+138 -27

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ func WaitReady(ctx context.Context, dataDir string) error {
return fmt.Errorf("unmarshal config: %w", err)
}
corro, err := corrosion.NewAPIClient(config.API.Addr)
corro, err := corrosion.NewAPIClient(config.API.Addr, config.API.Authz.BearerToken)
if err != nil {
return fmt.Errorf("create corrosion API client: %w", err)
}