From 0f11605fcbf657bc546a280e31a9e6c8fb0ff1c0 Mon Sep 17 00:00:00 2001 From: Thorsten Klein Date: Tue, 11 Jul 2023 11:42:40 +0200 Subject: [PATCH] remove: commented code about token auth for ac:// Signed-off-by: Thorsten Klein --- pkg/cosign/manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/cosign/manager.go b/pkg/cosign/manager.go index 94329f2218..fab8a7f936 100644 --- a/pkg/cosign/manager.go +++ b/pkg/cosign/manager.go @@ -37,10 +37,6 @@ func getAcornPublicKeys(username string) ([]AcornPublicKey, error) { return nil, err } - // TODO: maybe use token if user is logged in, so that we could rate-limit anonymous requests? - // token := "g4xc25zkb6b2dkld5fjwvqf6p9lns6lp2h9rbctrqtqf7cb6fr75rd" - // req.Header.Set("Authorization", "Bearer "+token) - resp, err := http.DefaultClient.Do(req) if err != nil { return nil, err