@@ -24,48 +24,66 @@ Use the UDS CLI with these tasks defined in `tasks.yaml`:
2424- ` uds run test:ingress ` - Check SocketZero UI accessibility at https://socketzero.uds.dev
2525- ` uds run test:ui ` - Run Playwright tests in Docker container
2626
27+ To run Playwright tests locally without Docker:
28+ ``` bash
29+ cd tests && npm ci && npx playwright test
30+ # Run a single test file:
31+ npx playwright test socketzero.test.ts
32+ # Run with specific browser:
33+ npx playwright test --project=chromium
34+ ```
35+
2736### Package Management
2837
2938The repository uses common UDS tasks imported from ` uds-common ` v1.16.4:
3039- ` create:package ` , ` create:test-bundle ` - Package creation
31- - ` deploy:test-bundle ` - Bundle deployment
40+ - ` deploy:test-bundle ` - Bundle deployment
3241- ` setup:k3d-test-cluster ` - Test cluster setup
3342- ` lint ` , ` pull ` , ` upgrade ` , ` compliance ` - Standard operations
3443
44+ ### Manual Build & Deploy
45+
46+ ``` bash
47+ uds zarf package create
48+ uds create bundle --confirm
49+ uds deploy bundle/uds-bundle-socketzero-< arch> -0.0.1.tar.zst --confirm \
50+ --set socketzero_license_org=" <org>" \
51+ --set socketzero_license_key=" <key>" \
52+ --set socketzero_config=" $( cat config.json | base64) "
53+ ```
54+
3555## Architecture
3656
3757### Package Structure
3858
3959- ** Root ` zarf.yaml ` ** - Main package definition importing from ` common/zarf.yaml `
40- - ** ` common/zarf.yaml ` ** - Core component definition with SocketZero Helm chart
41- - ** ` bundle/uds-bundle.yaml ` ** - UDS bundle for testing with dependencies
60+ - ** ` common/zarf.yaml ` ** - Core component definition with SocketZero Helm chart and UDS config chart
61+ - ** ` bundle/uds-bundle.yaml ` ** - UDS bundle for testing with variable overrides
4262- ** ` chart/ ` ** - UDS Package custom resources (SSO, network policies, virtual services)
4363
4464### Key Components
4565
46- 1 . ** SocketZero Application** - Deployed via Helm chart from https://github.com/radiusmethod/socketzero-helm.git
47- 2 . ** UDS Package Resource** - Configures SSO integration and network policies in ` chart/templates/uds-package.yaml `
48- 3 . ** Values Files** - Environment-specific configurations in ` values/ ` directory
66+ 1 . ** SocketZero Application** - Deployed via Helm chart from https://github.com/radiusmethod/socketzero-helm.git (v0.6.2)
67+ 2 . ** Redis** - Bundled dependency using Iron Bank image (` registry1.dso.mil/ironbank/bitnami/redis:8.0.3 ` )
68+ 3 . ** UDS Package Resource** - Configures SSO integration and network policies in ` chart/templates/uds-package.yaml `
69+ 4 . ** Values Files** - Environment-specific configurations in ` values/ ` directory
4970
5071### Configuration
5172
52- - ** SSO Integration** - SAML -based authentication configured in UDS Package spec
53- - ** Network Policies** - Ingress/egress rules with Istio gateway exposure on port 1234
54- - ** Service Exposure** - SocketZero service exposed via tenant gateway at ` socketzero.{{ domain }} `
73+ - ** SSO Integration** - Keycloak -based authentication with authservice selector on ` app.kubernetes.io/name: socketzero `
74+ - ** Network Policies** - Ambient mesh mode with intra-namespace ingress/egress rules
75+ - ** Service Exposure** - SocketZero service exposed via tenant gateway on port 9997 at ` socketzero.{{ domain }} `
5576
5677## Image Registry
5778
58- Uses Registry1 Iron Bank image: ` registry1.dso.mil/ironbank/radiusmethod/socketzero/receiver:0.5.9 `
59-
60- ## Testing Strategy
61-
62- - ** Health Checks** - Kubernetes deployment readiness validation
63- - ** Ingress Testing** - HTTP status verification via curl
64- - ** UI Testing** - Playwright tests running in containerized environment
65- - ** Package Validation** - UDS Package CRD status monitoring
79+ Uses Registry1 Iron Bank images:
80+ - ` registry1.dso.mil/ironbank/radiusmethod/socketzero/receiver:0.6.2 `
81+ - ` registry1.dso.mil/ironbank/bitnami/redis:8.0.3 `
6682
6783## Variables
6884
6985Key Zarf variables defined in root ` zarf.yaml ` :
7086- ` DOMAIN ` (default: "uds.dev")
71- - ` EXAMPLE_DB_USERNAME ` , ` EXAMPLE_DB_ENDPOINT ` - Database configuration placeholders
87+ - ` SOCKETZERO_CONFIG ` - Base64-encoded JSON configuration
88+ - ` SOCKETZERO_LICENSE_ORG ` - Organization name for license
89+ - ` SOCKETZERO_LICENSE_KEY ` - License key
0 commit comments