Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test UTC #12206

Closed
wants to merge 7 commits into from
Closed

Test UTC #12206

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/terraform/environments/prod/image-builder.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Secure access to signify dev and prod secrets over k8s API.
# Only external-secrets controller need access to these secrets over k8s API.
# Prowjobs access these secrets as env vars or mounted files. This is controlled by OPA Gatekeeper.
# Prowjobs access these secrets as env vars or mounted files. This is contrlled by OPA Gatekeeper.

resource "kubernetes_cluster_role" "access_signify_secrets_trusted_workloads" {
provider = kubernetes.trusted_workload_k8s_cluster
Expand Down
6 changes: 6 additions & 0 deletions configs/terraform/environments/prod/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ provider "google" {
region = var.kyma_project_gcp_region
}

provider "google" {
alias = "workloads"
project = var.workloads_project_id
region = var.gcp_region
}

provider "google-beta" {
project = var.gcp_project_id
region = var.gcp_region
Expand Down
6 changes: 6 additions & 0 deletions configs/terraform/environments/prod/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ variable "gcp_project_id" {
description = "Google Cloud project to create resources."
}

variable "workloads_project_id" {
type = string
default = "sap-kyma-prow-workloads"
description = "Additional Google Cloud project ID."
}

variable "gatekeeper_manifest_path" {
type = string
default = "../../../../opa/gatekeeper/deployments/gatekeeper.yaml"
Expand Down
5 changes: 5 additions & 0 deletions pkg/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package oidc
import (
"errors"
"fmt"
"time"

"github.com/coreos/go-oidc/v3/oidc"
"github.com/go-jose/go-jose/v4"
Expand Down Expand Up @@ -169,6 +170,10 @@ func NewVerifierConfig(logger LoggerInterface, clientID string, options ...Verif
verifierConfig.InsecureSkipSignatureCheck = false
verifierConfig.SupportedSigningAlgs = SupportedSigningAlgorithms

verifierConfig.Now = func() time.Time {
return time.Now().UTC()
}

logger.Debugw("Created Verifier config with default values",
"clientID", clientID,
"SkipClientIDCheck", verifierConfig.SkipClientIDCheck,
Expand Down
Loading