Chính sách trình duyệt trên máy tính

Triển khai và xác minh các chính sách Chrome được hỗ trợ cho trình duyệt tích hợp trên máy tính

Sử dụng tính năng quản lý thiết bị di động (MDM) để cấu hình trình duyệt tích hợp trong ứng dụng ChatGPT trên máy tính. Chọn một chính sách từ danh sách được hỗ trợ, sau đó tra cứu tên và định dạng giá trị của chính sách đó trong tài liệu tham khảo chính sách Chrome Enterprise trước khi triển khai. Kiểm tra nền tảng và phiên bản trình duyệt của từng chính sách.

Nếu bạn đã quản lý Chrome, quy trình triển khai này sẽ quen thuộc. Chrome hỗ trợ cả triển khai chính sách theo thiết bị và quản lý trình duyệt trên đám mây thông qua Google Admin. ChatGPT trên máy tính hiện hỗ trợ triển khai theo thiết bị thông qua MDM, Group Policy hoặc các công cụ quản lý cấu hình; tính năng quản lý các chính sách trình duyệt này trên đám mây chưa được hỗ trợ.

Trên cùng một hệ điều hành, nội dung và định dạng chính sách không thay đổi. Điểm khác biệt chính là vị trí triển khai chính sách trên thiết bị: hãy sử dụng các khóa registry, miền tùy chọn hoặc thư mục chính sách của ChatGPT trên máy tính thay cho các vị trí tương ứng của Chrome.

Vị trí chính sách theo nền tảng

Nền tảng Định dạng chính sách Vị trí của Chrome Vị trí của ChatGPT trên máy tính
Windows Các giá trị và khóa registry SOFTWARE\Policies\Google\Chrome SOFTWARE\Policies\OpenAI\Codex
macOS Tùy chọn được quản lý trong một hồ sơ cấu hình com.google.Chrome com.openai.codex
Linux Các tệp JSON trong thư mục chính sách bắt buộc /etc/opt/chrome/policies/managed/ /etc/opt/codex/policies/managed/

Các định danh của ChatGPT trên máy tính vẫn chứa Codex hoặc codex. Hãy sử dụng chính xác như được chỉ ra.

  • Windows: Sử dụng HKEY_LOCAL_MACHINE cho tất cả người dùng trên thiết bị hoặc HKEY_CURRENT_USER cho một người dùng cụ thể. Sử dụng định dạng registry Windows của Chrome cho các giá trị và danh sách. Các mẫu quản trị tiêu chuẩn (ADMX) của Chrome nhắm đến Chrome; hãy sử dụng cài đặt registry tùy chỉnh cho ChatGPT trên máy tính.
  • macOS: Triển khai các khóa chính sách và giá trị danh sách thuộc tính của chúng dưới dạng tùy chọn được quản lý trong com.openai.codex. Hồ sơ nhắm đến miền của Chrome không áp dụng cho ChatGPT trên máy tính.
  • Linux: Triển khai các tệp JSON trực tiếp vào /etc/opt/codex/policies/managed/. Sử dụng /etc/opt/codex/policies/recommended/ cho các chính sách hỗ trợ giá trị mặc định mà người dùng có thể thay đổi.

Hướng dẫn dành cho quản trị viên

Ví dụ về chính sách

Các ví dụ dưới đây cấu hình hai chính sách:

Chính sách Giá trị ví dụ Tác dụng
PasswordManagerEnabled false Ngăn lưu mật khẩu mới. Các mật khẩu đã lưu không bị xóa.
CookiesBlockedForUrls ["https://example.com"] Ngăn https://example.com đặt cookie. Không chặn quyền truy cập vào trang web.

Thay các ví dụ này bằng cài đặt của tổ chức bạn.

Windows: Microsoft Intune hoặc Group Policy

Đối với Microsoft Intune, hãy lưu nội dung sau dưới dạng tập lệnh PowerShell và thêm vào Platform scripts. Tập lệnh này ghi các chính sách bắt buộc cho tất cả người dùng trên thiết bị:

$ErrorActionPreference = 'Stop'
$policyRoot = 'HKLM:\SOFTWARE\Policies\OpenAI\Codex'
if (-not (Test-Path -LiteralPath $policyRoot)) {
  New-Item -Path $policyRoot -Force | Out-Null
}
New-ItemProperty -Path $policyRoot -Name PasswordManagerEnabled -PropertyType DWord -Value 0 -Force | Out-Null
$cookieKey = "$policyRoot\CookiesBlockedForUrls"
if (-not (Test-Path -LiteralPath $cookieKey)) {
  New-Item -Path $cookieKey -Force | Out-Null
}
New-ItemProperty -Path $cookieKey -Name '1' -PropertyType String -Value 'https://example.com' -Force | Out-Null

