Skip to content

byoc: update onboarding content - #23393

Open
wildpcww wants to merge 10 commits into
pingcap:release-8.5from
wildpcww:updatecontent4caandautodeploy
Open

byoc: update onboarding content#23393
wildpcww wants to merge 10 commits into
pingcap:release-8.5from
wildpcww:updatecontent4caandautodeploy

Conversation

@wildpcww

@wildpcww wildpcww commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

First-time contributors' checklist

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Updated the automated BYOC deployment guide with a clear four-stage deployment process.
    • Clarified resource ownership, customer AWS billing responsibilities, and the separation of observability infrastructure from the data plane.
    • Documented that deployments do not create TiDB pools or instances.
    • Updated AWS preparation requirements to include creating and installing a subordinate CA signed by an active root CA, with at least 20 years of certificate validity.

@wildpcww
wildpcww requested review from csuzhangxc and lilin90 July 31, 2026 03:52
@ti-chi-bot ti-chi-bot Bot added contribution This PR is from a community contributor. missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 31, 2026
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The BYOC documentation now describes four deployment stages, resource ownership, validation, and customer AWS billing. The AWS preparation guide now requires a subordinate CA signed by an active root CA with at least 20 years of validity.

Changes

BYOC deployment documentation

Layer / File(s) Summary
Deployment model and AWS prerequisites
tidb-cloud/byoc/byoc-automated-deployment.md, tidb-cloud/byoc/byoc-prepare-environment-aws.md
The guides define four deployment stages, Amazon ECR image synchronization, resource ownership, and subordinate CA requirements.
Management and customer infrastructure provisioning
tidb-cloud/byoc/byoc-automated-deployment.md
The guide separates TiDB Cloud-managed management-plane resources from customer-side observability infrastructure. It clarifies that the infrastructure does not create the TiDB data plane.
Region registration and deployment completion
tidb-cloud/byoc/byoc-automated-deployment.md
The guide documents region registration, health and connectivity validation, readiness for instance creation, and customer AWS billing.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: csuzhangxc

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The required change summary is empty, and no related links are provided. Describe the documentation changes and their purpose, and add relevant related PR or file links.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies that the pull request updates BYOC onboarding content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8de38a81-895b-4bea-8522-b7e5711404fb

📥 Commits

Reviewing files that changed from the base of the PR and between 2e1cff6 and 914baad.

📒 Files selected for processing (2)
  • tidb-cloud/byoc/byoc-automated-deployment.md
  • tidb-cloud/byoc/byoc-prepare-environment-aws.md

Comment on lines +15 to +17
## Deployment overview

### Step 1: Image synchronization (approx. 1-2 hours)
The automated deployment consists of the following stages:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Update the renamed anchor or preserve compatibility.

The new heading creates #deployment-overview, but tidb-cloud/byoc/byoc-prepare-environment-aws.md Line 161 still links to byoc-automated-deployment.md#deployment-process. The link will no longer resolve. Update that link to #deployment-overview, or preserve the old anchor as an explicit alias.

Comment on lines +93 to +95
Therefore, you must prepare a valid subordinate CA in the deployment region. The CA ARN that you provide to TiDB Cloud must be the subordinate CA ARN. To create and activate the subordinate CA, you need an active root CA to sign the subordinate CA certificate.

