Skip to content

Commit 2bda821

Browse files
author
Entlein
committed
adaptive_export: production AE — streaming export + write-integrity
1 parent 9b2721f commit 2bda821

73 files changed

Lines changed: 12534 additions & 534 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/vizier_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
image-base-name: "dev_image_with_extras"
1616
build-release:
1717
name: Build Release
18-
runs-on: oracle-16cpu-64gb-x86-64
18+
runs-on: oracle-vm-16cpu-64gb-x86-64
1919
needs: get-dev-image
2020
permissions:
2121
contents: read
@@ -140,7 +140,7 @@ jobs:
140140
git commit -s -m "Release Helm chart Vizier ${VERSION}"
141141
git push origin "gh-pages"
142142
update-gh-artifacts-manifest:
143-
runs-on: oracle-8cpu-32gb-x86-64
143+
runs-on: oracle-vm-16cpu-64gb-x86-64
144144
needs: [get-dev-image, create-github-release]
145145
container:
146146
image: ${{ needs.get-dev-image.outputs.image-with-tag }}

.gitmodules

Whitespace-only changes.

skaffold/skaffold_vizier.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ build:
3636
bazel:
3737
target: //src/vizier/services/cloud_connector:cloud_connector_server_image.tar
3838
args:
39-
- --config=x86_64_sysroot
40-
- --compilation_mode=opt
39+
- --config=x86_64_sysroot
40+
- --compilation_mode=opt
4141
- image: vizier-cert_provisioner_image
4242
context: .
4343
bazel:

src/api/go/pxapi/opts.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,17 @@ func WithDirectCredsInsecure() ClientOption {
8282
c.insecureDirect = true
8383
}
8484
}
85+
86+
// WithDirectTLSSkipVerify is the secure-by-default option for direct (standalone /
87+
// node-local PEM) connections: the transport IS TLS-encrypted, but the server cert
88+
// is not chain/hostname-verified. Use this instead of WithDirectCredsInsecure when
89+
// the direct endpoint serves TLS with a self-signed / service cert whose SAN does
90+
// not match the node IP (e.g. vizier-pem's direct-query port served with
91+
// service-tls-certs, dialed at HOST_IP). Unlike WithDisableTLSVerification it does
92+
// NOT require a "cluster.local" address, so it works for the node-IP direct dial.
93+
// Bearer creds (the minted JWT) therefore ride an encrypted channel, never plaintext.
94+
func WithDirectTLSSkipVerify() ClientOption {
95+
return func(c *Client) {
96+
c.disableTLSVerification = true
97+
}
98+
}

src/stirling/source_connectors/socket_tracer/testing/container_images/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,29 @@ package(default_visibility = [
2424

2525
# Generate all Go container library permutations for supported Go versions.
2626
go_container_libraries(
27-
container_type = "grpc_server",
2827
bazel_sdk_versions = pl_all_supported_go_sdk_versions,
28+
container_type = "grpc_server",
2929
prebuilt_container_versions = pl_go_test_versions,
3030
)
3131

3232
# Stirling test cases usually test server side tracing. Therefore
3333
# we only need to provide the bazel SDK versions for the client containers.
3434
go_container_libraries(
35-
container_type = "grpc_client",
3635
bazel_sdk_versions = pl_all_supported_go_sdk_versions,
36+
container_type = "grpc_client",
3737
)
3838

3939
go_container_libraries(
40-
container_type = "tls_server",
4140
bazel_sdk_versions = pl_all_supported_go_sdk_versions,
41+
container_type = "tls_server",
4242
prebuilt_container_versions = pl_go_test_versions,
4343
)
4444

4545
# Stirling test cases usually test server side tracing. Therefore
4646
# we only need to provide the bazel SDK versions for the client containers.
4747
go_container_libraries(
48-
container_type = "tls_client",
4948
bazel_sdk_versions = pl_all_supported_go_sdk_versions,
49+
container_type = "tls_client",
5050
)
5151

5252
pl_cc_test_library(

src/vizier/services/adaptive_export/BUILD.bazel

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#
1515
# SPDX-License-Identifier: Apache-2.0
1616

17+
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
18+
load("@io_bazel_rules_docker//contrib:push-all.bzl", "container_push")
1719
load("//bazel:pl_build_system.bzl", "pl_go_image")
1820

1921
pl_go_image(
@@ -24,3 +26,27 @@ pl_go_image(
2426
"//src/vizier:__subpackages__",
2527
],
2628
)
29+
30+
# Single-image bundle + push targets — same shape as
31+
# //k8s/vizier:image_bundle / vizier_images_push, but scoped to ONLY
32+
# the adaptive_export image so the SBOB PoC can rebuild this one
33+
# component without rebuilding kelvin / pem / metadata. Consumed by
34+
# .github/workflows/adaptive_export_image.yaml via
35+
# `bazel run :adaptive_export_image_push` with the standard
36+
# --//k8s:image_repository / --//k8s:image_version overrides.
37+
container_bundle(
38+
name = "adaptive_export_image_bundle",
39+
images = {
40+
"$(IMAGE_PREFIX)/vizier-adaptive_export_image:$(BUNDLE_VERSION)": ":adaptive_export_image",
41+
},
42+
toolchains = [
43+
"//k8s:image_prefix",
44+
"//k8s:bundle_version",
45+
],
46+
)
47+
48+
container_push(
49+
name = "adaptive_export_image_push",
50+
bundle = ":adaptive_export_image_bundle",
51+
format = "Docker",
52+
)

src/vizier/services/adaptive_export/cmd/BUILD.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ go_library(
2424
visibility = ["//visibility:private"],
2525
deps = [
2626
"//src/api/go/pxapi",
27+
"//src/vizier/services/adaptive_export/internal/activeset",
28+
"//src/vizier/services/adaptive_export/internal/clickhouse",
2729
"//src/vizier/services/adaptive_export/internal/config",
30+
"//src/vizier/services/adaptive_export/internal/control",
31+
"//src/vizier/services/adaptive_export/internal/controller",
2832
"//src/vizier/services/adaptive_export/internal/pixie",
33+
"//src/vizier/services/adaptive_export/internal/pixieapi",
2934
"//src/vizier/services/adaptive_export/internal/pxl",
3035
"//src/vizier/services/adaptive_export/internal/script",
36+
"//src/vizier/services/adaptive_export/internal/sink",
37+
"//src/vizier/services/adaptive_export/internal/streaming",
38+
"//src/vizier/services/adaptive_export/internal/trigger",
3139
"@com_github_sirupsen_logrus//:logrus",
3240
],
3341
)

0 commit comments

Comments
 (0)