Commit Graph
6 Commits
Author SHA1 Message Date
chenxing 58aadaa95a feat(flow): 迁 yh-flow-callback starter + 对接抄送与条件路由判断端点
build / build-push (push) Successful in 1m8s
迁 starter(2026-09-20 方案):删手写 OapiFlowCallbackController/FlowCallbackService,改 NoticeFlowCallbackHandler 实现 SPI;验签/eventId 幂等/乱序门交 starter 管线,yml 切中央密钥链(trust-registry)
抄送(2026-09-24):flow.cc.sent 落 notice_cc 表 + GET /api/notice/cc/My 应用内「抄送给我的」;未发布通知可见守卫加第 4 条「被抄送人」
条件路由(2026-09-24):POST /oapi/notice/flow/route/dept-judge(纯读幂等;formData 优先免查库;未命中 outlets 抛错绝不默认放行);apply 的 formData 带发文部门(deptId/deptName)
IT 验签确定性:NoticeFlowApiIT/FlowCallbackTransientIT 属性覆盖回落白名单(trusted-apps.100019),不再依赖本地 Redis 密钥内容
生产 DDL:deploy/sql/20260924_add_notice_cc.sql;mvn test 114 全绿
2026-09-24 01:19:26 +08:00
chenxing 01ce87ed7a feat(app-auth): Notice 入站验签由白名单改走中央密钥链(注册表模式)
- pom 显式引 spring-boot-starter-data-redis(yh-app-auth 的该依赖是 optional、不传递);
  删掉原先"不引 redis"的注释
- application.yml:去掉 trusted-apps 白名单,改 trust-registry: true —— 共享 Redis
  sign:app:* 单一真源,凡在 UserBase 注册过的 appKey 自动可验,新增调用方不必再改配置+重启;
  并关掉 management.health.redis.enabled(防 Redis 抖动把 /actuator/health 拉成 DOWN 503)
- 配套(projman 配置,非本仓):notice 应用勾选 redis 中间件(注入 SPRING_REDIS_*)+
  application-prod.yml 同步去白名单/开 trust-registry。缺任一环都会 fail-closed 到全 401

前置:UserBase 已部署 ①(密钥链落 db0,refreshAll synced=10),flow-center 生产身份 100009 已在
application_info 注册,故回调验签可从注册表解析。
2026-09-16 18:56:30 +08:00
chenxing 5384a08475 接入平台 env-config:新增 PropertyEnvConfigSource 激活免登录 GET /api/env-config?target=front(线上值经 YH_ENV_CONFIG_SOURCE_FRONT / Nacos 键注入,projman 维护);新增 EnvConfigApiIT 真实端口验证匿名旁路 CAS(surefire 追加 *IT,连本地 bsch_notice_test 自动建库)
build / build-push (push) Successful in 2m30s
2026-09-08 22:10:56 +08:00
chenxing 2c8125a549 移除未使用的 redis/cache 依赖,修复 /actuator/health 整体 DOWN
build / build-push (push) Successful in 53s
2026-09-03 11:40:50 +08:00
chenxing 9351d6e9ab 健康检测
build / build-push (push) Successful in 1m16s
2026-09-03 10:06:58 +08:00
chenxing 40dd7fadea init local code 2026-08-24 17:37:10 +08:00