1. **Create a CA.** Follow [Create a private CA in AWS Private CA](https://docs.aws.amazon.com/privateca/latest/userguide/create-CA.html).
The subordinate CA certificate must be valid for at least **20 years**. Make sure that the root CA used to sign the subordinate CA can support this validity period.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate and inspect the relevant Markdown document and related statements.
FILE="tidb-cloud/byoc/byoc-prepare-environment-aws.md"
if [ -f "$FILE" ]; then
  echo "== file exists =="
  true
else
  echo "missing $FILE"
  exit 0
fi

echo "== around lines 85-165 =="
sed -n '85,165p' "$FILE" | nl -ba -v85

echo "== PCA/ARN sharing/search occurrences =="
rg -n -i 'PCA|private certificate authority|subordinate CA|deployment Region|Region|cross|same|shared|ARN|certificate authority' "$FILE"

Repository: pingcap/docs

Length of output: 235


🌐 Web query:

AWS Private Certificate Authority CA Regional resource create CA in same Region cannot copy CA across Regions

💡 Result:

AWS Private Certificate Authority (CA) resources are strictly regional [1][2][3]. This means that a CA created in one AWS Region cannot be copied, moved, or replicated to another Region [1][2]. If you require a CA hierarchy or private certificate issuance capabilities across multiple Regions, you must explicitly create and manage separate CAs within each of those Regions [1][4][2]. To achieve a multi-Region setup, you can implement a CA hierarchy by: 1. Creating a root CA in one Region [4][5]. 2. Creating subordinate CAs in the required target Regions [4][5]. 3. Using the root CA in the first Region to sign the certificate signing requests (CSRs) for the subordinate CAs in the other Regions [4][6]. 4. Importing the signed certificates back into their respective Regions to complete the subordinate CA installation [4][6]. This process allows you to maintain a unified PKI structure across different geographic locations while adhering to the regional architecture of the service [4][5][6].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

FILE="tidb-cloud/byoc/byoc-prepare-environment-aws.md"
if [ -f "$FILE" ]; then
  printf '%s\n' "== exact lines 85-165 =="
  awk 'NR>=85 && NR<=165 {printf "%5d\t%s\n", NR, $0}' "$FILE"

  printf '%s\n' "== PCA/ARN/region search =="
  rg -n -i 'PCA|private certificate authority|subordinate CA|deployment region|Region|cross|same|shared|ARN|certificate authority|Certificate Authority|root CA' "$FILE"
else
  printf '%s\n' "missing $FILE"
fi

Repository: pingcap/docs

Length of output: 12584


Resolve the subordinate CA region-scope contradiction.

Line 93 requires a subordinate CA in the deployment Region, but Line 116 and the summary table row at Line 158 state that the same PCA/ARN can be shared across Regions. AWS Private CA resources are regional, so a single subordinate CA ARN cannot be copied or used across Regions unless TiDB Cloud documents a supported regional replication/chain mechanism.

Define the supported BYOC behavior consistently. If each deployment Region needs its own subordinate CA, remove the cross-region sharing statements and collect one ARN per Region. If customers can use one ARN across Regions, remove “in the deployment region” and document the supported mechanism.

@lilin90 lilin90 self-assigned this Jul 31, 2026
@lilin90 lilin90 added BYOC Related to TiDB Cloud BYOC docs. translation/no-need No need to translate this PR. labels Jul 31, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Jul 31, 2026
@lilin90 lilin90 changed the title update onboarding content byoc: update onboarding content Jul 31, 2026
Comment thread tidb-cloud/byoc/byoc-automated-deployment.md Outdated
@ti-chi-bot

ti-chi-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from lilin90. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tidb-cloud/byoc/byoc-automated-deployment.md (1)

91-91: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Describe billing as beginning when resources become billable.

The current wording implies that AWS billing starts only after the deployment completes. AWS can bill resources during deployment. For example, NAT Gateway charges begin when the gateway is provisioned, and EC2 usage is billed when instances are running. (docs.aws.amazon.com)

- AWS starts charging your account as customer-owned resources become billable during deployment. Charges continue after deployment for resources such as Amazon EKS, EC2, NAT Gateway, load balancers, and storage.

As per path instructions, this Markdown issue includes a committable suggestion for the contiguous changed line.

Sources: Path instructions, MCP tools


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9a91484c-b5c6-4499-b9be-8243fac8b9d8

📥 Commits

Reviewing files that changed from the base of the PR and between 914baad and 181e032.

📒 Files selected for processing (1)
  • tidb-cloud/byoc/byoc-automated-deployment.md

Comment thread tidb-cloud/byoc/byoc-prepare-environment-aws.md Outdated
Comment thread tidb-cloud/byoc/byoc-prepare-environment-aws.md Outdated
Comment thread tidb-cloud/byoc/byoc-prepare-environment-aws.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tidb-cloud/byoc/byoc-automated-deployment.md (1)

78-84: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Correct the billing timing for customer-owned BYOC resources.

“After the automated deployment completes” currently limits the AWS billing note. Steps 2 and 3 deploy VPC, EKS, EC2, NAT Gateway, load balancers, and storage during the process, so billing should not be framed as starting only after completion.

Proposed replacement
- AWS starts charging your account for the customer-owned resources created during deployment, such as Amazon EKS, EC2, NAT Gateway, load balancers, and storage.
+ AWS charges your account for customer-owned resources as they are provisioned during deployment, such as Amazon EKS, EC2, NAT Gateway, load balancers, and storage.

Sources: Path instructions, MCP tools


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e4e4182a-e324-45c4-96eb-1fb7303656e4

📥 Commits

Reviewing files that changed from the base of the PR and between 181e032 and 5df8408.

📒 Files selected for processing (1)
  • tidb-cloud/byoc/byoc-automated-deployment.md

Comment thread tidb-cloud/byoc/byoc-automated-deployment.md
Comment thread tidb-cloud/byoc/byoc-automated-deployment.md Outdated
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jul 31, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-07-31 09:37:55.277453322 +0000 UTC m=+2175261.313548388: ☑️ agreed by lilin90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BYOC Related to TiDB Cloud BYOC docs. contribution This PR is from a community contributor. needs-1-more-lgtm Indicates a PR needs 1 more LGTM. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants