syncplaned

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

syncplaned runs the sync engine as a multi-app host: a server.Manager routes the public sync surface by a leading "/<appID>" path segment, while a separate, private listener serves the trusted AdminService for runtime schema registration (gated by a bearer TokenAuthorizer).

Apps have no compiled entities here — their schema arrives at runtime as a FileDescriptorSet over AdminService.Register, is persisted, and is reloaded on restart. The integration suite spawns this and reads both addresses from stdout.

Trust posture

This binary is a demo/development host and belongs behind a trusted boundary. It installs no Authenticator and no Permissions, so every caller is anonymous and the default AllowAll admits them into any workspace of any app; the admin listener is gated only by its bearer token and must stay on a private interface.

A production host embeds the same Manager and supplies both, sharing one authenticator across apps and giving each app its own policy:

server.WithServerOptions(server.WithAuthenticator(auth))
server.WithAppOptions(func(appID string) []server.Option { ... })

Those seams are not exposed as flags here because a policy is code, not configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL