Skip to content

chore: clean up host code and protect SSO secrets - #1356

Merged
pgherveou merged 7 commits into
mainfrom
chore/account-holder-prep
Oct 12, 2026
Merged

pgherveou merged 7 commits into
mainfrom
chore/account-holder-prep

Conversation

@pgherveou

@pgherveou pgherveou commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator
  • Use canonical truapi::latest payload imports and direct test imports.
  • Add zeroization on drop and secret-redacted Debug derives to existing SSO types.
  • Simplify comments and expressions across the host code.
  • Enforce Polkadot SDK Rust formatting with edition 2024 and JS host Prettier rules in CI; direct runtime feature gates let cargo fmt cover the runtime module tree.

@pgherveou pgherveou added the no-changeset No published artifact changes; changeset not required label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This pull request touches an app, which is not built by default. Add a label for each build you want:

  • iOS simulator build, ios-simulator-build: builds the iOS app, runs its tests and attaches a build for the iOS Simulator on a Mac.
  • iOS device build, ios-device-build: attaches a signed build that installs on a registered iPhone or iPad.
  • Android build, android-device-build: attaches an APK that installs on an Android phone or an emulator.

Each starts as soon as it is added and follows the branch from then on.

@github-actions github-actions Bot added documentation Improvements or additions to documentation javascript Pull requests that update javascript code rust Pull requests that update rust code host-ios Touches the iOS host tree host-android Touches the Android host tree labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size report

Compared with main at 7944c68.

Raw Gzip Brotli
truapi-host 7.87 MiB (+445 B) 5.65 MiB (+77 B) 5.38 MiB (-2.2 KiB)
truapi-provider 4.03 MiB 1.27 MiB (-1 B) 960.2 KiB (+365 B)
truapi 6.02 MiB 850.8 KiB 697.1 KiB
Total 17.92 MiB (+445 B) 7.76 MiB (+76 B) 7.00 MiB (-1.9 KiB)

WebAssembly modules

Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.76 MiB (+445 B) 982.9 KiB (+76 B) 740.6 KiB (-2.2 KiB, -0.3%)
truapi-host/wasm/web/truapi_verifiable_bg.wasm 4.89 MiB 4.64 MiB 4.61 MiB
truapi-provider/truapi_provider_bg.wasm 3.99 MiB 1.26 MiB (-1 B) 952.4 KiB (+365 B)
Changed files (1)
Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.76 MiB (+445 B) 982.9 KiB (+76 B) 740.6 KiB (-2.2 KiB, -0.3%)

Commit: 636c15c

@pgherveou pgherveou removed the no-changeset No published artifact changes; changeset not required label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

CI Status: 24 required jobs green, 23 passed and 1 skipped by path filter.

All job results
job result
android-bindings success
bundle-size success
changes success
changeset-guard success
cli-package success
codegen success
e2e skipped
explorer success
headless-install success
host-android-bindings success
host-android-detekt success
host-wasm success
ios-bindings success
ios-swift success
licenses success
playground success
provider-android-bindings success
release-guard success
rust success
ts-client success
ts-debugger success
ts-host success
wasm-provider success
workflow-lint success

Signing credentials: failure as of 2026-10-12, a release may fail

Commit 636c15cb · run log

@pgherveou pgherveou changed the title chore: prepare account-holder refactor chore: clean up host code and protect SSO secrets Oct 9, 2026
@pgherveou
pgherveou marked this pull request as ready for review October 9, 2026 10:02
@pgherveou
pgherveou requested a review from a team October 9, 2026 10:02
@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Oct 9, 2026
@pgherveou
pgherveou force-pushed the chore/account-holder-prep branch 3 times, most recently from 2ad19cc to 3966462 Compare October 12, 2026 12:55
@pgherveou
pgherveou force-pushed the chore/account-holder-prep branch 4 times, most recently from 67bb52f to bd3143b Compare October 12, 2026 14:28
@pgherveou
pgherveou force-pushed the chore/account-holder-prep branch from bd3143b to 32b376d Compare October 12, 2026 15:03
@pgherveou
pgherveou force-pushed the chore/account-holder-prep branch from 32b376d to e303415 Compare October 12, 2026 15:08
Expose runtime modules with direct cfg attributes so cargo fmt
can traverse them without a custom formatting pass.
@pgherveou
pgherveou force-pushed the chore/account-holder-prep branch from e303415 to 9134522 Compare October 12, 2026 15:18
@pgherveou
pgherveou enabled auto-merge October 12, 2026 16:08
@pgherveou
pgherveou disabled auto-merge October 12, 2026 16:15
…s into chore/account-holder-prep

# Conflicts:
#	Makefile
#	js/packages/truapi-host/src/worker-runtime.ts
#	rust/crates/truapi-codegen/src/rust/wasm_bridge.rs
#	rust/crates/truapi-codegen/src/rustdoc.rs
#	rust/crates/truapi-host-cli/src/chat.rs
#	rust/crates/truapi-host-cli/src/main.rs
#	rust/crates/truapi/src/api/chat.rs
#	rust/crates/truapi/src/host_core.rs
#	rust/crates/truapi/src/lib.rs
#	rust/crates/truapi/src/native.rs
#	rust/crates/truapi/src/native/platform.rs
#	rust/crates/truapi/src/native/runtime.rs
#	rust/crates/truapi/src/native/tests.rs
#	rust/crates/truapi/src/platform.rs
#	rust/crates/truapi/src/platform/mock.rs
#	rust/crates/truapi/src/runtime.rs
#	rust/crates/truapi/src/runtime/actions.rs
#	rust/crates/truapi/src/runtime/capabilities/platform.rs
#	rust/crates/truapi/src/runtime/capabilities/scanner.rs
#	rust/crates/truapi/src/runtime/services.rs
#	rust/crates/truapi/src/runtime/tests.rs
#	rust/crates/truapi/src/wasm.rs
@pgherveou
pgherveou added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 59ea7aa Oct 12, 2026
43 checks passed
@pgherveou
pgherveou deleted the chore/account-holder-prep branch October 12, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation github_actions Pull requests that update GitHub Actions code host-android Touches the Android host tree host-ios Touches the iOS host tree javascript Pull requests that update javascript code rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants