33 lines
1.8 KiB
Markdown
33 lines
1.8 KiB
Markdown
# Backend deployment notes
|
|
|
|
Before saving any `secret=true` value in `sys_integration_config`, configure
|
|
`APP_INTEGRATION_ENCRYPTION_KEY` (preferably a randomly generated 32-byte or
|
|
longer secret) in the backend runtime environment. Do not commit the key or
|
|
place a real value in `src/main/resources/application.yml`.
|
|
|
|
For rollout and operations of asynchronous Feishu directory synchronization,
|
|
see [`../docs/feishu-directory-sync.md`](../docs/feishu-directory-sync.md).
|
|
|
|
## Database contract
|
|
|
|
[`../database/init_schema.sql`](../database/init_schema.sql) is the only schema
|
|
and bootstrap source. Run it with a MySQL 5.7 client only when
|
|
`finance_system` does not yet exist. It intentionally fails against an existing
|
|
or partial installation. The application keeps Hibernate `ddl-auto: validate`
|
|
and never changes the application-owned schema during startup. The optional,
|
|
explicitly authorized Kingdee table-preparation feature can create or alter only
|
|
its configured target tables; use a narrowly scoped DDL account for that action
|
|
or have a DBA pre-create those tables and keep the runtime account DML-only.
|
|
Existing installations require a separately reviewed DBA release script and
|
|
procedure for every in-place upgrade; never run the clean-install script against
|
|
them.
|
|
|
|
The sole script intentionally seeds exactly one environment-specific Feishu
|
|
identity and binds it to the built-in `SUPER_ADMIN_GROUP`. Treat the script as an
|
|
access-controlled deployment asset, verify that the identity is the intended
|
|
operator, and edit it before installing another tenant. The seed has no local
|
|
password, mobile, email, or avatar URL; it receives `SUPER_ADMIN` only through
|
|
group membership, while `DEFAULT_EMPLOYEE` has no materialized member. Default
|
|
passwords, local-profile bootstrap, and first-user auto-promotion remain
|
|
prohibited.
|