Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ package:
bundle:
uds create bundle --confirm

.PHONY: build
build: package bundle

.PHONY: deploy
deploy:
uds deploy bundle/uds-bundle-socketzero-arm64-dev.tar.zst --confirm --set config="$(cat config.json)"
Expand Down
31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,35 @@ uds create bundle --confirm

### To deploy the UDS package.

SocketZero ships we a free trial license up to 5 concurrent connections. If you'd like to use SocketZero beyond this, please contact support@radiusmethod.com, to discuss increased license terms.

```shell
uds deploy bundle/uds-bundle-socketzero-arm64-0.0.1.tar.zst --confirm --set socketzero_license_org="<license-organization>" --set socketzero_license_key="<license-key>" --set socketzero_config="$(cat config.json | base64)"
uds deploy bundle/uds-bundle-socketzero-arm64-0.0.1.tar.zst --confirm --set socketzero_license_org="<license-organization>" --set socketzero_license_key="<license-key>" --set socketzero_config="$(cat config.json | base64)" --set redis_password="<redis-password>"
```

### To test remotely
### Configuration File Sample

Copy the remote kubeconfig locally.
This sample config.json will allow you to connect to the internal redis database that is used by SocketZero.

```shell
ssh -l 127.0.0.1:6550:127.0.0.1:6550 user@remote-ip -i ~/.ssh/key.pem
```
{
"authz": false,
"cookie": "__Host-uds-package-socketzero-authservice-session-id-cookie",
"redisHost": "socketzero-redis-bb-master.socketzero.svc.cluster.local:6379",
"redisPassword": "",
"tunnels": [
{
"hostname": "redis.uds.dev",
"listenPort": 6379,
"targetPort": 6379,
"targetHost": "socketzero-redis-bb-master.socketzero.svc.cluster.local",
"transport": "tcp",
"friendlyName": "Redis",
"iconUrl": "",
"action": "command",
"roles": ["redis"],
"details":["redis-cli -h redis.uds.dev"]
}
]
}
```
4 changes: 4 additions & 0 deletions bundle/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ packages:
- name: SOCKETZERO_LICENSE_KEY
path: "license.key"
description: "Set the key for the license"
- name: REDIS_PASSWORD
path: "global.redis.password"
description: "Redis password (required for upgrades)"
default: "helloworld"
4 changes: 3 additions & 1 deletion common/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ variables:
description: "Organization name for the license"
- name: SOCKETZERO_LICENSE_KEY
description: "License key for SocketZero"
- name: REDIS_PASSWORD
description: "Redis password (required for upgrades)"

components:
- name: socketzero
Expand All @@ -29,7 +31,7 @@ components:
namespace: socketzero
url: https://github.com/radiusmethod/socketzero-helm.git
gitPath: .
version: 0.6.2
version: 0.7.0
valuesFiles:
- ../values/common-values.yaml
actions:
Expand Down
5 changes: 4 additions & 1 deletion values/common-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ license:
config: "###ZARF_VAR_SOCKETZERO_CONFIG###"
redis:
auth:
password: "helloworld"
password: "###ZARF_VAR_REDIS_PASSWORD###"
global:
redis:
password: "###ZARF_VAR_REDIS_PASSWORD###"
2 changes: 1 addition & 1 deletion values/registry1-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Example variables from UDS package repo template. Update to relevant variables after templating
image:
repository: registry1.dso.mil/ironbank/radiusmethod/socketzero/receiver
tag: 0.6.2
tag: 0.7.0
7 changes: 5 additions & 2 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ variables:
description: "Organization name for the license"
- name: SOCKETZERO_LICENSE_KEY
description: "License key for SocketZero"
- name: REDIS_PASSWORD
description: "Redis password (required for upgrades)"
default: "helloworld"

components:
- name: socketzero
Expand All @@ -33,5 +36,5 @@ components:
charts:
- name: socketzero
images:
- registry1.dso.mil/ironbank/radiusmethod/socketzero/receiver:0.6.2
- registry1.dso.mil/ironbank/bitnami/redis:8.0.3
- registry1.dso.mil/ironbank/radiusmethod/socketzero/receiver:0.7.0
- registry1.dso.mil/ironbank/bitnami/redis:8.2.0
Loading