You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c093a40
Browse filesBrowse the repository at this point in the historyBrowse files
Allow a user to land traffic on an actor from a dev machine.
The `kubectl-ate` CLI now authenticates to `atenet` by minting a
certificate (via `PodCertificateRequest`) for
`spiffe://cluster.local/ns/ate-system/sa/atenet-client`.
Ideally, atenet should support JWT based auth and there would be no need
for a certificate minting. But that support is not in place yet.
The `kubectl ate proxy actor` command also improves local dev ergonomics
as it attachjes the actor header so clients don't need to be
"substrate-aware". For example, a web browser can just point to the
local proxy.
Fixed#3194 and #3187
---------
Signed-off-by: Julian Gutierrez Oschmann <[email protected]>
curl -X POST -i http://localhost:8000/
149
149
```
150
150
151
151
### GKE Quickstart (Development)
@@ -179,9 +179,15 @@ curl -X POST \
179
179
180
180
4. Deploy the Agent Substrate system to your cluster:
181
181
```bash
182
-
go run ./cmd/ate-setup deploy ate-system --credential-provider='{"name":"k8s.io"}'
182
+
go run ./cmd/ate-setup deploy ate-system --credential-provider='{"name":"k8s.io"}' \
`--ingress-allowed-spiffe-ids` lists the clients the router lets reach
187
+
actors. The ID above is the one `kubectl ate proxy actor` presents. Without
188
+
the flag no client reaches actors. See
189
+
[Ingress to actors](docs/operator-install.md#ingress-to-actors).
190
+
185
191
`--credential-provider` is required. `{"name":"k8s.io"}` also deploys the
186
192
bundled Kubernetes Secrets provider, with a NetworkPolicy that admits only
187
193
the egress gateway; `{"enabled":false}` turns egress credential injection off
@@ -195,7 +201,7 @@ curl -X POST \
195
201
196
202
5. You can then deploy the sample applications. See [demos/counter/README.md](demos/counter/README.md) or [demos/sandbox/README.md](demos/sandbox/README.md) for detailed walkthroughs.
Copy file name to clipboardExpand all lines: cmd/ate-setup/commands.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ a pre-scan pass, so they may appear anywhere on its command line.
31
31
|`--ateapi-postgres-storage-class NAME`|`ATE_API_POSTGRES_STORAGE_CLASS=NAME`| StorageClass for the bundled PostgreSQL volume instead of the cluster default, such as `dynamic-rwo` on GKE so C4 and N4 nodes can attach it. An existing install must delete the postgres StatefulSet and its claim first |
32
32
|`--cordon-system-infra-components`|`--cordon-system-infra-components`| Keep the system infra components, such as ate-api-server, atenet-router, atenet-egress and postgres, off the worker nodes. Assumes a small shared pool labeled and tainted `ate.dev/workloadType=ate-system-infra:NoSchedule`, across which each workload's replicas are spread, and a one-node pool labeled and tainted `ate.dev/workloadType=ate-postgres:NoSchedule` for postgres alone. `ATE_INSTALL_CORDON_SYSTEM_INFRA_COMPONENTS=true` when the flag is absent |
33
33
|`--fake-data-plane`|`--fake-data-plane`| Install the fake data plane for control-plane benchmarks: fake-atelet takes atelet's place in its DaemonSet, taking its objectstore-plugin's storage settings, ate-controller is scaled to zero, and fake-workersync honors every WorkerPool with fake Workers on the fake-atelet nodes. Reaches `deploy ate-system`, `deploy atelet`, and `deploy ate-controller`; only `deploy ate-system` switches a cluster between the real and fake data planes, and the other two refuse a data plane other than the installed one. `deploy ate-system --fake-data-plane` refuses a cluster whose WorkerPools have worker pods. fake-atelet runs with its defaults; a benchmark tunes it through the optional `fake-atelet-tuning` ConfigMap, whose `FAKE_ATELET_*` variables set its flags, and which no install creates or resets. Actors do not exist; never use it on a cluster that serves real actors. `ATE_INSTALL_FAKE_DATA_PLANE=true` when the flag is absent |
34
-
|`--ingress-allowed-spiffe-ids IDS`|`--ingress-allowed-spiffe-ids IDS`, or `ATE_INGRESS_ALLOWED_SPIFFE_IDS=IDS`|Required by `deploy ate-system` and `deploy atenet` for both dataplanes. Comma-separated SPIFFE IDs (exact match) of the clients the ingress router lets reach actors; any listed client may reach any actor. Both dataplanes require a Pod Identity CA client certificate on HTTPS and TLS CONNECT. The SPIFFE URI SAN allowlist may be checked during or after TLS, including after CONNECT acceptance, but unlisted clients must be denied before actor routing. The podidentity signer issues `spiffe://cluster.local/ns/<namespace>/sa/<service-account>`|
34
+
|`--ingress-allowed-spiffe-ids IDS`|`--ingress-allowed-spiffe-ids IDS`, or `ATE_INGRESS_ALLOWED_SPIFFE_IDS=IDS`| Comma-separated SPIFFE IDs (exact match) of the clients the ingress router lets reach actors; any listed client may reach any actor. Unset, no client may reach actors through the router. Both dataplanes require a Pod Identity CA client certificate on HTTPS and TLS CONNECT. The SPIFFE URI SAN allowlist may be checked during or after TLS, including after CONNECT acceptance, but unlisted clients must be denied before actor routing. The podidentity signer issues `spiffe://cluster.local/ns/<namespace>/sa/<service-account>`|
|`--credential-provider JSON`|`--credential-provider JSON`, or `ATE_CREDENTIAL_PROVIDER`| Required by `deploy ate-system` and `deploy atenet`. A JSON object: `{"name":"k8s.io"}` deploys and uses the bundled Kubernetes Secrets provider, with a NetworkPolicy that admits only the egress gateway; `{"enabled":false}` turns egress credential injection off; `{"name":"<provider>","address":"<host>:<port>"}` uses a provider you deploy yourself. See [`docs/egress-credential-injection.md`](../../docs/egress-credential-injection.md)|
37
37
|`--ateapi-log-level LEVEL`|`--ateapi-log-level LEVEL`, or `ATE_API_LOG_LEVEL=LEVEL`| ate-api-server log level: `debug`, `info`, `warn`, or `error`. Written to the `ate-api-config` ConfigMap on every deploy when set; unset keeps the installed level (`info` on a new install). The server picks up a change without restarting |
// Flags for client authentication and authorization in ingress mode.
74
74
fs.StringVar(&cfg.IngressAuth.ClientCAFile, "ingress-client-ca-file", "", "PEM bundle of the CAs allowed to sign ingress client certificates. Envoy reads the file, so it must be mounted at this path in the Envoy container as well. Required for the Envoy ingress dataplane")
75
-
fs.StringSliceVar(&cfg.IngressAuth.AllowedSPIFFEIDs, "ingress-allowed-spiffe-ids", nil, "SPIFFE IDs (exact match) allowed to connect to actors through the ingress dataplane. Comma-separated or repeated. Required for the Envoy ingress dataplane")
75
+
fs.StringSliceVar(&cfg.IngressAuth.AllowedSPIFFEIDs, "ingress-allowed-spiffe-ids", nil, "SPIFFE IDs (exact match) allowed to connect to actors through the ingress dataplane. Comma-separated or repeated. Without any, the Envoy ingress dataplane serves no traffic")
76
76
77
77
fs.StringVar(&cfg.UpstreamCredentialBundlePath, "upstream-credential-bundle", "/run/podidentity.podcert.ate.dev/credential-bundle.pem", "PEM credential bundle (cert+key) the router presents as the client cert when dialing the actor's atunnel ingress server over mTLS. Empty disables upstream mTLS (legacy plaintext pod-IP:80) and needs --upstream-connect=false.")
78
78
fs.StringVar(&cfg.UpstreamTrustBundlePath, "upstream-trust-bundle", "/run/podidentity.podcert.ate.dev/trust-bundle.pem", "PEM trust bundle used to validate the actor's atunnel ingress server certificate.")
0 commit comments