Skip to content

docs: add TiDB Cloud Filesystem product documentation - #23876

Open
Icemap wants to merge 1 commit into
pingcap:release-8.5from
Icemap:docs/filesystem-product
Open

Icemap wants to merge 1 commit into
pingcap:release-8.5from
Icemap:docs/filesystem-product

Conversation

@Icemap

@Icemap Icemap commented Sep 15, 2026

Copy link
Copy Markdown
Member

What is changed, added or deleted? (Required)

Add dedicated English documentation for TiDB Cloud Filesystem in public preview, using the TiDB Cloud CLI (ti) throughout.

  • Add Introduction and Quick Start pages with API-key and Filesystem-token authentication paths.
  • Add a non-clickable Mounting Locally group with Overview, Linux, macOS, and Docker / Docker Compose pages.
  • Explain authorization, sharing Filesystems across environments, and branches and checkpoints.
  • Add TOC-tidb-cloud-filesystem.md and link the product introduction from the AI overview. Reuse existing CLI reference, regions, and troubleshooting pages.
  • Keep implementation-specific companion names out of the new product documentation.

Validation: Markdown lint passed for all changed pages and the TOC. Local validation covered internal links, shell example syntax, CLI flags, and the sidebar structure. An isolated Gatsby production preview containing the Filesystem and AI pages built successfully.

Publishing: the companion website change adds Product > TiDB Cloud Filesystem after TiDB Cloud Lake and publishes these pages under /tidbcloud-filesystem/. Merge these docs and propagate them to docs-staging before deploying that navigation.

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)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 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)?

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
    • Added comprehensive documentation for TiDB Cloud Filesystem, including setup, quick start, authorization, sharing, mounting, and troubleshooting.
    • Added platform-specific mounting guides for Linux, macOS, and Docker.
    • Added guidance for branches, checkpoints, forks, and committing changes.
    • Documented supported regions, access methods, token usage, and current platform limitations.
    • Linked TiDB Cloud Filesystems from the AI agents and automation documentation.

@ti-chi-bot

ti-chi-bot Bot commented Sep 15, 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 assign jackysp for approval. 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

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 15, 2026
@Icemap

Icemap commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Companion website PR: pingcap/website-docs#736

That PR adds Product > TiDB Cloud Filesystem after TiDB Cloud Lake, plus the /tidbcloud-filesystem/ route and dedicated sidebar. This PR supplies the documentation and TOC.

Please merge this content and let it propagate to docs-staging before deploying the website change, so the new product entry does not lead to a 404.

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

📝 Walkthrough

Walkthrough

Adds a complete TiDB Cloud Filesystem documentation set. It covers setup, direct CLI access, local and container mounts, authorization, sharing, and layer/checkpoint workflows. It also adds navigation links from the AI documentation.

Changes

TiDB Cloud Filesystem documentation

Layer / File(s) Summary
Documentation entry points and quick start
TOC-tidb-cloud-filesystem.md, ai/_index.md, tidb-cloud-filesystem/_index.md, tidb-cloud-filesystem/filesystem-quick-start.md
Adds navigation, an overview page, public-preview notes, prerequisites, supported regions, and a CLI quick start.
Local and container mounting
tidb-cloud-filesystem/filesystem-mount*.md
Documents direct file access and mounting on Linux, macOS, Docker, and Docker Compose, including draining and unmounting behavior.
Authorization and Filesystem sharing
tidb-cloud-filesystem/filesystem-authorization.md, tidb-cloud-filesystem/filesystem-sharing.md
Documents API keys, owner and scoped tokens, credential lifecycle, cross-machine sharing, handoff, and revocation.
Layers and checkpoints
tidb-cloud-filesystem/filesystem-branches-checkpoints.md
Documents layers, forks, checkpoints, commits, parallel drafts, historical review, and preview limitations.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: 🔵 Low · up to e3808

Filesystem documentation entry points need a valid deployed route, and the Docker instructions should clarify that read-only mounts do not replace token permissions. These are localized documentation corrections before publication.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Title check ✅ Passed The title clearly and concisely describes the primary change: adding TiDB Cloud Filesystem product documentation.
Description check ✅ Passed The description covers the required change summary, target TiDB version, related links, AI involvement, and applicable change categories. It provides detailed validation and publishing context.
✨ 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: Advanced

