composer: Add worker openapi spec endpoint to auth excludes
Also remove metrics from the excludes for the composer api. This endpoint would not be called via the gateway so it's not relevant here.
This commit is contained in:
parent
82ee9661a9
commit
4577ac0717
1 changed files with 3 additions and 2 deletions
|
|
@ -215,7 +215,9 @@ func (c *Composer) Start() error {
|
|||
c.config.Worker.JWTKeysURL,
|
||||
c.config.Worker.JWTKeysCA,
|
||||
c.config.Worker.JWTACLFile,
|
||||
[]string{},
|
||||
[]string{
|
||||
"/api/image-builder-worker/v1/openapi/?$",
|
||||
},
|
||||
handler,
|
||||
)
|
||||
if err != nil {
|
||||
|
|
@ -258,7 +260,6 @@ func (c *Composer) Start() error {
|
|||
c.config.Koji.JWTKeysCA,
|
||||
c.config.Koji.JWTACLFile,
|
||||
[]string{
|
||||
"/metrics/?$",
|
||||
"/api/image-builder-composer/v2/openapi/?$",
|
||||
"/api/image-builder-composer/v2/errors/?$",
|
||||
}, mux)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue