From 7f6d7cc0c44ba70178c09faa556c493c4a0bd7a0 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Wed, 10 Sep 2025 14:13:18 +0200 Subject: [PATCH] Enhance tor-family e2e test to validate RSA and ED25519 relay identity fixes --- e2e-tests/tor-family/main.tf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/e2e-tests/tor-family/main.tf b/e2e-tests/tor-family/main.tf index e851a18..f2417a4 100644 --- a/e2e-tests/tor-family/main.tf +++ b/e2e-tests/tor-family/main.tf @@ -17,6 +17,10 @@ resource "tor_family_identity" "this" { family_name = "MyFamily" } +resource "tor_relay_identity_rsa" "this" {} + +resource "tor_relay_identity_ed25519" "this" {} + resource "local_sensitive_file" "family_key" { content_base64 = tor_family_identity.this.secret_key filename = "./data/keys/MyKey.secret_family_key" @@ -42,3 +46,34 @@ output "family_id" { description = "Family ID for the bridge" value = tor_family_identity.this.id } + +output "rsa_fingerprint_sha1" { + description = "RSA identity fingerprint (SHA1) - should be uppercase hex" + value = tor_relay_identity_rsa.this.public_key_fingerprint_sha1 +} + +output "rsa_fingerprint_sha1_hashed" { + description = "RSA identity fingerprint (SHA1) hashed for privacy monitoring" + value = tor_relay_identity_rsa.this.public_key_fingerprint_sha1_hashed +} + +output "rsa_fingerprint_sha256" { + description = "RSA identity fingerprint (SHA256)" + value = tor_relay_identity_rsa.this.public_key_fingerprint_sha256 +} + +output "ed25519_fingerprint_sha256" { + description = "ED25519 identity fingerprint (base64 encoded public key bytes)" + value = tor_relay_identity_ed25519.this.public_key_fingerprint_sha256 +} + +output "ed25519_private_key_tor" { + description = "ED25519 private key in Tor binary format (base64 encoded)" + value = tor_relay_identity_ed25519.this.private_key_tor + sensitive = true +} + +output "ed25519_public_key_tor" { + description = "ED25519 public key in Tor binary format (base64 encoded)" + value = tor_relay_identity_ed25519.this.public_key_tor +}