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:
sanne 2021-10-20 22:03:04 +02:00 committed by Ondřej Budai
parent 82ee9661a9
commit 4577ac0717

View file

@ -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)