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

This commit is contained in:
Pasha Sviderski
2026-05-26 10:07:12 +10:00
parent 26951773d1
commit 9424daff28
6 changed files with 138 additions and 27 deletions
+6 -1
View File
@@ -37,7 +37,12 @@ type GossipConfig struct {
}
type APIConfig struct {
Addr netip.AddrPort `toml:"addr"`
Addr netip.AddrPort `toml:"addr"`
Authz APIAuthzConfig `toml:"authz"`
}
type APIAuthzConfig struct {
BearerToken string `toml:"bearer-token"`
}
type AdminConfig struct {