算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
zero-trust-overlay-delivery【设计与创意】Design, implement, or review a Zero-driven XConnect overlay network spanning XConnect Zero/Accounts, Gateway, One clients, GitOps, Playbooks, Vault, IaC, and deployment workflows. Use for WireGuard-over-VLESS, signed enrollment/configuration, Gateway/One runtime roles, or UAT-to-PROD overlay delivery. Do not use for a static WireGuard-only network wi…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this standard when a task changes an XConnect/Zero overlay control plane, a
Gateway, a controlled One client, its WireGuard-over-VLESS transport, or the
automation that deploys and validates those parts. Read the repository map and
the target repository's existing contract before changing any layer. This
standard complements, rather than replaces, config-as-code-spec,
infrastructure-as-code-spec, ci-cd-workflow-spec, and
multi-environment-delivery-and-release.
The objective is a repeatable, controller-driven data plane:
XConnect Zero / Accounts
-> signed enrollment, configuration, and policy
XConnect Gateway
-> Xray transport and WireGuard hub
XConnect One
-> Xray transport and WireGuard client
The control plane never carries VPN packets. Gateway and One never invent policy, sign their own configuration, or upload device private keys.
| Layer | Owns | Must not own |
|---|---|---|
accounts / Zero | tenant, network, device, enrollment, policy, signed configuration, ACK/session metadata | WireGuard or transport runtime processes; device private keys |
portal | user-scoped management UI and BFF calls to Accounts | Vault secrets, device credentials, peer private keys |
gitops/vpn-overlay | non-sensitive desired topology, role/lifecycle, transport policy, release pins, address allocation intent | keys, invitations, VLESS credentials, controller tokens, SSH credentials, rendered peer files |
iac_modules/vpn-overlay | reusable cloud resources, security groups, instance/lease shape, CMDB outputs | OS packages, systemd units, device enrollment, WireGuard/Xray configuration |
playbooks/roles/vhosts/vpn-overlay | idempotent OS runtime roles, package install, directories, service units, health probes | cloud resources, static private keys, controller policy decisions |
platform-ops-toolkit | OIDC/Vault injection, ref validation, orchestration, enrollment execution, evidence collection and cleanup | unpinned builds, long-lived secrets, a second desired-state store |
| Vault | TLS/VLESS/signing/host-login materials and secret references | public topology and non-sensitive release declarations |
When ownership is unclear, stop and make it explicit before adding a field or script. Do not copy state across two layers merely to make a workflow easier.
An IP address, hostname, CIDR, release tag, Vault environment path, instance shape, security-group rule, interface name, port, or target node list is a parameter whenever it can vary by environment, run, or node. It MUST come from one authoritative declaration or a validated runtime input; it MUST NOT be duplicated as a literal in a shell script, test probe, playbook default, or workflow fallback.
Apply these rules:
/32 allowlist); it must not write the override
back into GitOps.grep, awk, or sed.Loopback listener addresses and protocol constants are allowed only when they are part of a documented runtime contract and do not identify a deployment target.
The operational path is:
GitOps may declare the network intent but cannot contain generated peer
configuration, a device private key, an invitation, a VLESS UUID, or a signed
configuration. Legacy roles that consume static overlay_config_path or
overlay_keys_path are not a substitute for this flow. Add a Zero-driven
Gateway or One role/entry point rather than modifying a static role until it
silently becomes a second controller.
The packet path is declared by the selected transport profile. For the current XConnect baseline, the path is:
One WireGuard -> local Xray transport -> VLESS/TLS/XUDP
-> Gateway Xray -> Gateway WireGuard -> overlay resource
Runtime roles MUST be idempotent and narrowly scoped:
init/join/sync/up; expose safe status probes.join/sync; let the One CLI render and own
its Xray/WireGuard runtime; expose status, diagnose, and down.Keep build, infrastructure provisioning, runtime deployment, and formal Zero enrollment as separate named stages. Resolve immutable artifact refs before mutating a host. Workflow dispatch should expose only the minimal useful parameters; preserve stable GitOps defaults and derive reviewed immutable refs when an input is omitted.
An overlay run is successful only when it records all applicable evidence:
sync;Cloud-only transport checks and optional macOS/Windows handoffs are separate stages. A manual desktop check must never block or falsely pass the Gateway/Linux acceptance result.
CASCADE, reset-by-prefix, or a blanket public
ingress rule to repair an enrollment or handshake failure. Inspect the
controller exchange, signed revision, runtime status, and peer state first.After each failed or ambiguous overlay run, record a short, redacted outcome in the PR or issue: triggering inputs, violated invariant, owning layer, evidence, and the preventive guard selected. Then add the smallest durable guard in the layer that owns the invariant:
Use this compact feedback record so the lesson can be reused across providers, environments, and transports:
Observed: <redacted symptom and exact failing checkpoint>
Invariant: <what must be true, independent of host/name/provider>
Owner: <Zero | GitOps | IaC | Playbooks | runtime | workflow | test>
Guard: <assertion, schema rule, fixture, probe, or review check>
Evidence: <test/command/run reference, with secrets and target details redacted>
Generalize the invariant, not the incident's literal value. For example, turn “this address was wrong” into “all consumers use one validated address from the normalized topology”; do not add that address as a new default. A lesson is ready to become a reusable rule only when the guard can fail on a future change and can be rerun without access to the original host or secret.
| Failure class | Durable guard |
|---|---|
| address/role drift | normalized topology validation plus a fixture proving consumers receive the same resolved value |
| stale or missing release asset | immutable-ref preflight and checksum/artifact existence test |
| Vault JWT mismatch | exact workflow-ref/role contract test; do not widen claims |
| ACK without a usable tunnel | exact peer-handshake plus private ping/HTTP acceptance test |
| non-idempotent reset or cleanup | rerun test for already-absent/previously-applied state |
| secret exposure in diagnostics | redaction test and secret rotation process, never a log allowlist |
Only promote a local workaround to this standard after it has an identified invariant and a repeatable test or review check. Keep incident facts redacted; the skill teaches the prevention mechanism, not the secret, host, or one-off address involved.
Before merging an overlay change, confirm: