Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c140ca5
Plan portable DynamoDB and celld record providers
ChristianPavilonis Nov 19, 2026
2528f59
Share the DynamoDB record core between native and portable transports
ChristianPavilonis Nov 19, 2026
37e38c5
Share celld exchange policy and add the portable record transport
ChristianPavilonis Nov 19, 2026
775080d
Share the version 1 store bindings document across adapters
ChristianPavilonis Nov 19, 2026
624a65f
Check portable provider dependency graphs and provision official celld
ChristianPavilonis Nov 19, 2026
78071be
Derive portable secret key names in the settings modules
ChristianPavilonis Nov 19, 2026
e57eb24
Select portable record providers on Fastly and pin their identities
ChristianPavilonis Nov 19, 2026
a5fb716
Run portable record contracts through the canonical Fastly path in Vi…
ChristianPavilonis Nov 19, 2026
0944ebb
Prove portable providers against real services and require them in CI
ChristianPavilonis Nov 19, 2026
4692bbf
Document portable record providers on Fastly
ChristianPavilonis Nov 19, 2026
ed552e8
Read and delete the native seed row before the portable contract
ChristianPavilonis Nov 19, 2026
6fb7384
Record portable record provider evidence in the plan
ChristianPavilonis Nov 20, 2026
a447318
Merge PR #517 into PR #522 for outbound compatibility stack
aram356 Nov 25, 2026
39d307f
Move the portable record job's Viceroy repair pins to 0.22.0
aram356 Nov 25, 2026
028b2c9
Merge PR #517 into PR #522 for outbound compatibility stack
aram356 Nov 25, 2026
d36d8ea
Merge PR #517 into PR #522 for outbound compatibility stack
aram356 Nov 26, 2026
902e271
Pin the Portable record contracts job to the atomic-insert repair patch
aram356 Nov 26, 2026
f736e56
Merge PR #517 into PR #522 for outbound compatibility stack
aram356 Nov 26, 2026
2c9ea5c
Keep the celld portable module doc off the private wire module
aram356 Nov 26, 2026
510df19
Allow the store crates' portable builds in the Geo platform graphs
aram356 Nov 26, 2026
3bf8dc0
Keep the generated CLI's argument imports rustfmt-clean
aram356 Nov 26, 2026
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
116 changes: 115 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ jobs:
if: matrix.suite == 'workspace'
run: bash scripts/check_native_store_dependency_contract.sh

- name: Check portable record providers on wasm targets
if: matrix.suite == 'workspace'
run: |
for target in wasm32-wasip1 wasm32-unknown-unknown wasm32-wasip2; do
cargo check --offline --locked -p edgezero-store-aws --no-default-features --features dynamodb-records-portable --target "$target"
cargo check --offline --locked -p edgezero-store-celld --no-default-features --features portable-records --target "$target"
done
cargo check --offline --locked -p edgezero-adapter-fastly --features fastly,aws-dynamodb-records,celld-records --target wasm32-wasip1

- name: Geo dependency isolation
run: bash scripts/check_geo_dependency_contract.sh

Expand Down Expand Up @@ -321,7 +330,7 @@ jobs:

- name: Native provider integration runner tests
if: matrix.suite == 'cli'
run: node --test scripts/native_aws_test_admin.test.mjs scripts/run_native_aws_integration.test.mjs scripts/run_native_celld_integration.test.mjs scripts/run_celld_store_fleet_proof.test.mjs services/celld-store/test/*.test.mjs
run: node --test scripts/native_aws_test_admin.test.mjs scripts/run_native_aws_integration.test.mjs scripts/run_native_celld_integration.test.mjs scripts/fetch_official_celld.test.mjs scripts/run_celld_store_fleet_proof.test.mjs services/celld-store/test/*.test.mjs

- name: Generated native AWS independent service contracts
if: matrix.suite == 'cli'
Expand Down Expand Up @@ -628,3 +637,108 @@ jobs:
include-hidden-files: true
if-no-files-found: ignore
retention-days: 14

# Required check: "Portable record contracts (Fastly)". Portable DynamoDB and celld
# providers through the canonical Fastly path in pinned Viceroy, against DynamoDB
# Local and official celld 0.6.3 behind TLS, plus real-service native interop.
portable-record-contracts:
name: Portable record contracts (Fastly)
runs-on: ubuntu-latest
env:
VICEROY_REVISION: cbc9c97813769f44a7e12fff7745fbb33287adcf
VICEROY_LOCK_SHA256: 665efc3a2c9f2d221869fbb2cbefbedf422b9957405ef05302d90f4888a10af2
VICEROY_PATCH_SHA256: 0e134da0736c3598f1c5c8b761d66b4f5fbb8e5384082c90fb08b0d1996aede4
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- name: Cache Cargo dependencies
uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
crates/edgezero-test-harness/fixtures/reusable-app/target/
crates/edgezero-test-harness/target/
key: ${{ runner.os }}-cargo-portable-records-v1-${{ hashFiles('**/Cargo.lock', '.tool-versions') }}
restore-keys: |
${{ runner.os }}-cargo-portable-records-v1-

- name: Retrieve tool versions
id: versions
shell: bash
run: |
echo "rust=$(grep '^rust ' .tool-versions | awk '{print $2}')" >> "$GITHUB_OUTPUT"
echo "node=$(grep '^nodejs ' .tool-versions | awk '{print $2}')" >> "$GITHUB_OUTPUT"

- name: Set up Rust tool chain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: "false"
toolchain: ${{ steps.versions.outputs.rust }}
target: wasm32-wasip1

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ steps.versions.outputs.node }}

- name: Fetch dependencies (locked)
run: |
cargo fetch --locked
cargo fetch --locked --manifest-path crates/edgezero-test-harness/Cargo.toml
cargo fetch --locked --manifest-path crates/edgezero-test-harness/fixtures/reusable-app/Cargo.toml

- name: Resolve Viceroy version
id: viceroy-version
shell: bash
run: bash scripts/ci_viceroy.sh keys

- name: Cache pinned stock Viceroy
uses: actions/cache@v5
with:
path: ${{ runner.temp }}/viceroy-stock
key: viceroy-stock-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.viceroy-version.outputs.stock-key }}

- name: Setup Viceroy
run: bash scripts/ci_viceroy.sh stock

- name: Cache isolated Viceroy readiness build
uses: actions/cache@v5
with:
path: ${{ runner.temp }}/viceroy-readiness
key: viceroy-readiness-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.viceroy-version.outputs.repair-key }}

- name: Build isolated Viceroy readiness repair
id: viceroy-repair
shell: bash
run: bash scripts/ci_viceroy.sh repair

- name: Provision official celld 0.6.3
id: celld
shell: bash
run: echo "binary=$(node scripts/fetch_official_celld.mjs "$RUNNER_TEMP/celld")" >> "$GITHUB_OUTPUT"

- name: Run portable record contracts
env:
VICEROY_BIN: ${{ steps.viceroy-repair.outputs.executable }}
CELLD_BIN: ${{ steps.celld.outputs.binary }}
run: |
openssl version
docker version --format '{{.Server.Version}}'
CARGO_NET_OFFLINE=true node scripts/run_portable_record_contract.mjs \
--output "$GITHUB_WORKSPACE/.runs/portable-record-contracts"

- name: Preserve portable record evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: portable-record-contract-evidence
path: .runs/portable-record-contracts/
include-hidden-files: true
if-no-files-found: ignore
retention-days: 14
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ async-trait = "0.1"
aws-config = { version = "=1.12.0", default-features = false, features = ["default-https-client", "rt-tokio", "credentials-process", "sso"] }
aws-sdk-dynamodb = { version = "=1.120.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-sdk-secretsmanager = { version = "=1.120.0", default-features = false, features = ["default-https-client", "rt-tokio"] }
aws-credential-types = "=1.3.0"
aws-sigv4 = { version = "=1.6.0", default-features = false, features = ["sign-http", "http1"] }
# Preserve the pinned behavior version in fresh warnings-denied consumers.
aws-smithy-runtime-api = { version = "=1.19.0", default-features = false, features = ["client"] }
# aws-config 1.12 uses smithy-schema 0.2; aws-types 1.7 crosses that type boundary.
Expand Down
14 changes: 10 additions & 4 deletions crates/edgezero-adapter-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ axum = [
"dep:reqwest",
"dep:redb",
]
native-bindings = ["dep:toml", "dep:edgezero-store-aws", "dep:edgezero-store-celld"]
native-bindings = [
"dep:toml",
"dep:edgezero-adapter",
"edgezero-adapter/store-bindings",
"dep:edgezero-store-aws",
"dep:edgezero-store-celld",
]
aws-appconfig-agent = ["axum", "edgezero-store-aws/appconfig-agent"]
aws-secrets-manager = ["axum", "edgezero-store-aws/secrets-manager"]
aws-stores = ["aws-appconfig-agent", "aws-secrets-manager"]
Expand All @@ -50,9 +56,7 @@ cli = [
test-utils = ["axum", "edgezero-core/test-utils", "dep:validator"]

[dependencies]
edgezero-adapter = { path = "../edgezero-adapter", optional = true, features = [
"cli",
] }
edgezero-adapter = { path = "../edgezero-adapter", optional = true }
edgezero-core = { path = "../edgezero-core" }
anyhow = { workspace = true }
async-trait = { workspace = true }
Expand Down Expand Up @@ -123,6 +127,8 @@ async-trait = { workspace = true }
axum = { workspace = true, features = ["macros"] }
edgezero-adapter-cloudflare = { path = "../edgezero-adapter-cloudflare", default-features = false }
edgezero-core = { path = "../edgezero-core", features = ["test-utils", "geo-kv-build"] }
edgezero-store-aws = { workspace = true, features = ["dynamodb-records-portable", "dynamodb-records"] }
edgezero-store-celld = { workspace = true, features = ["portable-records", "records"] }
flate2 = { workspace = true }
http-body = { workspace = true }
httparse = { workspace = true }
Expand Down
5 changes: 4 additions & 1 deletion crates/edgezero-adapter-axum/src/dev_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,10 @@ mod record_preparation_tests {
.unwrap();
record_plan.kv.insert(
"first",
NativeStoreSource::BuiltIn(NativeKvSource::DynamoDbRecords(settings)),
NativeStoreSource::BuiltIn(NativeKvSource::DynamoDbRecords {
settings,
pinned: None,
}),
);
assert!(
block_on(build_production_stores_with_records(
Expand Down
2 changes: 1 addition & 1 deletion crates/edgezero-adapter-axum/src/geo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ impl NativeGeoPlan {
.map_err(|_error| NativeGeoConfigError::InvalidSelection)?
}
Some(NativeStoreSource::BuiltIn(
NativeKvSource::DynamoDbRecords(_)
NativeKvSource::DynamoDbRecords { .. }
| NativeKvSource::CelldRecords { .. },
)) => return Err(NativeGeoConfigError::InvalidSelection),
Some(
Expand Down
Loading
Loading