Trong Microsoft Intune Platform scripts, đặt Run this script using the logged on credentials thành No và Run script in 64-bit PowerShell host thành Yes, sau đó gán tập lệnh cho nhóm triển khai thử nghiệm của bạn. Sau khi tập lệnh chạy, hãy khởi động lại ChatGPT trên máy tính và xác minh các chính sách.

Đối với Group Policy, hãy tạo các mục tùy chọn Registry có cùng khóa, tên giá trị, kiểu và giá trị như trong tập lệnh, rồi áp dụng cho các thiết bị triển khai thử nghiệm.

Định dạng giá trị registry:

  • Đúng hoặc sai: REG_DWORD, với 0 là sai và 1 là đúng.
  • Danh sách chuỗi: Tạo một khóa con có tên theo chính sách. Đánh số các giá trị REG_SZ của khóa, bắt đầu từ 1. Khi cập nhật danh sách, hãy xóa các giá trị được đánh số không còn áp dụng.
  • Chính sách có cấu trúc: Làm theo cách mã hóa Windows trong tài liệu tham khảo chính sách. Ví dụ: ExtensionSettings lưu từ điển của mình dưới dạng chuỗi JSON trong một giá trị REG_SZ.

Đối với chính sách theo người dùng, hãy sử dụng cùng đường dẫn trong HKEY_CURRENT_USER và triển khai trong ngữ cảnh của người dùng cần áp dụng. Tập lệnh chạy dưới quyền SYSTEM không ghi vào HKEY_CURRENT_USER của người dùng đang đăng nhập. Đối với các chính sách hỗ trợ giá trị mặc định được đề xuất, hãy sử dụng khóa con có tên Recommended bên dưới khóa gốc của ChatGPT trên máy tính.

Hồ sơ cấu hình macOS

Tạo một hồ sơ cấu hình đặt tùy chọn được quản lý áp đặt (bắt buộc) trong miền com.openai.codex. Đối với Jamf Pro, trước tiên hãy lưu nội dung sau thành com.openai.codex.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>PasswordManagerEnabled</key>
  <false/>
  <key>CookiesBlockedForUrls</key>
  <array>
    <string>https://example.com</string>
  </array>
</dict>
</plist>
  • Jamf Pro: Sử dụng payload Application & Custom Settings của hồ sơ cấu hình máy tính, tải danh sách thuộc tính lên và đặt miền tùy chọn thành com.openai.codex. Xem hướng dẫn về cài đặt tùy chỉnh.
  • Microsoft Intune: Tạo hồ sơ macOS Templates → Preference file và đặt Preference domain name thành com.openai.codex. Với hồ sơ này, chỉ lưu các cặp khóa-giá trị bên trong <dict> ngoài cùng của ví dụ; bỏ phần khai báo XML, DOCTYPE, <plist> và các thẻ <dict> ngoài cùng. Giữ nguyên <array> lồng bên trong. Xem hướng dẫn về tệp tùy chọn của Intune.
  • Các công cụ MDM khác: Sử dụng quy trình tùy chỉnh tùy chọn được quản lý của công cụ hoặc triển khai hồ sơ .mobileconfig tương đương cho miền này.

Gán hồ sơ cho các thiết bị triển khai thử nghiệm và xác nhận quá trình cài đặt. Khởi động lại ChatGPT trên máy tính và xác minh các chính sách. Hãy sử dụng tùy chọn được quản lý: tùy chọn người dùng thông thường được ghi bằng defaults write không làm cho chính sách trở thành bắt buộc.

Quản lý cấu hình Linux

Sử dụng một công cụ như Ansible, Puppet hoặc Chef để đưa tệp chính sách JSON đến các thiết bị, tương tự như với Chrome.

  1. Tạo /etc/opt/codex/policies/managed/ nếu cần.
  2. Triển khai tệp JSON trực tiếp vào thư mục đó bằng công cụ quản lý cấu hình, gói hoặc tác nhân quản lý thiết bị của bạn.
  3. Đặt chủ sở hữu của các thư mục và tệp là root, cho phép người dùng ChatGPT trên máy tính đọc và chỉ cho phép quản trị viên đáng tin cậy ghi. Quyền thông thường là 0755 cho thư mục và 0644 cho tệp.
  4. Khởi động lại ChatGPT trên máy tính và xác minh các chính sách.