Run ID: 411618d2-681d-4647-9206-a1ec4fdfed88

📥 Commits

Reviewing files that changed from the base of the PR and between 6acba5d and e380811.

📒 Files selected for processing (11)
  • TOC-tidb-cloud-filesystem.md
  • ai/_index.md
  • tidb-cloud-filesystem/_index.md
  • tidb-cloud-filesystem/filesystem-authorization.md
  • tidb-cloud-filesystem/filesystem-branches-checkpoints.md
  • tidb-cloud-filesystem/filesystem-mount-docker.md
  • tidb-cloud-filesystem/filesystem-mount-linux.md
  • tidb-cloud-filesystem/filesystem-mount-macos.md
  • tidb-cloud-filesystem/filesystem-mount.md
  • tidb-cloud-filesystem/filesystem-quick-start.md
  • tidb-cloud-filesystem/filesystem-sharing.md

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.

ls "$HOME/workspace"
```

For a token restricted to a subtree, add the matching `--remote-path`, for example `/workspace`. Add `--read-only` for a read-only token. Keep the application and mount under the same OS user. If your application image uses a non-root user, install dependencies while building the image and mount as the application user at runtime.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- target context ---'
sed -n '85,115p' tidb-cloud-filesystem/filesystem-mount-docker.md
printf '%s\n' '--- relevant definitions and references ---'
rg -n -C 3 --glob '!node_modules' --glob '!dist' --glob '!build' -- '--read-only|remote-path|read.only|token' .

Repository: pingcap/docs

Length of output: 50371


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- target ---'
sed -n '96,110p' tidb-cloud-filesystem/filesystem-mount-docker.md
printf '%s\n' '--- mount reference ---'
sed -n '1,125p' ai/ti/reference/ti-fs-mount-file-system.md
printf '%s\n' '--- scoped-token reference ---'
sed -n '1,110p' ai/ti/reference/ti-fs-generate-file-system-scoped-token.md

Repository: pingcap/docs

Length of output: 11087


Security Misconfiguration

Reachability: External
Exploitability: Moderate
CWE: CWE-732 — Incorrect Permission Assignment for Critical Resource

Keep token permissions separate from --read-only.

--read-only only makes the local mount read-only. It does not make the token read-only or replace the token's server-enforced permissions.

Committable replacement
- For a token restricted to a subtree, add the matching `--remote-path`, for example `/workspace`. Add `--read-only` for a read-only token. Keep the application and mount under the same OS user. If your application image uses a non-root user, install dependencies while building the image and mount as the application user at runtime.
+ For a token restricted to a subtree, add the matching `--remote-path`, for example `/workspace`. Add `--read-only` to prevent local write attempts; it does not replace the token's server-enforced permissions. Keep the application and mount under the same OS user. If your application image uses a non-root user, install dependencies while building the image and mount as the application user at runtime.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
For a token restricted to a subtree, add the matching `--remote-path`, for example `/workspace`. Add `--read-only` for a read-only token. Keep the application and mount under the same OS user. If your application image uses a non-root user, install dependencies while building the image and mount as the application user at runtime.
For a token restricted to a subtree, add the matching `--remote-path`, for example `/workspace`. Add `--read-only` to prevent local write attempts; it does not replace the token's server-enforced permissions. Keep the application and mount under the same OS user. If your application image uses a non-root user, install dependencies while building the image and mount as the application user at runtime.

Comment on lines +8 to +14
- [Introduction](/tidb-cloud-filesystem/_index.md)
- [Quick Start](/tidb-cloud-filesystem/filesystem-quick-start.md)
- Mounting Locally
- [Overview](/tidb-cloud-filesystem/filesystem-mount.md)
- [Linux](/tidb-cloud-filesystem/filesystem-mount-linux.md)
- [macOS](/tidb-cloud-filesystem/filesystem-mount-macos.md)
- [Docker and Docker Compose](/tidb-cloud-filesystem/filesystem-mount-docker.md)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix the Filesystem TOC links or add the published route mapping. The link checker sends /tidb-cloud-filesystem/... directly to https://docs.pingcap.com/tidb-cloud-filesystem/..., and the tested entry points return 404. The proposed /tidbcloudfs/ path also currently returns 404, so use the actual deployed route or add a redirect before changing these links.

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

Labels

missing-translation-status This PR does not have translation status info. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant