fix
This commit is contained in:
@@ -83,6 +83,9 @@ module "forward" {
|
|||||||
dns-names = local.dns-names
|
dns-names = local.dns-names
|
||||||
service = local.service
|
service = local.service
|
||||||
icon = local.icon
|
icon = local.icon
|
||||||
|
request_headers = local.request_headers
|
||||||
|
application-id = module.application.application-id
|
||||||
|
policy-id = module.application.policy-id
|
||||||
providers = {
|
providers = {
|
||||||
restapi = restapi
|
restapi = restapi
|
||||||
http = http
|
http = http
|
||||||
|
|||||||
@@ -6,11 +6,6 @@ metadata:
|
|||||||
name: dbgate
|
name: dbgate
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
use-oauth:
|
|
||||||
default: false
|
|
||||||
examples:
|
|
||||||
- false
|
|
||||||
type: boolean
|
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@@ -38,7 +33,22 @@ options:
|
|||||||
- Block
|
- Block
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
mongo:
|
app-group:
|
||||||
|
default: dev
|
||||||
|
examples:
|
||||||
|
- dev
|
||||||
|
type: string
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
pg:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
- []
|
- []
|
||||||
@@ -67,6 +77,16 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
sub-domain:
|
||||||
|
default: dbgate
|
||||||
|
examples:
|
||||||
|
- dbgate
|
||||||
|
type: string
|
||||||
maria:
|
maria:
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
@@ -135,37 +155,7 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
ingress-class:
|
mongo:
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: dev
|
|
||||||
examples:
|
|
||||||
- dev
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
|
||||||
default: dbgate
|
|
||||||
examples:
|
|
||||||
- dbgate
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
pg:
|
|
||||||
default: []
|
default: []
|
||||||
examples:
|
examples:
|
||||||
- []
|
- []
|
||||||
@@ -194,6 +184,16 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
use-oauth:
|
||||||
|
default: false
|
||||||
|
examples:
|
||||||
|
- false
|
||||||
|
type: boolean
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: share
|
category: share
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
output "provider-id" {
|
output "application-id" {
|
||||||
value = authentik_provider_proxy.prj_forward.id
|
value = authentik_application.prj_app.uuid
|
||||||
|
}
|
||||||
|
|
||||||
|
output "policy-id" {
|
||||||
|
value = authentik_policy_expression.policy.id
|
||||||
}
|
}
|
||||||
@@ -47,25 +47,12 @@ resource "authentik_provider_proxy" "prj_forward" {
|
|||||||
mode = "forward_single"
|
mode = "forward_single"
|
||||||
access_token_validity = var.access-token-validity
|
access_token_validity = var.access-token-validity
|
||||||
}
|
}
|
||||||
data "authentik_group" "vynil-admin" {
|
|
||||||
name = "vynil-forward-admins"
|
|
||||||
}
|
|
||||||
resource "authentik_policy_binding" "prj_access_users" {
|
|
||||||
target = authentik_application.prj_application.uuid
|
|
||||||
policy = authentik_policy_expression.policy.id
|
|
||||||
order = 0
|
|
||||||
}
|
|
||||||
resource "authentik_policy_binding" "prj_access_vynil" {
|
|
||||||
target = authentik_application.prj_application.uuid
|
|
||||||
group = data.authentik_group.vynil-admin.id
|
|
||||||
order = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
data "http" "get_forward_outpost" {
|
data "http" "get_forward_outpost" {
|
||||||
depends_on = [authentik_provider_proxy.prj_forward]
|
depends_on = [authentik_provider_proxy.prj_forward]
|
||||||
url = "http://authentik.${var.domain}-auth.svc/api/v3/outposts/instances/?name__iexact=forward"
|
url = "http://authentik.${var.domain}-auth.svc/api/v3/outposts/instances/?name__iexact=forward"
|
||||||
method = "GET"
|
method = "GET"
|
||||||
request_headers = local.request_headers
|
request_headers = var.request_headers
|
||||||
lifecycle {
|
lifecycle {
|
||||||
postcondition {
|
postcondition {
|
||||||
condition = contains([200], self.status_code)
|
condition = contains([200], self.status_code)
|
||||||
|
|||||||
@@ -28,3 +28,5 @@ variable "access-token-validity" {
|
|||||||
}
|
}
|
||||||
variable "service" {
|
variable "service" {
|
||||||
}
|
}
|
||||||
|
variable "request_headers" {
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user