Translated by AI
ខ្លឹមសារភាសាខ្មែរនេះត្រូវបានបកប្រែដោយ AI ហើយអាចមានកំហុស។ យើងណែនាំឱ្យសិក្សាជាភាសាអង់គ្លេស។
This Khmer content is translated by AI and may contain errors. We recommend studying in English.
Lộ trình đang họcCurrent learning pathCurrent learning path
Cloudflare OneCloudflare OneCloudflare One
Bảo vệ users, access, SaaS và networks — follow-along từ tài khoản đến go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.
Phần 1: Kiến trúc và tài khoảnPart 1: Architecture and accountPart 1: Architecture and account
·
Bài 3/3 Lesson 3/3 មេរៀន 3/3
Admin, vai trò và break-glassAdmins, roles, and break-glassAdmins, roles, and break-glass
Mô-đun 1b — Quản trị tài khoản & vai trò
Mục tiêu: Thiết lập đội quản trị đúng cách — đúng vai trò, cách thêm người an toàn, quyền theo nhóm, và (với tổ chức lớn) Organizations — để truy cập theo least-privilege và không ai bị khóa ra ngoài.
👤 Ai làm việc này
Chủ tài khoản / quản trị viên IT
⏱️ Thời gian
~20 phút
🎯 Kết thúc bạn sẽ có
Đúng quản trị viên, được gán phạm vi phù hợp, cộng một kế hoạch break-glass đã ghi lại
✋ Trước khi bắt đầu
Hoàn thành Mô-đun 1; bạn là Super Administrator có email đã xác minh
Đây là phần chuyên sâu tùy chọn, mở rộng Phần E của Mô-đun 1. Nếu bạn là nhóm một người đang đánh giá, một Super Admin dự phòng là đủ — quay lại đây khi sẵn sàng triển khai thật.
Cách quyền truy cập thực sự hoạt động (đọc phần này trước)
Có hai hệ thống quyền riêng biệt, và nhầm lẫn chúng gây ra hầu hết sự bối rối về truy cập:
Hệ thống
Kiểm soát
Bạn quản lý ở đâu
Account roles
Ai được quản trị Cloudflare (đổi thiết lập, thanh toán, chính sách)
Bảng điều khiển tài khoản → Manage Account → Members
Device enrollment permissions
Những người dùng cuối nào được kết nối thiết bị / xác thực vào tổ chức Zero Trust của bạn
💡 Quy tắc nhanh:Quản trị viên nhận account roles; nhân viên dùng dịch vụ nhận enrollment permissions + Access policies. Nhân viên không cần vai trò tài khoản để dùng WARP hoặc truy cập một ứng dụng.
Phần A — Chọn đúng vai trò
Khi bạn mời ai đó (Phần B), bạn gán một hoặc nhiều vai trò. Các vai trò phạm vi tài khoản phổ biến:
Vai trò
Có thể làm
Không thể làm
Gán cho
Super Administrator – All Privileges
Mọi thứ: tất cả thiết lập, mua hàng, billing, manage members, tạo account-owned API token, thu hồi Super Admin khác
—
Chỉ 2–3 chủ sở hữu đáng tin
Administrator
Truy cập toàn bộ tài khoản, sửa subscription/thiết lập
Manage members, sửa hồ sơ billing
Quản trị viên nền tảng hàng ngày
Administrator Read Only
Xem toàn bộ tài khoản ở chế độ chỉ đọc
Đổi bất cứ gì
Kiểm toán, phân tích, xem NOC
Analytics
Đọc analytics
Mọi thứ khác
Các bên liên quan cần báo cáo
Vai trò phạm vi tài nguyên (hẹp, least-privilege — rất hợp khi ủy quyền một việc):
Vai trò scoped
Giới hạn truy cập vào
Cloudflare Access Service Token Admin
Một Access service token cụ thể
Access for Infrastructure Target Admin
Một đích hạ tầng (SSH/RDP) cụ thể
Individual Cloudflare Tunnel instances
Một Cloudflare Tunnel cụ thể
Individual Cloudflare Mesh nodes
Một Cloudflare Mesh node cụ thể
⭐ Thực hành tốt — least privilege. Giữ Super Administrator cho một số ít người. Cho kỹ sư nền tảng vai trò Administrator, cho kiểm toán viên Administrator Read Only, và dùng vai trò phạm vi tài nguyên khi ai đó chỉ cần quản lý một tunnel hoặc token.
Phần B — Thêm thành viên (hai cách)
Bạn phải là Super Administrator có email đã xác minh để thêm thành viên.
Phương pháp 1 — Mời bằng email (dùng được trên mọi gói)
👉 Define the scope quyền truy cập của họ và choose one or more roles (xem Phần A).
👉 Nhấp Continue to summary → xem lại → Invite.
📺 Người đó hiện là Pending cho đến khi họ chấp nhận lời mời qua email.
💡 Gửi lại hoặc thu hồi: mở hồ sơ thành viên → Resend Invite (nếu vẫn đang pending) hoặc mở rộng → Revoke → xác nhận.
Phương pháp 2 — Direct Add (chỉ Enterprise)
Nếu người đó đã có tài khoản Cloudflare và bạn đang dùng Enterprise, bạn có thể thêm họ mà không cần vòng email:
👉 Members → Invite → nhập email của họ.
👉 Chọn Direct Add → gán vai trò → xác nhận. Họ có quyền ngay lập tức.
Chỉnh sửa hoặc gỡ sau này
Đổi vai trò: mở hồ sơ → Edit → điều chỉnh vai trò/phạm vi → Continue to summary → Update.
Gỡ ai đó: mở rộng hồ sơ của họ → Revoke → xác nhận.
Tự rời:Members → hồ sơ của bạn → Leave. ⚠️ Nếu bạn là Super Admin duy nhất, hãy mời một Super Admin khác trước khi rời.
Phần C — User groups (mở rộng quyền mà không lặp lại)
Thay vì gán cùng vai trò cho từng người, tạo một user group một lần rồi thêm người vào. Thành viên kế thừa mọi vai trò gán cho nhóm (cộng mọi vai trò gán trực tiếp cho họ).
👉 Bảng điều khiển tài khoản → Manage Account → Members → User groups (hoặc Account → Members, rồi tab Groups).
👉 Tạo một nhóm, ví dụ Security Admins, và gán các vai trò nhóm đó sẽ mang.
👉 Thêm thành viên vào nhóm.
💡 Mẹo: Groups làm onboarding/offboarding rất đơn giản — thêm hoặc gỡ một người khỏi nhóm thay vì sửa từng gán vai trò trên tài khoản.
Phần D — Organizations (Enterprise / MSSP / Distributors)
Nếu bạn quản lý nhiều tài khoản Cloudflare (doanh nghiệp lớn với vài tài khoản, hoặc nhà cung cấp dịch vụ quản trị), Organizations nằm phía trên các tài khoản:
Người dùng ban đầu trở thành Organization Super Administrator.
Thành viên Organization nhận implicit access — quyền Super Administrator tự động trên mọi tài khoản trong Organization, mà không cần thêm từng tài khoản.
Bất kỳ Organization Super Administrator nào cũng có thể thêm/gỡ Organization Super Admin khác.
Implicit access hiện là tất cả hoặc không có gì (không có implicit access chỉ đọc), và tách biệt với membership theo từng tài khoản sẵn có.
Chỉ liên quan nếu bạn vận hành hơn một tài khoản. Khách hàng một tài khoản có thể bỏ qua. Xem tài liệu Organizations của Cloudflare cho chi tiết Enterprise so với MSSP/Distributor.
Phần E — Account-owned API tokens (cho tự động hóa)
Khi bạn tự động hóa Cloudflare One bằng script, Terraform hoặc CI/CD, đừng gắn tự động hóa vào đăng nhập của một người.
👉 Chỉ Super Administrator mới tạo được account-owned API tokens.
👉 Bảng điều khiển tài khoản → Manage Account → API Tokens (account-owned) → Create Token.
👉 Giới hạn token ở minimum permissions cần thiết (ví dụ Access: Organizations, Identity Providers, and Groups — Edit cho tự động hóa IdP).
⚠️ Lưu ý: Coi token như mật khẩu — lưu trong secrets manager, đặt hạn dùng, và xoay vòng. Ưu tiên token account-owned hơn token cá nhân để tự động hóa vẫn chạy sau khi ai đó rời đi.
Phần F — Ghi lại kế hoạch break-glass
Đưa nội dung này vào runbook / kho mật khẩu:
BREAK-GLASS PLAN
[ ] Primary Super Admin: ____________________ (person)
[ ] Backup Super Admin: ____________________ (person or shared secured mailbox)
[ ] Both accounts have 2FA enabled and recovery codes stored in the vault
[ ] Break-glass credentials stored in: ____________________ (vault location)
[ ] "Restrict to account members" enabled on the Cloudflare IdP
[ ] Reviewed quarterly
⚠️ Lưu ý: Nếu sau này bạn đặt chính bảng điều khiển quản trị sau một Access policy, hãy đảm bảo danh tính break-glass luôn thỏa policy đó — nếu không một policy sai có thể khóa mọi người ra ngoài.
Phần G — Theo dõi (audit log)
Thay đổi tài khoản (thành viên, thiết lập): Bảng điều khiển tài khoản → Manage Account → Audit Log.
Hoạt động người dùng Zero Trust & phiên: Cloudflare One → Logs, và Insights → Dashboards (ví dụ Network session analytics) để thấy lưu lượng.
💡 Mẹo: Xem audit log sau mọi thay đổi quản trị và theo lịch đều đặn — đó là cách nhanh nhất để phát hiện một lần cấp quyền bất ngờ.
✅ Hoàn thành Mô-đun 1b!
Bây giờ bạn có:
✅ Quản trị viên được gán vai trò least-privilege (Super Admin giữ ít người)
✅ Cách thêm người lặp lại được (Invite hoặc Direct Add) và user groups để mở rộng
✅ Hiểu về Organizations (nếu bạn vận hành nhiều tài khoản)
✅ Account-owned API tokens cho tự động hóa
✅ Một kế hoạch break-glass đã viết và nơi theo dõi audit log
Khắc phục nhanh
Vấn đề
Cách khắc phục
"You must be a Super Administrator"
Chỉ Super Admin có email đã xác minh mới quản lý thành viên được — xác minh email hoặc nhờ Super Admin hiện có
Không dùng được Direct Add
Cần Enterprisevà người được mời đã có tài khoản Cloudflare; nếu không thì mời bằng email
Quản trị viên mới không đổi được thiết lập
Họ có thể đang có Administrator Read Only hoặc vai trò scoped — sửa vai trò của họ (Phần B)
Nhân viên xin "admin role" để dùng WARP
Họ không cần — người dùng cuối dùng enrollment permissions + Access policies, không phải account roles (xem ghi chú hai hệ thống ở trên)
Kết nối đăng nhập doanh nghiệp (Entra ID / Okta / Google) để nhân viên đăng nhập bằng danh tính công ty hiện có.
Module 1b — Account Administration & Roles
Goal: Set up your admin team the right way — the correct roles, safe ways to add people, group-based permissions, and (for larger orgs) Organizations — so access is least-privilege and nobody is ever locked out.
👤 Who does this
Account owner / IT administrator
⏱️ Time
~20 minutes
🎯 You'll finish with
The right admins, scoped correctly, plus a documented break-glass plan
✋ Before you begin
Module 1 complete; you're a Super Administrator with a verified email
This is an optional deep-dive that expands Part E of Module 1. If you're a one-person team just evaluating, a single backup Super Admin is enough — come back here when you're ready to roll out for real.
How access actually works (read this first)
There are two separate permission systems, and mixing them up causes most access confusion:
System
Controls
Where you manage it
Account roles
Who can administer Cloudflare (change settings, billing, policies)
Account dashboard → Manage Account → Members
Device enrollment permissions
Which end users may connect a device / authenticate to your Zero Trust org
💡 Rule of thumb:Admins get account roles; employees using the service get enrollment permissions + Access policies. An employee does not need an account role to use WARP or reach an app.
Part A — Choose the right roles
When you invite someone (Part B), you assign one or more roles. The common account-scoped roles:
Role
Can do
Cannot do
Give it to
Super Administrator – All Privileges
Everything: all settings, purchases, billing, manage members, create account-owned API tokens, revoke other Super Admins
—
2–3 trusted owners only
Administrator
Access the full account, edit subscriptions/settings
Manage members, edit billing profile
Day-to-day platform admins
Administrator Read Only
View the full account read-only
Change anything
Auditors, analysts, NOC view
Analytics
Read analytics
Everything else
Reporting stakeholders
Resource-scoped roles (narrow, least-privilege — great for delegating one thing):
Scoped role
Limits access to
Cloudflare Access Service Token Admin
A specific Access service token
Access for Infrastructure Target Admin
A specific infrastructure (SSH/RDP) target
Individual Cloudflare Tunnel instances
One specific Cloudflare Tunnel
Individual Cloudflare Mesh nodes
One specific Cloudflare Mesh node
⭐ Best practice — least privilege. Keep Super Administrator to a small number of people. Give platform engineers Administrator, give auditors Administrator Read Only, and use resource-scoped roles when someone only needs to manage one tunnel or token.
Part B — Add members (two ways)
You must be a Super Administrator with a verified email to add members.
👉 Define the scope of their access and choose one or more roles (see Part A).
👉 Click Continue to summary → review → Invite.
📺 The person shows as Pending until they accept the email invitation.
💡 Resend or revoke: open the member's record → Resend Invite (if still pending) or expand → Revoke → confirm.
Method 2 — Direct Add (Enterprise only)
If the person already has a Cloudflare account and you're on Enterprise, you can add them without an email round-trip:
👉 Members → Invite → enter their email.
👉 Choose Direct Add → assign roles → confirm. They gain access immediately.
Editing or removing later
Change roles: open the record → Edit → adjust roles/scope → Continue to summary → Update.
Remove someone: expand their record → Revoke → confirm.
Remove yourself:Members → your record → Leave. ⚠️ If you're the only Super Admin, invite another Super Admin before you leave.
Part C — User groups (scale permissions without repeating yourself)
Instead of assigning the same roles to person after person, create a user group once and add people to it. Members inherit all roles assigned to the group (plus any assigned to them directly).
👉 Account dashboard → Manage Account → Members → User groups (or Account → Members, then the Groups tab).
👉 Create a group, e.g. Security Admins, and assign the roles it should carry.
👉 Add members to the group.
💡 Tip: Groups make onboarding/offboarding trivial — add or remove one person from the group instead of editing individual role assignments across the account.
Part D — Organizations (Enterprise / MSSP / Distributors)
If you manage multiple Cloudflare accounts (a large enterprise with several accounts, or a managed-service provider), Organizations sit above accounts:
The initial user becomes the Organization Super Administrator.
Organization members get implicit access — automatic Super Administrator permissions on every account in the Organization, without being added to each one individually.
Any Organization Super Administrator can add/remove other Organization Super Admins.
Implicit access is all-or-nothing today (no read-only implicit access), and is separate from any existing per-account membership.
This is only relevant if you operate more than one account. Single-account customers can skip it. See Cloudflare's Organizations docs for Enterprise vs. MSSP/Distributor specifics.
Part E — Account-owned API tokens (for automation)
When you automate Cloudflare One with scripts, Terraform, or CI/CD, don't tie automation to a person's login.
👉 Only a Super Administrator can create account-owned API tokens.
👉 Scope the token to the minimum permissions needed (e.g. Access: Organizations, Identity Providers, and Groups — Edit for IdP automation).
⚠️ Watch out: Treat tokens like passwords — store them in a secrets manager, set expiries, and rotate them. Prefer account-owned tokens over personal ones so automation keeps working after someone leaves.
Part F — Document your break-glass plan
Put this in your runbook / password vault:
BREAK-GLASS PLAN
[ ] Primary Super Admin: ____________________ (person)
[ ] Backup Super Admin: ____________________ (person or shared secured mailbox)
[ ] Both accounts have 2FA enabled and recovery codes stored in the vault
[ ] Break-glass credentials stored in: ____________________ (vault location)
[ ] "Restrict to account members" enabled on the Cloudflare IdP
[ ] Reviewed quarterly
⚠️ Watch out: If you later put the admin dashboard itself behind an Access policy, make sure your break-glass identity can always satisfy that policy — otherwise a bad policy can lock everyone out.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
TutorialTutorialTutorialCloudflare OneCloudflare OneCloudflare One
Với Cloudflare cách ly trình duyệt và các chính sách giải quyết, người dùng có thể kết nối với các ứng dụng dựa trên web riêng tư thông qua tên máy chủ riêng của họ.
With Cloudflare Browser Isolation and resolver policies, users can connect to private web-based applications via their private hostnames.
Sử dụng mạng riêng của Cloudflare Tunnel, người dùng có thể kết nối với các ứng dụng dựa trên TCP/UDP, chẳng hạn như cơ sở dữ liệu. Bạn có thể thiết lập chính sách mạng thực hiện các điều khiển zero trust để xác định ai và những gì access có thể sử dụng các ứng dụng đó bằng cách sử dụng Cloudflare One Client.
Using Cloudflare Tunnel's private networks, users can connect to arbitrary non-browser based TCP/UDP applications, like databases. You can set up network policies that implement zero trust controls to define who and what can access those applications using the Cloudflare One Client.
ដោយប្រើបណ្តាញឯកជនរបស់ Cloudflare Tunnel អ្នកប្រើប្រាស់អាចភ្ជាប់ទៅកម្មវិធី TCP/UDP ដែលមានមូលដ្ឋានលើកម្មវិធីរុករកតាមអំពើចិត្ត ដូចជាមូលដ្ឋានទិន្នន័យជាដើម។ អ្នកអាចរៀបចំគោលការណ៍បណ្តាញដែលអនុវត្តការគ្រប់គ្រង zero trust ដើម្បីកំណត់ថាតើនរណា និងអ្វីដែលអាច access កម្មវិធីទាំងនោះដោយប្រើ Cloudflare One Client ។
Hướng dẫn này cho thấy cách tạo một API cho phép bạn chạy truy vấn an toàn chống lại một cơ sở dữ liệu D1. API có thể được sử dụng để tùy chỉnh các điều khiển access và/hoặc giới hạn các bảng có thể được truy vấn.
This tutorial shows how to create an API that allows you to securely run queries against a D1 database. The API can be used to customize access controls and/or limit what tables can be queried.
ការបង្រៀននេះបង្ហាញពីរបៀបបង្កើត API ដែលអនុញ្ញាតឱ្យអ្នកដំណើរការសំណួរដោយសុវត្ថិភាពប្រឆាំងនឹងមូលដ្ឋានទិន្នន័យ D1 ។ API អាចត្រូវបានប្រើដើម្បីប្ដូរតាមបំណង access គ្រប់គ្រង និង/ឬកំណត់តារាងដែលអាចសួរបាន។
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.