feat: Blue Jay branding + 1Password vault extension
Custom image fc-guacamole:bluejay with: - Blue Jay dark theme (CSS, login, header) - 1Password Connect vault provider - guacamole.properties ConfigMap - Structured Logback logging
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
# Apache Guacamole - Remote Desktop Gateway
|
# Apache Guacamole - Blue Jay Remote Access
|
||||||
# MySQL 8 + guacd + guacamole web
|
# FlowerCore Infrastructure Gateway
|
||||||
|
# MySQL 8 + guacd + guacamole web (Blue Jay branded)
|
||||||
# ArgoCD managed - BlueJay Lab
|
# ArgoCD managed - BlueJay Lab
|
||||||
# ALL credentials sourced from 1Password via OnePasswordItem CRD (guacamole-credentials)
|
# ALL credentials sourced from 1Password via OnePasswordItem CRD (guacamole-credentials)
|
||||||
# Fields: username, password, DB-User, DB-Password, DB-Root-Password, DB-Name, URL
|
# Custom image: fc-guacamole:bluejay (Blue Jay branding + 1Password vault extension)
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
@@ -109,7 +110,6 @@ spec:
|
|||||||
clusterIP: None
|
clusterIP: None
|
||||||
---
|
---
|
||||||
# DB schema init Job
|
# DB schema init Job
|
||||||
# Generates the MySQL schema and pipes it into the database
|
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
@@ -141,9 +141,7 @@ spec:
|
|||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
# Generate schema SQL
|
|
||||||
/opt/guacamole/bin/initdb.sh --mysql > /tmp/initdb.sql
|
/opt/guacamole/bin/initdb.sh --mysql > /tmp/initdb.sql
|
||||||
# Apply schema (ignore errors if tables already exist)
|
|
||||||
mysql -h guac-mysql -u root -p"$MYSQL_ROOT_PASSWORD" "$MYSQL_DATABASE" < /tmp/initdb.sql || true
|
mysql -h guac-mysql -u root -p"$MYSQL_ROOT_PASSWORD" "$MYSQL_DATABASE" < /tmp/initdb.sql || true
|
||||||
env:
|
env:
|
||||||
- name: MYSQL_ROOT_PASSWORD
|
- name: MYSQL_ROOT_PASSWORD
|
||||||
@@ -207,7 +205,48 @@ spec:
|
|||||||
targetPort: 4822
|
targetPort: 4822
|
||||||
name: guacd
|
name: guacd
|
||||||
---
|
---
|
||||||
# Guacamole Web Application
|
# Guacamole Properties ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: guacamole-properties
|
||||||
|
namespace: guacamole
|
||||||
|
labels:
|
||||||
|
app: guacamole
|
||||||
|
data:
|
||||||
|
guacamole.properties: |
|
||||||
|
# Blue Jay Remote Access — Guacamole Configuration
|
||||||
|
# MySQL/guacd settings provided via env vars — do NOT duplicate here
|
||||||
|
|
||||||
|
# 1Password Vault Integration
|
||||||
|
1password-connect-url: http://onepassword-connect.onepassword-system.svc.cluster.local:8080
|
||||||
|
1password-connect-token: placeholder-configure-via-secret
|
||||||
|
1password-vault-id: qaphopopkryhbg353ukzhhuqoq
|
||||||
|
|
||||||
|
# Extension Priority
|
||||||
|
extension-priority: mysql, ban, bluejay, 1password-vault, *
|
||||||
|
|
||||||
|
# Ban (brute force)
|
||||||
|
ban-max-invalid-attempts: 5
|
||||||
|
ban-address-duration: 300000
|
||||||
|
ban-max-addresses: 1000
|
||||||
|
|
||||||
|
# TOTP
|
||||||
|
totp-issuer: Blue Jay Remote Access
|
||||||
|
totp-digits: 6
|
||||||
|
totp-period: 30
|
||||||
|
totp-mode: sha256
|
||||||
|
|
||||||
|
# Session Recording
|
||||||
|
recording-search-path: /var/lib/guacamole/recordings
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
log-level: info
|
||||||
|
|
||||||
|
# API Token Expiry
|
||||||
|
api-session-timeout: 60
|
||||||
|
---
|
||||||
|
# Guacamole Web Application — Blue Jay branded
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -227,7 +266,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: guacamole
|
- name: guacamole
|
||||||
image: guacamole/guacamole:latest
|
image: localhost/fc-guacamole:bluejay
|
||||||
|
imagePullPolicy: Never
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: http
|
name: http
|
||||||
@@ -255,6 +295,10 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: guacamole-credentials
|
name: guacamole-credentials
|
||||||
key: DB-Password
|
key: DB-Password
|
||||||
|
volumeMounts:
|
||||||
|
- name: guac-properties
|
||||||
|
mountPath: /etc/guacamole/guacamole.properties
|
||||||
|
subPath: guacamole.properties
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
@@ -274,6 +318,10 @@ spec:
|
|||||||
port: 8080
|
port: 8080
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
volumes:
|
||||||
|
- name: guac-properties
|
||||||
|
configMap:
|
||||||
|
name: guacamole-properties
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -289,7 +337,6 @@ spec:
|
|||||||
name: http
|
name: http
|
||||||
---
|
---
|
||||||
# Traefik addPrefix middleware
|
# Traefik addPrefix middleware
|
||||||
# External URL guac.iamworkin.lan/ gets prefix /guacamole added
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
@@ -333,8 +380,7 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
secretName: guacamole-tls
|
secretName: guacamole-tls
|
||||||
---
|
---
|
||||||
# 1Password secret sync — creates guacamole-credentials K8s Secret
|
# 1Password secret sync
|
||||||
# Fields: username, password, DB-User, DB-Password, DB-Root-Password, DB-Name, URL
|
|
||||||
apiVersion: onepassword.com/v1
|
apiVersion: onepassword.com/v1
|
||||||
kind: OnePasswordItem
|
kind: OnePasswordItem
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user