Ví dụ /etc/opt/codex/policies/managed/browser.json:

{
  "PasswordManagerEnabled": false,
  "CookiesBlockedForUrls": ["https://example.com"]
}

Sử dụng giá trị boolean, số, mảng và đối tượng JSON theo yêu cầu của từng chính sách. Đặt tệp trực tiếp trong managed/; các thư mục lồng bên trong sẽ không được đọc. Tránh định nghĩa cùng một chính sách trong nhiều tệp.

Xác minh các chính sách

  1. Xác nhận rằng công cụ triển khai đã đưa các giá trị registry, hồ sơ đã cài đặt hoặc tệp JSON đến thiết bị triển khai thử nghiệm.
  2. Thoát và mở lại ChatGPT trên máy tính. Mở một thẻ trình duyệt trong ứng dụng và truy cập chrome://policy bên trong ChatGPT trên máy tính.
  3. Chọn Reload policies. Kiểm tra giá trị, nguồn, phạm vi, cấp độ và trạng thái của từng chính sách. Với các ví dụ bắt buộc, nguồn dự kiến là Platform, cấp độ là Mandatory và không có lỗi chính sách.
  4. Kiểm thử hành vi mong muốn trong trình duyệt đó. Việc chính sách xuất hiện trên trang này xác nhận rằng chính sách đã được đọc; riêng điều đó chưa chứng minh tính năng chịu ảnh hưởng hoạt động như mong muốn.

Một số chính sách yêu cầu khởi động lại toàn bộ ứng dụng ngay cả sau khi tải lại chính sách. Hoàn tất các bước kiểm tra thử nghiệm trước khi mở rộng triển khai.

Nếu thiếu một chính sách, hãy kiểm tra cách viết tên, vị trí đích, việc gán và quyền đọc. Nếu chính sách báo lỗi hoặc bị bỏ qua, hãy kiểm tra kiểu giá trị, nền tảng và cấp độ chính sách được hỗ trợ, cùng mọi chính sách xung đột được báo cáo trên chrome://policy.

Để thay đổi hoặc xóa một chính sách, hãy cập nhật cấu hình triển khai đã cung cấp chính sách đó và xóa các mục registry hoặc khóa trong tệp không còn dùng. Nếu bạn đã sử dụng tập lệnh, hãy xóa các giá trị do tập lệnh ghi trước khi hủy gán tập lệnh. Khởi động lại ChatGPT trên máy tính và xác minh lại.

Tài liệu tham khảo về các chính sách được hỗ trợ

Trình duyệt trong ứng dụng ChatGPT trên máy tính hỗ trợ 244 chính sách được liệt kê dưới đây. Để tìm hiểu mục đích, các giá trị được chấp nhận và thông tin nền tảng của từng chính sách, hãy tra cứu tên chính sách trong danh sách chính sách Chrome Enterprise của Google.

A–C

  • AccessControlAllowMethodsInCORSPreflightSpecConformant
  • AIModeSettings
  • AllowDeletingBrowserHistory
  • AllowedDomainsForApps
  • AllowSystemNotifications
  • AllowWebAuthnWithBrokenTlsCerts
  • AlternateErrorPagesEnabled
  • AlwaysOpenPdfExternally
  • AudioCaptureAllowed
  • AudioCaptureAllowedUrls
  • AuthNegotiateDelegateAllowlist
  • AuthServerAllowlist
  • AutofillAddressEnabled
  • AutofillCreditCardEnabled
  • AutoFillEnabled
  • AutofillSettings
  • AutoLaunchProtocolsFromOrigins
  • AutomaticDownloadsAllowedForUrls
  • AutomaticDownloadsBlockedForUrls
  • AutomaticFullscreenAllowedForUrls
  • AutomaticFullscreenBlockedForUrls
  • AutoOpenAllowedForURLs
  • AutoOpenFileTypes
  • AutoplayAllowed
  • AutoplayAllowlist
  • AutoSelectCertificateForUrls
  • BlockExternalExtensions
  • BlockThirdPartyCookies
  • BoundSessionCredentialsEnabled
  • CACertificates
  • CACertificatesWithConstraints
  • CacheEncryptionEnabled
  • CADistrustedCertificates
  • CAHintCertificates
  • CAPlatformIntegrationEnabled
  • CloudAPAuthEnabled
  • ComponentUpdatesEnabled
  • CompressionDictionaryTransportEnabled
  • CookiesAllowedForUrls
  • CookiesBlockedForUrls
  • CORSNonWildcardRequestHeadersSupport
  • CpuPerformanceTierOverride

