Expand description
Safety confirmation flow for pages export.
Implements a multi-step confirmation flow that ensures users explicitly acknowledge the implications of publishing encrypted content to a public site.
§Confirmation Steps
- SecretScanAcknowledgment - If secrets detected, user must type “I understand the risks”
- ContentReview - User confirms they have reviewed the content summary
- PublicPublishingWarning - User types the target domain to confirm
- PasswordStrengthWarning - If password entropy < 60 bits, user chooses action
- RecoveryKeyBackup - User types the last word of the recovery key
- FinalConfirmation - User presses Enter twice
Structs§
- Confirmation
Config - Configuration for the confirmation flow.
- Confirmation
Flow - Manages the multi-step confirmation flow.
Enums§
- Confirmation
Result - Result of processing user input for a confirmation step.
- Confirmation
Step - Confirmation step identifiers.
- Password
Strength Action - Password strength action selected by user.
- Step
Validation - Result of a confirmation step validation.
- Unencrypted
Confirm Result - Result of unencrypted export confirmation.
Constants§
- EXIT_
CODE_ UNENCRYPTED_ NOT_ CONFIRMED - Exit code for unconfirmed unencrypted export.
- MIN_
STRONG_ PASSWORD_ BITS - Minimum password entropy in bits for full strength.
- UNENCRYPTED_
ACK_ PHRASE - Required phrase for unencrypted export acknowledgment.
Functions§
- check_
robot_ mode_ unencrypted - Check if robot mode allows unencrypted export.
- count_
required_ steps - Get the number of required steps for the given configuration.
- estimate_
password_ entropy - Calculate password entropy using character class analysis.
- password_
strength_ label - Get a human-readable password strength label.
- robot_
mode_ blocked_ error - Generate the error JSON for blocked robot mode unencrypted export.
- unencrypted_
warning_ lines - Format warning messages for unencrypted export.
- validate_
unencrypted_ ack - Validate unencrypted export acknowledgment phrase.