Self-hosted deployment
August 14, 2026 ยท View on GitHub
- Enable WeCom Conversation Content Archive under the customer's policy and configure employee notice/external-party consent as required.
- Register the archive RSA public key with WeCom. Inject every matching private key version through a customer secret manager.
- Install the official Finance SDK only in a loopback-local sidecar. The sidecar
implements
/get_chat_dataand/decrypt_dataas described in the source. - Provision encrypted PostgreSQL storage/backups and apply
infra/postgres/migrations/001_initial.sql. - Put TLS and network authentication in front of the service. Use a separate
token for
/v1/admin/sync.
The reference PostgreSQL provider keeps encrypted payloads and performs a
bounded, authorized candidate scan before decryption. It deliberately does not
silently add a plaintext full-text projection. Larger installations should
replace ArchiveSearchRepository with a separately assessed search provider.
Treat SYNC_*, CRYPTO_*, audit-chain, consent, and database errors as
fail-closed incidents: repair the dependency and retry; do not skip records.