让七月迭代具备可直接部署的配置基线
补齐三套环境配置、测试环境部署门禁与 system_config 初始化,并按当前无企微应用的约束将企微凭据改为明文存储。 Constraint: 当前测试环境尚无企微应用及历史企微密文数据 Rejected: 使用启动环境变量加密企微凭据 | 用户明确要求直接明文保存并移除加密密钥 Confidence: high Scope-risk: moderate Directive: 企微真实闭环完成前保持两个旧审批入口开关为 true Tested: gofmt;git diff --check;bash -n;docker compose config;Gitea workflow YAML 解析;OpenAPI 重新生成 Not-tested: go test;常规 go build;LSP;实际数据库迁移;真实测试环境部署;企微真实联调
This commit is contained in:
15
migrations/000196_store_wecom_credentials_plaintext.down.sql
Normal file
15
migrations/000196_store_wecom_credentials_plaintext.down.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- 回滚到密文字段结构;当前无企微应用数据,不执行凭据转换。
|
||||
ALTER TABLE tb_wecom_application
|
||||
ADD COLUMN secret_ciphertext bytea NOT NULL DEFAULT ''::bytea,
|
||||
ADD COLUMN callback_token_ciphertext bytea NOT NULL DEFAULT ''::bytea,
|
||||
ADD COLUMN encoding_aes_key_ciphertext bytea NOT NULL DEFAULT ''::bytea;
|
||||
|
||||
ALTER TABLE tb_wecom_application
|
||||
DROP COLUMN secret,
|
||||
DROP COLUMN callback_token,
|
||||
DROP COLUMN encoding_aes_key;
|
||||
|
||||
COMMENT ON TABLE tb_wecom_application IS '企业微信自建应用安全连接配置';
|
||||
COMMENT ON COLUMN tb_wecom_application.secret_ciphertext IS '应用 Secret 的 AES-256-GCM 密文';
|
||||
COMMENT ON COLUMN tb_wecom_application.callback_token_ciphertext IS '回调 Token 的 AES-256-GCM 密文';
|
||||
COMMENT ON COLUMN tb_wecom_application.encoding_aes_key_ciphertext IS '回调 EncodingAESKey 的 AES-256-GCM 密文';
|
||||
Reference in New Issue
Block a user