Skip to content

Commit

Permalink
zero_trust
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Nov 21, 2024
1 parent 339dc7d commit 6f705fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module "cname-records" {
module "zero-trust-app" {
source = "./modules/zero_trust_application"
cloudflare_zone_id = var.cloudflare_zone_id
cloudflare_api_key = var.cloudflare_api_key
cloudflare_token = var.cloudflare_token

names = ["ollama", "argocd", "ceph", "grafana", "oauth2"]
names = ["ollama", "argocd", "ceph", "grafana"]
}
8 changes: 4 additions & 4 deletions terraform/modules/zero_trust_application/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "cloudflare_access_policy" "github-app-policy" {
zone_id = var.cloudflare_zone_id
name = "github-auth"
decision = "allow"
resource "3" "github-app-policy" {
account_id = var.cloudflare_token
name = "github-auth"
decision = "allow"

include {
group = ["dc009146-1f84-4d2c-bbd4-670ee9d65d5d"]
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/zero_trust_application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "cloudflare_zone_id" {
type = string
}

variable "cloudflare_api_key" {
description = "The API key for Cloudflare"
variable "cloudflare_token" {
description = "cloudflare token"
type = string
}
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ variable "cloudflare_api_key" {
type = string
}

variable "cloudflare_token" {
description = "cloudflare token"
type = string
}

variable "cloudflare_zone_id" {
description = "The zone ID for Cloudflare"
type = string
Expand Down

0 comments on commit 6f705fb

Please sign in to comment.