资源 · 101
渐进式发布
新版本应在验证结果和恢复后扩大范围。
已更新 · 16 min
本指南有助于实现的目标
- 界定变更
- 选择对照
- 设定决策
- 演练恢复
- 结束跟踪
快速检查
- 有通用的初始发布比例吗?
- Kubernetes回滚会恢复数据库吗?
分步指南
- 1
界定变更
列出受影响的功能、语言及依赖。区分代码、配置和数据,识别回滚不能撤销的通知或付款。
交付物:范围与持续影响。
- 2
选择对照
确定初始人群和基准。包含设备及低频任务,根据需要观察的事件确定时长。
交付物:人群与观察窗口。
- 3
设定决策
启用前确定错误、延迟、有效结果和阈值。指定扩大、等待或停止的决策人;没有测量就不宣称成功。
交付物:标准与决策权限。
- 4
演练恢复
使用当前结构和数据测试旧版本。检查队列及缓存,对已经发生的影响进行核对处理。
交付物:已验证的恢复与残余影响。
- 5
结束跟踪
扩大后检查少数语言和延后任务。移除临时选项或指定负责人,保留决策记录。
交付物:结束记录。
可重复使用的工作表
填写您已授权的观察结果。 这些字段是工作模板,而非观察结果。
| 字段 | 待记录信息 |
|---|---|
| 变更 | 版本、数据及难以撤销的影响 |
| 对照 | 人群、基准、语言和时段 |
| 决策 | 来源、阈值、负责人和暂停条件 |
| 恢复 | 兼容性、队列、缓存和核对处理 |
虚构示例
示例情境
虚构示例:有限启用后整体指标稳定,但日语访问路径失败。汇总面板掩盖了这个人数较少的群体。
决策及预期证据
对受影响群体应用预设停止条件,检查采集并重测任务。恢复前使用当前结构测试旧版,区分数据恢复和已发生影响的修正。
管理指标
| 指标 | 衡量内容 | 首要行动 |
|---|---|---|
| 观察 | 结果可验证的场景 | 缺少测量时等待 |
| 恢复 | 回到可接受状态的场景 | 修正持续影响 |
常见错误
- 用整体平均证明每个语言版本正常
- 没有测量就扩大
- 混淆代码回滚与数据恢复
常见问题解答
有通用的初始发布比例吗?
没有。发布范围要能观察重要故障,同时限制后果。
Kubernetes回滚会恢复数据库吗?
不会。修订回滚的是Pod模板,而不是恢复全部数据或撤销外部影响。
构建签名与来源
此语言版本的详细参考说明以英语提供。
Before deployment: verify what was actually delivered
A version tag, signature and provenance file answer different questions. Preparing a progressive release means connecting received bytes to the attested artefact, then checking authorised identity, build platform and expected parameters. Functional observation and rollback remain separate checks.
This reference uses SLSA 1.2, in-toto Statement v1 and Sigstore documentation checked on 22 October 2026. Texts, .example domains and runs below are fictional. SHA-256 digests are calculated from two exact training strings; this page verifies no real signature, identity or platform. It assigns no SLSA level to this site or any supplier.
Six distinct pieces of evidence
| Element | Question it helps answer | Limit |
|---|---|---|
| Artefact digest | Do the bytes match an expected digest? | A digest alone identifies no trusted source. |
| Signature | Does signed content verify under the selected cryptographic material and roots? | A valid signature is insufficient if the signer is not authorised for this package. |
| Identity and OIDC issuer | Does the certificate match expected identity and issuer in a keyless workflow? | Checking only one of these expectations does not replace the full identity policy. |
| Build provenance | Which builder, build type and inputs are asserted for the artefact? | A JSON file’s presence proves neither issuer authenticity nor compliance with expectations. |
| SBOM and VEX | Which components and applicability assertions accompany the version? | These records replace neither provenance verification nor deployed-instance checks. |
| Deployment result | Does the accepted version work on relevant instances and scenarios? | Package authenticity establishes neither freedom from vulnerabilities nor absence of regressions. |
SLSA 1.2: four Build track reference points
The Build track concerns artefact production and provenance. SLSA 1.2 also distinguishes a Source track, so a Build level does not summarise every source-code control. This table is a reading guide rather than a complete conformity assessment.
| Build level | Specification reference point | Review consequence |
|---|---|---|
| L0 | No SLSA requirements. | Record the lack of guarantees rather than inferring assurance from a filename. |
| L1 | Provenance exists describing how the package was built. | Useful for release mistakes, but provenance may be incomplete or unsigned. |
| L2 | Provenance generated and signed by a hosted build platform; authenticity validated by the consumer. | Examine platform identity and roots of trust rather than a CI service logo alone. |
| L3 | Hardened platform, including run isolation and protection of signing material from user-defined build steps. | Trust in the platform remains an assumption to assess. A builder.id value alone does not demonstrate this level. |
Eight provenance reading checks
| Field or expectation | Role | Proposed check |
|---|---|---|
| _type | in-toto Statement version. | For this format expect https://in-toto.io/Statement/v1; distinguish it from the predicate type. |
| subject[].digest | Binding between Statement and artefact. | Compare the digest of the relevant bytes. Filename does not replace content matching. |
| predicateType | Provenance type and major version. | SLSA 1.2 retains https://slsa.dev/provenance/v1; do not substitute the v1.2 documentation page URL. |
| buildDefinition.buildType | Template defining the meaning of build parameters. | Match expected build type and its definition before interpreting fields. |
| buildDefinition.externalParameters | Externally controlled inputs, such as repository and source reference. | Compare defined expectations. SLSA recommends rejecting unrecognised or unexpected external parameters. |
| buildDefinition.resolvedDependencies | Resolved build dependencies, where known. | Do not assume completeness: the specification describes best-effort completeness, including Build L3. |
| runDetails.builder.id | Declared build-platform identity. | Connect it to verifier-configured roots and maximum trusted level. |
| runDetails.metadata | Build invocation identifier and times, when supplied. | Preserve useful investigation records; a plausible date is neither a signature nor deployment evidence. |
Keep parsing rules in scope: SLSA generally requires ignoring unrecognised fields unless otherwise specified. externalParameters have a specific verification rule: an unrecognised or unexpected parameter should fail verification. Rejecting every additional field, or silently ignoring every new external input, would conflate those rules.
Two fictional contents, one possible filename, two digests
The following strings use UTF-8 and a final LF newline. JSON notation makes that LF visible as \n; display quotes are not part of the bytes. This calculation demonstrates content difference only, without source authenticity or a signature.
| Example | Bytes in JSON notation | Calculated SHA-256 |
|---|---|---|
| A | "training-release=2.4.0\n" | 79724f6b7f6414c888ec8f3074830ffb132c152b80b30278089e30276549f6f9 |
| B | "training-release=2.4.1\n" | c5368b5e5afaebc2e407b6c685d3ea33f5a9a42775fba2be2ba6fe00d496922a |
Fictional JSON example: Statement and SLSA predicate
A structural example written for this page, without a signed envelope or compliance-engine validation. Its subject matches string A. Build type and builder are fictional. The empty dependencies array is not a complete SBOM.
{
"_type": "https://in-toto.io/Statement/v1",
"subject": [
{
"name": "training-release.txt",
"digest": {
"sha256": "79724f6b7f6414c888ec8f3074830ffb132c152b80b30278089e30276549f6f9"
}
}
],
"predicateType": "https://slsa.dev/provenance/v1",
"predicate": {
"buildDefinition": {
"buildType": "https://build.example/types/training-package/v1",
"externalParameters": {
"repository": "https://source.example/project",
"ref": "refs/tags/v2.4.0"
},
"resolvedDependencies": []
},
"runDetails": {
"builder": {
"id": "https://build.example/builders/training-release"
},
"metadata": {
"invocationId": "training-run-001",
"startedOn": "2026-10-22T09:00:00Z",
"finishedOn": "2026-10-22T09:02:00Z"
}
}
}
}This is not an actual attestation. A real review must separately establish digest matching, envelope verification, roots of trust and expectations for repository, builder and parameters. A delivery decision must then identify the artefact actually deployed.
Eight fictional cases before release acceptance
Same name, changed contents
Two files named training-release.txt contain strings A and B.
A’s provenance does not automatically apply to B: compare digests and seek evidence for received content.
Keep the name as a reference while binding content through its digest.
Valid signature, unexpected identity
The cryptographic check succeeds but the certificate names a signer outside the permitted identity.
Separate cryptographic success from policy acceptance. Examine expected identity and package authorisation.
Keep technical result and acceptance decision distinct.
Expected identity, different issuer
The identity text resembles the expected value but the OIDC issuer differs.
Compare both identity and issuer against keyless-workflow expectations and investigate the discrepancy.
A similar name does not replace verification of both values.
Accepted builder, different repository
A recognised platform declares a build from an unexpected fork.
Check expected canonical repository and source reference, with parameter meaning defined by buildType.
Trust in a platform does not make every input acceptable for every package.
A new external parameter appears
externalParameters contains an option absent from the consumption policy.
Apply the planned review or failure for an unknown input before any controlled change to expectations.
Distinguish this rule from general treatment of unknown format fields.
The dependency list is empty
resolvedDependencies is empty in the received example.
Establish what is known about build inputs and components rather than concluding there are no dependencies.
SBOM analysis and any recursive verification remain distinct tasks.
The tag now points to another artefact
A version was accepted under a readable tag; that tag later identifies different bytes.
Connect promotion and deployment to the accepted digest, then reassess changed content.
A version label alone does not establish artefact continuity across stages.
An authentic package causes a regression
Package origin is accepted but a business scenario fails during limited exposure.
Apply the guide’s stop and recovery criteria, considering data and effects already produced.
Build authenticity and functional acceptance answer different questions.
Six records to retain with a release
- Package reference and digest of bytes accepted, promoted and deployed.
- Provenance, associated envelope or bundle, format version and verifier result.
- Authorised identities, issuers and roots of trust, with policy version.
- Builder, buildType, repository and parameters compared with expectations, including investigated discrepancies.
- Decision, owner and limits: unresolved dependencies, complementary checks or an exception to review.
- Actual active version, limited-exposure scenario results and recovery-plan reference.
Primary sources and scope
- SLSA 1.2 · Build: Verifying artifacts · SLSA v1.2 · Approved · reviewed 2026-10-22
Check SLSA Build level · Check expectations · Forming Expectations - SLSA 1.2 · Build: Provenance · SLSA v1.2 · predicate https://slsa.dev/provenance/v1
Parsing rules · BuildDefinition · RunDetails · Builder - SLSA 1.2 · Build: Track Basics · Build track · L0–L3 · reviewed 2026-10-22
Build L1 · Build L2 · Build L3 · Source Track distinction - in-toto · Statement v1 · Statement v1 · reviewed 2026-10-22
_type · subject · digest · predicateType - Sigstore · Verifying Signatures · Living documentation · reviewed 2026-10-22
Keyless verification using OpenID Connect · artifact digest claims
Sources checked on
CSP:指令、回退与流程
此语言版本的详细参考说明以英语提供。
Deploy CSP with journey evidence
A monitored policy and an enforced policy have different effects. Server, CDN and proxy transformations may also result in several received policies.
- Preserve raw policies, mode, delivery and page version.
- Test sign-in, forms, payment and recovery within scope.
- Connect reports, defects and stop criteria before deciding on enforcement.
Read CSP fallback orders and explore eight scenarios →
W3C · Content Security Policy Level 3 · Mike West, Antonio Sartori · Working Draft · 2026-09-16 · work in progress · §2.2.1, §3, §6.8.3–6.8.4, §8.1
Core Web Vitals:阈值和实测数据
此语言版本的详细参考说明以英语提供。
After release: separate validation from field follow-up
A local result helps validate a fix; a 28-day CrUX window still contains earlier experiences.
- Compare the same device, scope and documented periods.
- Do not turn missing data into zero.
- Verify functions and accessibility after the fix.
Read the thresholds and try the p75 reader →
Google · About PageSpeed Insights · Living documentation · consulted 2026-10-23
官方参考文献
参考文献支持该方法。 请根据您的实际情况调整检查;它们并非认证。 原始参考文献标题和源文档可能使用其他语言。
参考资料查阅日期 .
- Google SRE Workbook — Canarying releases
- Kubernetes — Deployments
- SLSA 1.2 · Build: Verifying artifacts
- SLSA 1.2 · Build: Provenance
- SLSA 1.2 · Build: Track Basics
- in-toto · Statement v1
- Sigstore · Verifying Signatures
- Google · About PageSpeed Insights
- W3C · Content Security Policy Level 3 · Mike West, Antonio Sartori
