From bd06c2e4b39aa4a3de05b6616f6635bffc424a16 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Tue, 3 Jun 2025 14:08:16 +0200 Subject: [PATCH] Update docs --- docs/data-sources/obfs4_bridge_line.md | 3 --- docs/index.md | 3 --- docs/resources/obfs4_state.md | 7 +------ docs/resources/relay_identity_ed25519.md | 3 --- docs/resources/relay_identity_rsa.md | 4 +--- examples/resources/tor_obfs4_state/resource.tf | 4 +--- examples/resources/tor_relay_identity_ed25519/resource.tf | 4 ---- examples/resources/tor_relay_identity_rsa/resource.tf | 4 +--- 8 files changed, 4 insertions(+), 28 deletions(-) diff --git a/docs/data-sources/obfs4_bridge_line.md b/docs/data-sources/obfs4_bridge_line.md index 49777cf..9b2b5c5 100644 --- a/docs/data-sources/obfs4_bridge_line.md +++ b/docs/data-sources/obfs4_bridge_line.md @@ -13,9 +13,6 @@ Generates a complete Tor bridge line using obfs4 state and network details ## Example Usage ```terraform -# Copyright (c) Abel Luck -# SPDX-License-Identifier: GPL-3.0-or-later - terraform { required_providers { tor = { diff --git a/docs/index.md b/docs/index.md index 22d0753..22036bb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -13,9 +13,6 @@ The Tor provider generates cryptographic identity materials for obfs4 Tor bridge ## Example Usage ```terraform -# Copyright (c) Abel Luck -# SPDX-License-Identifier: GPL-3.0-or-later - terraform { required_providers { tor = { diff --git a/docs/resources/obfs4_state.md b/docs/resources/obfs4_state.md index 2d83ea5..068ca9c 100644 --- a/docs/resources/obfs4_state.md +++ b/docs/resources/obfs4_state.md @@ -13,9 +13,6 @@ Generates obfs4 state and certificate for Tor bridges using external relay ident ## Example Usage ```terraform -# Copyright (c) Abel Luck -# SPDX-License-Identifier: GPL-3.0-or-later - terraform { required_providers { tor = { @@ -27,9 +24,7 @@ terraform { provider "tor" {} # Example: Generate obfs4 state using existing identity keys -resource "tor_relay_identity_rsa" "bridge" { - key_size = 2048 -} +resource "tor_relay_identity_rsa" "bridge" {} resource "tor_relay_identity_ed25519" "bridge" {} diff --git a/docs/resources/relay_identity_ed25519.md b/docs/resources/relay_identity_ed25519.md index 2f3c9a3..96a446f 100644 --- a/docs/resources/relay_identity_ed25519.md +++ b/docs/resources/relay_identity_ed25519.md @@ -13,9 +13,6 @@ Generates Ed25519 private key for Tor relay identity as required by the Tor spec ## Example Usage ```terraform -# Copyright (c) Abel Luck -# SPDX-License-Identifier: GPL-3.0-or-later - terraform { required_providers { tor = { diff --git a/docs/resources/relay_identity_rsa.md b/docs/resources/relay_identity_rsa.md index 3b4a271..b67920d 100644 --- a/docs/resources/relay_identity_rsa.md +++ b/docs/resources/relay_identity_rsa.md @@ -27,9 +27,7 @@ terraform { provider "tor" {} # Example: Generate RSA identity key for Tor relay -resource "tor_relay_identity_rsa" "example" { - key_size = 2048 # Default RSA key size for Tor relays -} +resource "tor_relay_identity_rsa" "example" {} output "private_key_pem" { description = "RSA private key in PEM format" diff --git a/examples/resources/tor_obfs4_state/resource.tf b/examples/resources/tor_obfs4_state/resource.tf index 67f85f9..f0f3be0 100644 --- a/examples/resources/tor_obfs4_state/resource.tf +++ b/examples/resources/tor_obfs4_state/resource.tf @@ -9,9 +9,7 @@ terraform { provider "tor" {} # Example: Generate obfs4 state using existing identity keys -resource "tor_relay_identity_rsa" "bridge" { - key_size = 2048 -} +resource "tor_relay_identity_rsa" "bridge" {} resource "tor_relay_identity_ed25519" "bridge" {} diff --git a/examples/resources/tor_relay_identity_ed25519/resource.tf b/examples/resources/tor_relay_identity_ed25519/resource.tf index 4a0a251..214c239 100644 --- a/examples/resources/tor_relay_identity_ed25519/resource.tf +++ b/examples/resources/tor_relay_identity_ed25519/resource.tf @@ -22,10 +22,6 @@ output "public_key_pem" { value = tor_relay_identity_ed25519.example.public_key_pem } -output "public_key_fingerprint_sha1" { - description = "SHA1 fingerprint of the Ed25519 public key" - value = tor_relay_identity_ed25519.example.public_key_fingerprint_sha1 -} output "public_key_fingerprint_sha256" { description = "SHA256 fingerprint of the Ed25519 public key" diff --git a/examples/resources/tor_relay_identity_rsa/resource.tf b/examples/resources/tor_relay_identity_rsa/resource.tf index b9d6c5b..d88113f 100644 --- a/examples/resources/tor_relay_identity_rsa/resource.tf +++ b/examples/resources/tor_relay_identity_rsa/resource.tf @@ -12,9 +12,7 @@ terraform { provider "tor" {} # Example: Generate RSA identity key for Tor relay -resource "tor_relay_identity_rsa" "example" { - key_size = 2048 # Default RSA key size for Tor relays -} +resource "tor_relay_identity_rsa" "example" {} output "private_key_pem" { description = "RSA private key in PEM format"