Skip to content

Commit dcf8930

Browse files
authored
Add smallstep_managed_radius resource and data source (#34)
1 parent 67c89c1 commit dcf8930

36 files changed

+13283
-2796
lines changed

docs/data-sources/account.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Read-Only:
233233
Read-Only:
234234

235235
- `autojoin` (Boolean) Whether or not clients should automatically connect to the network.
236-
- `connection_type` (String) The type of VPN connection. Allowed values: `IPSec` `IKEv2` `SSL`
236+
- `connection_type` (String) The type of VPN connection. Allowed values: `IPsec` `IKEv2` `SSL`
237237
- `ike` (Attributes) (see [below for nested schema](#nestedatt--vpn--ike))
238238
- `remote_address` (String) The public IP address of the VPN server.
239239
- `vendor` (String) For SSL-type VPN connections, the vendor of the VPN. Allowed values: `F5` `Cisco` `Juniper`
@@ -260,5 +260,3 @@ Read-Only:
260260
- `hidden` (Boolean) Whether or not the SSID is broadcast by the access points.
261261
- `network_access_server_ip` (String) The public IP address of your network equipment that clients connect to.
262262
- `ssid` (String) The name of the wireless network clients connect to.
263-
264-

docs/data-sources/authority.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ output "bootstrap_preexisting" {
4040
- `root` (String) The root certificate in pem format.
4141
- `type` (String) One of the available authority types
4242
Allowed values: `devops` `advanced` `managed`
43-
44-

docs/data-sources/device.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,3 @@ Read-Only:
6464
- `email` (String) Email of the user the device is assigned to.
6565
This field may be populated with a value derived from data synced from your team's MDMs.
6666
Setting this value explicitly will mask any MDM-derived value.
67-
68-
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "smallstep_managed_radius Data Source - terraform-provider-smallstep"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# smallstep_managed_radius (Data Source)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "smallstep_managed_radius" "my_radius" {
17+
id = "cd4452b0-809a-4fc1-aafe-1814042ce1fc"
18+
}
19+
20+
output "radius_ip" {
21+
value = data.smallstep_managed_radius.my_radius.server_ip
22+
}
23+
24+
output "radius_port" {
25+
value = data.smallstep_managed_radius.my_radius.server_port
26+
}
27+
28+
output "radius_hostname" {
29+
value = data.smallstep_managed_radius.my_radius.server_hostname
30+
}
31+
32+
output "radius_ca" {
33+
value = data.smallstep_managed_radius.my_radius.server_ca
34+
}
35+
```
36+
37+
<!-- schema generated by tfplugindocs -->
38+
## Schema
39+
40+
### Required
41+
42+
- `id` (String) The UUID of this managed RADIUS server.
43+
44+
### Read-Only
45+
46+
- `client_ca` (String) The CA that the RADIUS server will trust to verify clients.
47+
- `name` (String) A descriptive name for this resource. Must be unique across the team.
48+
- `nas_ips` (List of String) The IP addresses the Network Access Server (NAS) may connect from to the RADIUS server.
49+
- `reply_attributes` (Attributes List) (see [below for nested schema](#nestedatt--reply_attributes))
50+
- `server_ca` (String) The CA that supplicants should use to verify the RADIUS server.
51+
- `server_hostname` (String) The hostname of the RADIUS server.
52+
- `server_ip` (String) The IP address of the RADIUS server.
53+
- `server_port` (String) The port of the RADIUS server.
54+
55+
<a id="nestedatt--reply_attributes"></a>
56+
### Nested Schema for `reply_attributes`
57+
58+
Read-Only:
59+
60+
- `name` (String) The attribute name.
61+
- `value` (String) The static attribute value.
62+
- `value_from_certificate` (String) The object identifier (OID) of a field in the supplicant certificate. The RADIUS server will set the value of the reply attribute to the value of the field.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "smallstep_managed_radius_secret Data Source - terraform-provider-smallstep"
4+
subcategory: ""
5+
description: |-
6+
Read the secret required to configure a network access server to connect to a managed RADIUS server.
7+
---
8+
9+
# smallstep_managed_radius_secret (Data Source)
10+
11+
Read the secret required to configure a network access server to connect to a managed RADIUS server.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "smallstep_managed_radius_secret" "my_radius" {
17+
id = "cd4452b0-809a-4fc1-aafe-1814042ce1fc"
18+
}
19+
20+
output "radius_secret" {
21+
sensitive = true
22+
value = data.smallstep_managed_radius_ssecret.my_radius.secret
23+
}
24+
```
25+
26+
<!-- schema generated by tfplugindocs -->
27+
## Schema
28+
29+
### Required
30+
31+
- `id` (String) The UUID of a managed RADIUS resource.
32+
33+
### Read-Only
34+
35+
- `secret` (String, Sensitive) The secret a network access server needs to authenticate to a managed RADIUS server.

docs/data-sources/provisioner.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,3 @@ Read-Only:
183183
Read-Only:
184184

185185
- `roots` (Set of String) A list of pem-encoded x509 certificates. Any certificate bundle that chains up to any of these roots can be used in a certificate request.
186-
187-

docs/data-sources/provisioner_webhook.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ ENRICHING webhooks are called before rendering the certificate template. They ha
4646
A HOSTED_ATTESTATION webhook server is hosted by Smallstep and must be used with an `ENRICHING` webhook type and an ACME Attestation provisioner. The webhook server will verify the attested permanent identifier exists as the ID of an instance in the configured collection. The data of the instance in the collection will be added to the template data.
4747
Allowed values: `EXTERNAL` `HOSTED_ATTESTATION`
4848
- `url` (String) The URL of the webhook server. Required for `EXTERNAL` webhook servers; read-only for hosted webhook servers.
49-
50-

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
33
page_title: "smallstep Provider"
4-
subcategory: ""
54
description: |-
65
76
---

docs/resources/account.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Optional:
358358

359359
Required:
360360

361-
- `connection_type` (String) The type of VPN connection. Allowed values: `IPSec` `IKEv2` `SSL`
361+
- `connection_type` (String) The type of VPN connection. Allowed values: `IPsec` `IKEv2` `SSL`
362362
- `remote_address` (String) The public IP address of the VPN server.
363363

364364
Optional:
@@ -397,6 +397,8 @@ Optional:
397397

398398
Import is supported using the following syntax:
399399

400+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
401+
400402
```shell
401403
terraform import smallstep_account.wifi b1161f78-d251-401e-b17c-fe38fc26ae7b
402404
```

docs/resources/authority.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ Optional:
199199

200200
Import is supported using the following syntax:
201201

202+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
203+
202204
```shell
203205
terraform import smallstep_authority.my_ca b1161f78-d251-401e-b17c-fe38fc26ae7b
204206
```

0 commit comments

Comments
 (0)