Restrict worker egress and publish manifest
Build and publish rule engine / release (push) Successful in 2m48s

This commit is contained in:
Ein Anderssono
2026-10-20 11:42:13 +02:00
parent 6f67b8012f
commit c4403f297a
3 changed files with 10 additions and 7 deletions
+4 -1
View File
@@ -100,9 +100,12 @@ jobs:
install "$RUNNER_TEMP/oras/oras" "$RUNNER_TEMP/oras-bin" install "$RUNNER_TEMP/oras/oras" "$RUNNER_TEMP/oras-bin"
printf '%s' "$HARBOR_PASSWORD" | "$RUNNER_TEMP/oras-bin" login harbor.k3s.k0.nu --username "$HARBOR_USERNAME" --password-stdin printf '%s' "$HARBOR_PASSWORD" | "$RUNNER_TEMP/oras-bin" login harbor.k3s.k0.nu --username "$HARBOR_USERNAME" --password-stdin
unset HARBOR_PASSWORD unset HARBOR_PASSWORD
(
cd "$package_dir"
"$RUNNER_TEMP/oras-bin" push --artifact-type application/vnd.ai-spel.kubernetes-manifest.v1 \ "$RUNNER_TEMP/oras-bin" push --artifact-type application/vnd.ai-spel.kubernetes-manifest.v1 \
"harbor.k3s.k0.nu/ai-spel/rule-engine-manifest:$version" \ "harbor.k3s.k0.nu/ai-spel/rule-engine-manifest:$version" \
"$package_dir/manifest.yaml:application/yaml" "manifest.yaml:application/yaml"
)
echo "version=$version" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Deploy rule engine through Argo CD - name: Deploy rule engine through Argo CD
+3 -1
View File
@@ -14,7 +14,9 @@ Responses echo the correlation ID and have status `evaluated` or `rejected`.
The NATS user may subscribe only to the evaluation subject and publish only to The NATS user may subscribe only to the evaluation subject and publish only to
reply inboxes. The service receives no credentials other than its own NATS reply inboxes. The service receives no credentials other than its own NATS
identity and has no configured database or AI-provider secrets. identity and has no configured database or AI-provider secrets. Its chart
limits pod egress to NATS and cluster DNS; Luau evaluation has no external
network path.
## Local commands ## Local commands
@@ -12,6 +12,7 @@ spec:
- to: - to:
- podSelector: - podSelector:
matchLabels: matchLabels:
app.kubernetes.io/name: ai-spel-nats
app.kubernetes.io/instance: ai-spel-nats app.kubernetes.io/instance: ai-spel-nats
ports: ports:
- protocol: TCP - protocol: TCP
@@ -20,9 +21,6 @@ spec:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: kube-system kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports: ports:
- protocol: UDP - protocol: UDP
port: 53 port: 53