diff --git a/internal/gateway/oneport.go b/internal/gateway/oneport.go index aeec60a14..24487b27e 100644 --- a/internal/gateway/oneport.go +++ b/internal/gateway/oneport.go @@ -33,6 +33,9 @@ var clientPrefixes = []string{ KeyPagePath, // and the join page (JoinPagePath), at the same address JoinPagePath, + // and magpie's CA (CAPath), which the other computer fetches from the + // address it gives its agents + CAPath, } // ClientPath: p is one of the gateway's client routes, which `magpie web` diff --git a/internal/gateway/readonly.go b/internal/gateway/readonly.go index a1aed7af3..47f4126b2 100644 --- a/internal/gateway/readonly.go +++ b/internal/gateway/readonly.go @@ -47,6 +47,8 @@ var readOnlyRoutes = map[string]bool{ "GET " + JoinPagePath: true, "GET " + joinData: true, "POST " + joinData: true, + // magpie's CA, answered without a key (https.go caFileOpen) + "GET " + CAPath: true, // a proof carries no key, and answers none (remote_prove.go) "POST " + provider.RemoteProvePath: true, }