mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-05 20:32:57 +02:00
hpke: move published public keys to a new endpoint (#4048)
hpke: move published public keys to a new endpoint (#4044) Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
parent
7afa9d4a95
commit
ee1fefb218
13 changed files with 136 additions and 71 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
"github.com/pomerium/pomerium/internal/urlutil"
|
||||
"github.com/pomerium/pomerium/pkg/cryptutil"
|
||||
"github.com/pomerium/pomerium/pkg/derivecert"
|
||||
"github.com/pomerium/pomerium/pkg/hpke"
|
||||
|
@ -248,7 +249,7 @@ func (cfg *Config) GetAuthenticateKeyFetcher() (hpke.KeyFetcher, error) {
|
|||
return nil, err
|
||||
}
|
||||
jwksURL := authenticateURL.ResolveReference(&url.URL{
|
||||
Path: "/.well-known/pomerium/jwks.json",
|
||||
Path: urlutil.HPKEPublicKeyPath,
|
||||
}).String()
|
||||
return hpke.NewKeyFetcher(jwksURL, transport), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue