{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"这篇解决什么问题"}]},{"type":"text","value":"：账号上「谁改了什么、谁看过什么」怎么查，控制台怎么查、接口怎么查，\n以及控制台导出按钮那个坑。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"审计日志回答的是：我账号上的东西会不会在我不知情的情况下被改动，或被人查看。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"它记哪些事"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"审计日志记的是整个账号的流水账，内容授权只是其中一部分。下面这些变化全都记在这里，每条\n都标明是你自己改的，还是平台代你改的："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"价格改动（见 "},{"type":"element","tagName":"a","properties":{"href":"cost-prices"},"children":[{"type":"text","value":"进价"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"路由改动（见 "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"路由"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"计费方式改动（见 "},{"type":"element","tagName":"a","properties":{"href":"billing"},"children":[{"type":"text","value":"计费规则"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"额度上限改动（见 "},{"type":"element","tagName":"a","properties":{"href":"limits"},"children":[{"type":"text","value":"限流与配额"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"凭据改动（见 "},{"type":"element","tagName":"a","properties":{"href":"auth"},"children":[{"type":"text","value":"API Key"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"平台读取已留存调用内容的每一次授权（见 "},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":"）"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"一把 key 自己的治理设置改动也走同一套记录：累计额度、来源 IP 白名单及其开关、DLP 设置、\n绑定的 Router、到期时间、名称、停用。这些恰好是攻击者拿到一把 key 之后第一件会去改的东西。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:audit-trail-what-is-logged","alt":"审计日志记的是整个账号的流水账","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"如果改动是用一把 API key 发起的（不是登录会话），记录里会写明是哪把 key 改的。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"给一把 key 开关演习（mock）同样会留痕。生产流量悄悄开始返回假数据，之后一定会有人\n要你解释那段时间发生了什么。见 "},{"type":"element","tagName":"a","properties":{"href":"mock"},"children":[{"type":"text","value":"演习（Mock）"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"控制台怎么查"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"进入 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Security"}]},{"type":"text","value":" → "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Activity"}]},{"type":"text","value":"。原来 Audit Trail 的地址会打开这个页签。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"按活动类型筛选。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"按时间范围筛选。默认留空表示不限时间，不是「最近 24 小时」。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"翻页查看。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"用页面上的导出按钮导出 CSV。"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Activity 页签上的 "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Export this page"}]},{"type":"text","value":" 按钮只导当前这一页（50 行）。"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"要导全部范围，得自己调\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events/export"}]},{"type":"text","value":"，不能靠点控制台。"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"接口怎么查"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"审计日志属于控制台与管理类接口，根路径是 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/audit"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"接口"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"用途"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"读回这份审计流水"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events/export"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"导出同一份数据（要全量导出时用它，不要用控制台按钮）"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events"}]},{"type":"text","value":" 不止能回答「给我看全部」，也能回答更窄的问题："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"按类别筛选"}]},{"type":"text","value":"：传 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"group="}]},{"type":"text","value":"，取值："}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"group"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"只看哪一类"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"security"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"安全相关"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"dlp"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"数据保护相关"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"access"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"访问相关"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"config"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"配置改动"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"staff"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"平台代你做的改动"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"换成一份安全报告"}]},{"type":"text","value":"：传 "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"view=summary&days=30"}]},{"type":"text","value":"，就不看逐条记录，直接拿到一份安全报告，\n含指定时间窗口内按天的汇总、命中了哪些实体类型、来自哪些 key、拒绝了哪些来源地址。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"下一步"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"想搞清内容留存和查看授权本身：读 "},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"想搞清来源 IP 白名单这类 key 设置：读 "},{"type":"element","tagName":"a","properties":{"href":"auth"},"children":[{"type":"text","value":"API Key"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"想搞清 DLP 命中记录：读 "},{"type":"element","tagName":"a","properties":{"href":"security"},"children":[{"type":"text","value":"数据保护（DLP）"}]},{"type":"text","value":"。"}]},{"type":"text","value":"\n"}]}]}