Skip to content

Unauthorized error with registry even after configuring secret for cosign validator #667

Answered by mathuvenkat
mathuvenkat asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, found the issue. The auth.secrets is a property under validators, but indent was incorrect and it was under trusted_roots. It works with that fix. It would be useful to point to the validator py file that we can run the yaml through for static validations and if that can catch these errors

        name: cosignvalidator
        type: cosign
        trust_roots:
          -
            key: |
                -----BEGIN PUBLIC KEY-----
                -----END PUBLIC KEY-----
            name: pubkey
        auth:
          secret_name: quay-secret

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xopham
Comment options

@xopham
Comment options

Answer selected by mathuvenkat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants