kyma-project / test-infra

Test infrastructure for the Kyma project.
https://status.build.kyma-project.io/
Apache License 2.0
38 stars 179 forks source link

Make all oidc-token-verifier parameters configurable #11000

Open dekiel opened 2 months ago

dekiel commented 2 months ago

Description

oidc-token-verifier checks the value of job_workflow_ref claim against an expected trusted workflow value. The expected workflow value is hardcoded along with trusted issuer data. These configuration data should be provided as flags or configuration file. The same approach must be applied for supported signing algorithms.

The configuration must allow providing multiple values.

Reasons

Hardcoding configuration values together with code is an anti pattern. It's not flexible and doesn't allow to use a tool for multiple use cases without code change.

Acceptance Criteria

dekiel commented 2 months ago

We should consider creating a separate issue for updating the usage in oci-image-builder for better estimation.