TypeDialog/examples/08-encryption/simple-login.toml

41 lines
1.2 KiB
TOML
Raw Normal View History

# 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