ADDED: - encryption_bridge.rs: Service integration layer - encryption_contract_parser.rs: Nickel contract parsing - encryption_integration.rs: Integration tests (+442 lines) - docs/ENCRYPTION-*.md: Quick start, setup, architecture - examples/08-encryption: Usage examples - scripts/encryption-test-setup.sh: Provisioning MODIFIED: - helpers.rs: +570 lines utility functions - nickel/: Enhanced contract parsing & serialization - form_parser.rs: Constraint interpolation improvements - config/mod.rs: New configuration (+24 lines) - typedialog/src/main.rs: CLI updates (+83 lines) - Cargo.toml: encryption_bridge dependency - Cargo.lock, SBOMs: Updated AFFECTED BACKENDS: cli, tui, web (core-level changes)
41 lines
1.2 KiB
TOML
41 lines
1.2 KiB
TOML
# Simple Login Form with Encryption
|
|
#
|
|
# Minimal example for quick testing of encryption features
|
|
#
|
|
# Test redaction (no service required):
|
|
# typedialog form examples/08-encryption/simple-login.toml --redact --format json
|
|
#
|
|
# Test Age encryption (requires ~/.age/key.txt):
|
|
# typedialog form examples/08-encryption/simple-login.toml \
|
|
# --encrypt --backend age --key-file ~/.age/key.txt --format json
|
|
#
|
|
# Test SOPS encryption (requires .sops.yaml and KMS credentials):
|
|
# export AWS_REGION=us-east-1
|
|
# typedialog form examples/08-encryption/simple-login.toml \
|
|
# --encrypt --backend sops --format json
|
|
#
|
|
# Test SecretumVault encryption (requires vault service):
|
|
# export VAULT_ADDR=https://vault:8200
|
|
# export VAULT_TOKEN=hvs.token...
|
|
# typedialog form examples/08-encryption/simple-login.toml \
|
|
# --encrypt --backend secretumvault --format json
|
|
#
|
|
|
|
name = "login"
|
|
description = "Simple login form with password encryption"
|
|
display_mode = "complete"
|
|
|
|
[[fields]]
|
|
name = "username"
|
|
type = "text"
|
|
prompt = "Username"
|
|
required = true
|
|
sensitive = false
|
|
|
|
[[fields]]
|
|
name = "password"
|
|
type = "password"
|
|
prompt = "Password"
|
|
required = true
|
|
# sensitive: auto-detected as true from FieldType::Password
|