D–F

  • DataUrlInSvgUseEnabled
  • DataUrlInWebWorkerOpaqueOriginEnabled
  • DefaultAutomaticDownloadsSetting
  • DefaultIdleDetectionSetting
  • DefaultImagesSetting
  • DefaultJavaScriptJitSetting
  • DefaultJavaScriptOptimizerSetting
  • DefaultJavaScriptSetting
  • DefaultLocalFontsSetting
  • DefaultMediaStreamSetting
  • DefaultNotificationsSetting
  • DefaultPopupsSetting
  • DefaultPrinterSelection
  • DefaultSearchProviderAlternateURLs
  • DefaultSearchProviderContextMenuAccessAllowed
  • DefaultSearchProviderName
  • DefaultSearchProviderNewTabURL
  • DefaultSearchProviderSearchURLPostParams
  • DefaultSearchProviderSuggestURL
  • DefaultSearchProviderSuggestURLPostParams
  • DefaultSensorsSetting
  • DefaultSerialGuardSetting
  • DefaultWebBluetoothGuardSetting
  • DefaultWebHidGuardSetting
  • DefaultWebUsbGuardSetting
  • DefaultWindowManagementSetting
  • DefaultWindowPlacementSetting
  • Disable3DAPIs
  • DisabledSchemes
  • DisablePrintPreview
  • DNSInterceptionChecksEnabled
  • DownloadRestrictions
  • EditBookmarksEnabled
  • EnableMediaRouter
  • EnableOnlineRevocationChecks
  • EncryptedClientHelloEnabled
  • EnterpriseHardwarePlatformAPIEnabled
  • ExemptDomainFileTypePairsFromFileTypeDownloadWarnings
  • ExtensionAllowedTypes
  • ExtensionDeveloperModeSettings
  • ExtensionExtendedBackgroundLifetimeForPortConnectionsToUrls
  • ExtensionInstallAllowlist
  • ExtensionInstallBlocklist
  • ExtensionInstallForcelist
  • ExtensionInstallSources
  • ExtensionInstallTypeBlocklist
  • ExtensionSettings
  • ExtensionUnpublishedAvailability
  • ExternalProtocolDialogShowAlwaysOpenCheckbox
  • FileOrDirectoryPickerWithoutGestureAllowedForOrigins
  • ForceForegroundPriorityForUrls
  • ForceGoogleSafeSearch
  • ForceSafeSearch
  • ForceYouTubeRestrict
  • ForceYouTubeSafetyMode

G–L

  • GeolocationBlockedForUrls
  • HSTSPolicyBypassList
  • HttpAllowlist
  • HttpHeaderInjection
  • HttpsUpgradesEnabled
  • IdleDetectionAllowedForUrls
  • IdleDetectionBlockedForUrls
  • ImagesAllowedForUrls
  • ImagesBlockedForUrls
  • ImportHistory
  • ImportSavedPasswords
  • IsolateOrigins
  • JavaScriptAllowedForUrls
  • JavaScriptBlockedForUrls
  • JavascriptEnabled
  • JavaScriptJitAllowedForSites
  • JavaScriptJitBlockedForSites
  • JavaScriptOptimizerAllowedForSites
  • JavaScriptOptimizerBlockedForSites
  • LocalFontsAllowedForUrls
  • LocalFontsBlockedForUrls
  • LocalNetworkAccessAllowedForUrls
  • LocalNetworkAccessBlockedForUrls
  • LocalNetworkAccessIpAddressSpaceOverrides
  • LocalNetworkAccessRestrictionsTemporaryOptOut
  • LocalNetworkAllowedForUrls
  • LocalNetworkBlockedForUrls
  • LookalikeWarningAllowlistDomains
  • LoopbackNetworkAllowedForUrls
  • LoopbackNetworkBlockedForUrls

