CloudFront OAC与OAI对比:私有访问与源站治理
概览
- OAI 使用旧机制关联分发到 S3 私有桶;OAC 通过签名请求到任何源站,更灵活与安全。
技术参数(已验证)
- OAI:与 S3 建立信任;源站为 S3;配置较旧且受限。
- OAC:在边缘对源站签名并验证;支持任意源;与签名 URL/Cookie 协同。
- 迁移:从 OAI 迁移到 OAC;保持私有访问并简化多源配置。
- 安全:密钥管理与轮换;记录签名失败与异常;控制授权范围。
- 观测:记录命中与拒绝;在看板上可视化。
实战清单
- 新项目优先 OAC;旧项目评估迁移;统一密钥与策略。
- 在源站上开启签名验证与审计;在异常时回退。
- 文档化配置与迁移步骤;保障安全与可用性。
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2026-09-28 06:31:13 HTTP/2.0 GET : www.ybb.press/devops/1576.html
- 运行时间 : 0.395337s [ 吞吐率:2.53req/s ] 内存消耗:5,316.32kb 文件加载:115
- 查询信息 : 19 queries 2 writes
- 缓存信息 : 36 reads,3 writes
- 配置加载 : 80
- 会话信息 : SESSION_ID=ref6mli8te9dmb9p2jenh7vcot
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000072s ]
- [ CACHE ] INIT File
- [ BEHAVIOR ] Run \addons\cms\Cms @app_init [ RunTime:0.009515s ]
- [ BEHAVIOR ] Run \addons\fastchat\Fastchat @app_init [ RunTime:0.000171s ]
- [ BEHAVIOR ] Run \addons\log\Log @app_init [ RunTime:0.000418s ]
- [ BEHAVIOR ] Run \addons\shop\Shop @app_init [ RunTime:0.003582s ]
- [ BEHAVIOR ] Run \addons\yunping\Yunping @app_init [ RunTime:0.000609s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000773s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001556s ]
- [ LANG ] /www/wwwroot/yebinbing/thinkphp/lang/zh-cn.php
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000118s ]
- [ ROUTE ] array (
'type' => 'method',
'method' =>
array (
0 => '\\think\\addons\\Route',
1 => 'execute',
),
'var' =>
array (
'addon' => 'cms',
'controller' => 'archives',
'action' => 'index',
),
)
- [ HEADER ] array (
'cookie' => 'PHPSESSID=ref6mli8te9dmb9p2jenh7vcot',
'x-forwarded-proto' => 'https',
'cf-visitor' => '{"scheme":"https"}',
'cf-ipcountry' => 'US',
'cf-connecting-ip' => '216.73.216.103',
'cdn-loop' => 'cloudflare; loops=1',
'cf-ray' => 'a41df51eacac5a3a-CMH',
'accept-encoding' => 'gzip, br',
'accept' => '*/*',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])',
'x-forwarded-for' => '216.73.216.103',
'host' => 'www.ybb.press',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
'catename' => 'devops',
'id' => '1576',
)
- [ RUN ] think\addons\Route->execute[ /www/wwwroot/yebinbing/vendor/fastadminnet/fastadmin-addons/src/addons/Route.php ]
- [ LANG ] /www/wwwroot/yebinbing/public/../application/common/lang/zh-cn/addon.php
- [ BEHAVIOR ] Run app\common\behavior\Common @addon_begin [ RunTime:0.004614s ]
- [ LANG ] /www/wwwroot/yebinbing/addons/cms/lang/zh-cn.php
- [ DB ] INIT mysql
- [ VIEW ] /www/wwwroot/yebinbing/addons/cms/view/default/show_article.html [ array (
0 => 'config',
1 => 'user',
2 => 'site',
3 => '__CHANNEL__',
4 => 'isWechat',
5 => 'canonical_url',
6 => '__ARCHIVES__',
7 => '__MODEL__',
) ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'prefix' => 'think',
'type' => '',
'auto_start' => true,
)
- [ BEHAVIOR ] Run \addons\cms\Cms @view_filter [ RunTime:0.000406s ]
- [ BEHAVIOR ] Run \addons\shop\Shop @view_filter [ RunTime:0.000146s ]

0.400989s
发表评论 取消回复