mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-10-30 01:22:31 +00:00
chore(oidc): collect all oidc-clients under keycloak
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- client.yaml
|
||||
- credentials.yaml
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- cloudflare
|
||||
- netbird
|
||||
- netbird-backend
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- client.yaml
|
||||
- credentials.yaml
|
||||
- sa-role-view-users.yaml
|
||||
@@ -14,7 +14,6 @@ spec:
|
||||
baseUrl: "https://netbird.stonegarden.dev"
|
||||
validRedirectUris:
|
||||
- "http://localhost:53000"
|
||||
- "http://localhost:8080/*"
|
||||
- "https://netbird.stonegarden.dev/*"
|
||||
validPostLogoutRedirectUris:
|
||||
- "https://netbird.stonegarden.dev/*"
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- client.yaml
|
||||
- scopes.yaml
|
||||
@@ -1,4 +1,22 @@
|
||||
apiVersion: openidclient.keycloak.crossplane.io/v1alpha1
|
||||
kind: ClientDefaultScopes
|
||||
metadata:
|
||||
name: netbird-default-scopes
|
||||
spec:
|
||||
forProvider:
|
||||
defaultScopes:
|
||||
- acr
|
||||
- email
|
||||
- profile
|
||||
- roles
|
||||
- web-origins
|
||||
- netbird-api
|
||||
clientIdRef:
|
||||
name: netbird
|
||||
realmIdRef:
|
||||
name: homelab
|
||||
---
|
||||
apiVersion: openidclient.keycloak.crossplane.io/v1alpha1
|
||||
kind: ClientScope
|
||||
metadata:
|
||||
name: netbird-api
|
||||
@@ -2,8 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- realms.yaml
|
||||
- users.yaml
|
||||
- client-cloudflare.yaml
|
||||
- cloudflare-oidc-credentials.yaml
|
||||
- realm.yaml
|
||||
- builtin-objects.yaml
|
||||
- clients
|
||||
- users
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- veh.yaml
|
||||
5
k8s/infra/auth/keycloak-realms/kustomization.yaml
Normal file
5
k8s/infra/auth/keycloak-realms/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- homelab
|
||||
@@ -7,12 +7,12 @@ resources:
|
||||
- secret-keycloak-admin.yaml
|
||||
- secret-keycloak-db-credentials.yaml
|
||||
- http-route.yaml
|
||||
- config
|
||||
|
||||
helmCharts:
|
||||
- name: keycloak
|
||||
repo: oci://registry-1.docker.io/bitnamicharts
|
||||
releaseName: keycloak
|
||||
namespace: keycloak
|
||||
version: 22.1.1
|
||||
# version: 22.1.1
|
||||
version: 21.5.0
|
||||
valuesFile: values.yaml
|
||||
|
||||
@@ -14,6 +14,13 @@ proxy: edge
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 640Mi
|
||||
limits:
|
||||
memory: 3Gi
|
||||
|
||||
postgresql:
|
||||
enabled: true
|
||||
auth:
|
||||
@@ -27,3 +34,4 @@ postgresql:
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: keycloak-db
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ spec:
|
||||
server: '*'
|
||||
- namespace: 'keycloak'
|
||||
server: '*'
|
||||
- namespace: 'netbird'
|
||||
server: '*'
|
||||
clusterResourceWhitelist:
|
||||
- group: '*'
|
||||
kind: '*'
|
||||
|
||||
@@ -3,19 +3,19 @@ kind: Function
|
||||
metadata:
|
||||
name: function-extra-resources
|
||||
spec:
|
||||
package: xpkg.upbound.io/crossplane-contrib/function-extra-resources:v0.0.3
|
||||
package: xpkg.upbound.io/crossplane-contrib/function-extra-resources:v0.0.3 # renovate: github-releases=crossplane-contrib/function-extra-resources
|
||||
---
|
||||
apiVersion: pkg.crossplane.io/v1beta1
|
||||
kind: Function
|
||||
metadata:
|
||||
name: function-auto-ready
|
||||
spec:
|
||||
package: xpkg.upbound.io/crossplane-contrib/function-auto-ready:v0.2.1
|
||||
package: xpkg.upbound.io/crossplane-contrib/function-auto-ready:v0.2.1 # renovate: github-releases=crossplane-contrib/function-auto-ready
|
||||
---
|
||||
apiVersion: pkg.crossplane.io/v1beta1
|
||||
kind: Function
|
||||
metadata:
|
||||
name: function-keycloak-builtin-objects
|
||||
spec:
|
||||
package: registry.gitlab.com/corewire/images/crossplane/function-keycloak-builtin-objects:v1.0.0
|
||||
package: registry.gitlab.com/corewire/images/crossplane/function-keycloak-builtin-objects:v1.0.0 # renovate: gitlab-releases=corewire/images/crossplane/function-keycloak-builtin-objects
|
||||
packagePullPolicy: Always
|
||||
|
||||
@@ -3,10 +3,7 @@ kind: Kustomization
|
||||
namespace: netbird
|
||||
|
||||
resources:
|
||||
- oidc-client.yaml
|
||||
- oidc-sa-role.yaml
|
||||
- secret-coturn-credentials.yaml
|
||||
- secret-oidc-credentials.yaml
|
||||
|
||||
helmCharts:
|
||||
- name: netbird
|
||||
|
||||
@@ -23,7 +23,7 @@ idp:
|
||||
|
||||
management:
|
||||
image:
|
||||
tag: 0.28.4
|
||||
tag: 0.28.7 # renovate: docker=netbirdio/management
|
||||
nodeSelector:
|
||||
topology.kubernetes.io/zone: abel
|
||||
ingress:
|
||||
@@ -31,7 +31,7 @@ management:
|
||||
|
||||
signal:
|
||||
image:
|
||||
tag: 0.28.4
|
||||
tag: 0.28.7 # renovate: docker=netbirdio/signal
|
||||
nodeSelector:
|
||||
topology.kubernetes.io/zone: abel
|
||||
uri: netbird.stonegarden.dev:443
|
||||
|
||||
@@ -2,11 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: netbird
|
||||
|
||||
resources:
|
||||
- oidc-scopes.yaml
|
||||
- oidc-client.yaml
|
||||
- oidc-client-scopes.yaml
|
||||
|
||||
helmCharts:
|
||||
- name: netbird-dashboard
|
||||
repo: https://charts.jaconi.io
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: openidclient.keycloak.crossplane.io/v1alpha1
|
||||
kind: ClientDefaultScopes
|
||||
metadata:
|
||||
name: netbird-default-scopes
|
||||
spec:
|
||||
forProvider:
|
||||
defaultScopes:
|
||||
- acr
|
||||
- email
|
||||
- profile
|
||||
- roles
|
||||
- web-origins
|
||||
- netbird-api
|
||||
clientIdRef:
|
||||
name: netbird
|
||||
realmIdRef:
|
||||
name: homelab
|
||||
@@ -1,5 +1,5 @@
|
||||
image:
|
||||
tag: v2.4.1
|
||||
tag: v2.5.0 # renovate: docker=netbirdio/dashboard
|
||||
|
||||
auth:
|
||||
authority: https://keycloak.stonegarden.dev/realms/homelab
|
||||
|
||||
@@ -26,6 +26,9 @@ tofu state rm "module.volumes.module.proxmox-volume[\"pv-sonarr-config\"].restap
|
||||
tofu state rm "module.volumes.module.proxmox-volume[\"pv-plex-config\"].restapi_object.proxmox-volume"
|
||||
tofu state rm "module.volumes.module.proxmox-volume[\"pv-jellyfin-config\"].restapi_object.proxmox-volume"
|
||||
tofu state rm "module.volumes.module.proxmox-volume[\"pv-qbittorrent-config\"].restapi_object.proxmox-volume"
|
||||
tofu state rm 'module.volumes.module.proxmox-volume["pv-keycloak"].restapi_object.proxmox-volume'
|
||||
tofu state rm 'module.volumes.module.proxmox-volume["pv-netbird-management"].restapi_object.proxmox-volume'
|
||||
tofu state rm 'module.volumes.module.proxmox-volume["pv-netbird-signal"].restapi_object.proxmox-volume'
|
||||
```
|
||||
|
||||
## import proxmox volume
|
||||
|
||||
Reference in New Issue
Block a user