M–P

  • ManagedBookmarks
  • ManagedConfigurationPerOrigin
  • NativeHostsExecutablesLaunchDirectly
  • NativeMessagingAllowlist
  • NativeMessagingBlocklist
  • NativeMessagingUserLevelHosts
  • NetworkPredictionOptions
  • NotificationsAllowedForUrls
  • NotificationsBlockedForUrls
  • OopPrintDriversAllowed
  • OriginAgentClusterDefaultEnabled
  • PartitionedBlobUrlUsage
  • PasswordLeakDetectionEnabled
  • PasswordManagerBlocklist
  • PasswordManagerEnabled
  • PaymentMethodQueryEnabled
  • PdfAnnotationsEnabled
  • PdfLocalFileAccessAllowedForDomains
  • PdfUseSkiaRendererEnabled
  • PdfViewerOutOfProcessIframeEnabled
  • PolicyDictionaryMultipleSourceMergeList
  • PopupsAllowedForUrls
  • PopupsBlockedForUrls
  • PreferSlowCiphers
  • PreferSlowKexAlgorithms
  • PrefetchWithServiceWorkerEnabled
  • PrinterTypeDenyList
  • PrintHeaderFooter
  • PrintingAllowedBackgroundGraphicsModes
  • PrintingBackgroundGraphicsDefault
  • PrintingEnabled
  • PrintingLPACSandboxEnabled
  • PrintingPaperSizeDefault
  • PrintPdfAsImageAvailability
  • PrintPdfAsImageDefault
  • PrintPostScriptMode
  • PrintPreviewUseSystemDefaultPrinter
  • PrintRasterizationMode
  • PrintRasterizePdfDpi
  • PromptOnMultipleMatchingCertificates
  • ProxyBypassList
  • ProxyMode
  • ProxyPacUrl
  • ProxyServer
  • ProxyServerMode
  • ProxySettings

Q–S

  • QuicAllowed
  • ReduceAcceptLanguageEnabled
  • RegisteredProtocolHandlers
  • RelaunchFastIfOutdated
  • RelaunchNotification
  • RelaunchNotificationPeriod
  • RelaunchWindow
  • RemoteDebuggingAllowed
  • RequireOnlineRevocationChecksForLocalAnchors
  • RestrictYouTubeCookiesDeletion
  • SameOriginTabCaptureAllowedByOrigins
  • SandboxExternalProtocolBlocked
  • ScreenCaptureAllowed
  • ScreenCaptureAllowedByOrigins
  • ScreenCaptureWithoutGestureAllowedForOrigins
  • ScrollToTextFragmentEnabled
  • SearchSuggestEnabled
  • SecurityKeyPermitAttestation
  • SensorsAllowedForUrls
  • SensorsBlockedForUrls
  • SerialAllowAllPortsForUrls
  • SerialAllowUsbDevicesForUrls
  • SerialAskForUrls
  • SerialBlockedForUrls
  • ServiceWorkerAutoPreloadEnabled
  • ServiceWorkerToControlSrcdocIframeEnabled
  • SharedArrayBufferUnrestrictedAccessAllowed
  • SharedWorkerBlobURLFixEnabled
  • SharedWorkerExtendedLifetimeEnabled
  • SignedHTTPExchangeEnabled
  • SilentPrintingEnabled
  • SitePerProcess
  • SpellcheckEnabled
  • SpellcheckLanguage
  • SpellcheckLanguageBlocklist
  • SSLErrorOverrideAllowed
  • SSLErrorOverrideAllowedForOrigins
  • StandardizedBrowserZoomEnabled
  • StaticStorageQuotaEnabled
  • StrictMimetypeCheckForWorkerScriptsEnabled
  • SuppressDifferentOriginSubframeDialogs

T–Z

  • TabCaptureAllowedByOrigins
  • TranslatorAPIAllowed
  • URLAllowlist
  • URLBlocklist
  • UrlKeyedAnonymizedDataCollectionEnabled
  • VideoCaptureAllowed
  • VideoCaptureAllowedUrls
  • WebAudioOutputBufferingEnabled
  • WebHidAllowAllDevicesForUrls
  • WebHidAllowDevicesForUrls
  • WebHidAllowDevicesWithHidUsagesForUrls
  • WebHidAskForUrls
  • WebHidBlockedForUrls
  • WebRtcDiagnosticLogCollectionAllowedForOrigins
  • WebRtcIPHandling
  • WebRtcIPHandlingUrl
  • WebRtcLocalIpsAllowedUrls
  • WebRtcPostQuantumKeyAgreement
  • WebRtcTextLogCollectionAllowed
  • WebRtcUdpPortRange
  • WebUsbAllowDevicesForUrls
  • WebUsbAskForUrls
  • WebUsbBlockedForUrls
  • WindowCaptureAllowedByOrigins
  • WindowManagementAllowedForUrls
  • WindowManagementBlockedForUrls
  • WindowPlacementAllowedForUrls
  • WindowPlacementBlockedForUrls
  • WPADQuickCheckEnabled
  • XSLTEnabled