forked from ops/terraform-provider-tor
Enhance tor-family e2e test to validate RSA and ED25519 relay identity fixes
This commit is contained in:
parent
43c442ad20
commit
7f6d7cc0c4
1 changed files with 35 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue