让七月迭代具备可直接部署的配置基线
补齐三套环境配置、测试环境部署门禁与 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.up.sql
Normal file
15
migrations/000196_store_wecom_credentials_plaintext.up.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- 当前环境尚未创建企微应用,直接将企微连接凭据改为明文存储。
|
||||
ALTER TABLE tb_wecom_application
|
||||
ADD COLUMN secret varchar(512) NOT NULL DEFAULT '',
|
||||
ADD COLUMN callback_token varchar(512) NOT NULL DEFAULT '',
|
||||
ADD COLUMN encoding_aes_key varchar(43) NOT NULL DEFAULT '';
|
||||
|
||||
ALTER TABLE tb_wecom_application
|
||||
DROP COLUMN secret_ciphertext,
|
||||
DROP COLUMN callback_token_ciphertext,
|
||||
DROP COLUMN encoding_aes_key_ciphertext;
|
||||
|
||||
COMMENT ON TABLE tb_wecom_application IS '企业微信自建应用连接配置';
|
||||
COMMENT ON COLUMN tb_wecom_application.secret IS '企业微信自建应用 Secret 明文';
|
||||
COMMENT ON COLUMN tb_wecom_application.callback_token IS '企业微信回调 Token 明文';
|
||||
COMMENT ON COLUMN tb_wecom_application.encoding_aes_key IS '企业微信回调 EncodingAESKey 明文';
|
||||
Reference in New Issue
Block a user