Skip to content

Commit 5753bab

Browse files
authored
Add device-collection and workloads (#13)
1 parent 78a9d1a commit 5753bab

File tree

70 files changed

+7108
-5606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+7108
-5606
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
## 0.4.0
22

3+
FEATURES:
4+
* Add smallstep_device_collection resource.
5+
* Add smallstep_workload resource.
6+
37
BUG FIXES:
48
* Hosted provisioner webhooks will have a secret of type null rather than type unknown after creation.
59

10+
CHANGES:
11+
* attestation_authority resource and data source no longer has a `catalog` attribute.
12+
* Remove smallstep_managed_configuration resource and data source.
13+
* Remove smallstep_endpoint_configuration resource and data source.
14+
* Remove smallstep_agent_configuration resource and data source.
15+
616
## 0.3.0
717

818
FEATURES:

docs/data-sources/agent_configuration.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/data-sources/attestation_authority.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ data "smallstep_attestation_authority" "aa" {
2929

3030
- `attestor_intermediates` (String) The pem-encoded list of intermediate certificates used to build a chain of trust to verify the attestation certificates submitted by devices.
3131
- `attestor_roots` (String) The pem-encoded list of certificates used to verify the attestation certificates submitted by devices.
32-
- `catalog` (String) The slug of a collection that holds the list of devices belonging to the team.
3332
- `created_at` (String) Timestamp in RFC3339 format when the attestation authority was created.
3433
- `name` (String) The name of the attestation authority.
3534
- `root` (String) The pem-encoded root certificate of this attestation authority. This is generated server-side when the attestation authority is created. This certificate should be used in the `attestationRoots` field of an ACME_ATTESTATION provisioner with the `tpm` format.

docs/data-sources/collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data "smallstep_collection" "tpms" {
3232
### Read-Only
3333

3434
- `created_at` (String) Timestamp in RFC3339 format when the collections was created
35-
- `display_name` (String)
35+
- `display_name` (String) A user-friendly name for the collection.
3636
- `id` (String) Internal use only
3737
- `instance_count` (Number) The number of instances in the collection.
3838
- `updated_at` (String) Timestamp in RFC3339 format when the collections was last updated

docs/data-sources/collection_instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ data "smallstep_collection_instance" "tpm1" {
3131
- `created_at` (String) Timestamp in RFC3339 format when the instance was added to the collection.
3232
- `data` (String) The instance data.
3333
- `id` (String) The ID of this resource.
34+
- `out_data` (String) The instance data.
3435
- `updated_at` (String) Timestamp in RFC3339 format when the instance was last changed.
3536

3637

docs/data-sources/endpoint_configuration.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

docs/data-sources/managed_configuration.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

docs/data-sources/provisioner.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ data "smallstep_provisioner" "by_id" {
4444
- `azure` (Attributes) The [Azure provisioner](https://smallstep.com/docs/step-ca/provisioners/#azure) grants certificates to Microsoft Azure instances using the managed identities tokens. This object is populated when type is `AZURE`. (see [below for nested schema](#nestedatt--azure))
4545
- `claims` (Attributes) A set of constraints configuring how this provisioner can be used to issue certificates. (see [below for nested schema](#nestedatt--claims))
4646
- `created_at` (String) Timestamp of when the provisioner was created in RFC 3339 format. Generated server-side.
47-
- `gcp` (Attributes) The [GCP provisioner](https://smallstep.com/docs/step-ca/provisioners/#gcp) grants a certificate to a Google Compute Engine instance using its identity token. This object is populated when type is `GCP`. (see [below for nested schema](#nestedatt--gcp))
47+
- `gcp` (Attributes) The [GCP provisioner](https://smallstep.com/docs/step-ca/provisioners/#gcp) grants a certificate to a Google Compute Engine instance using its identity token. At least one service account or project ID must be set. This object is populated when type is `GCP`. (see [below for nested schema](#nestedatt--gcp))
4848
- `jwk` (Attributes) A [provisioner](https://smallstep.com/docs/step-ca/provisioners/#jwk) that uses public-key cryptography to sign and validate a JSON Web Token (JWT). This object is populated when type is `JWK`. (see [below for nested schema](#nestedatt--jwk))
4949
- `oidc` (Attributes) A [provisioner](https://smallstep.com/docs/step-ca/provisioners/#oauthoidc-single-sign-on) that is configured to trust and accept an OAuth provider's ID tokens for authentication. By default, the issued certificate will use the subject (sub) claim from the identity token as its subject. The value of the token's email claim is also included as an email SAN in the certificate. This object is populated when type is `OIDC`. (see [below for nested schema](#nestedatt--oidc))
5050
- `options` (Attributes) Options that apply when issuing certificates with this provisioner. (see [below for nested schema](#nestedatt--options))
@@ -77,7 +77,7 @@ Read-Only:
7777

7878
Read-Only:
7979

80-
- `accounts` (Set of String) The list of AWS account IDs that are allowed to use this provisioner.
80+
- `accounts` (Set of String) The list of AWS account IDs that are allowed to use an AWS cloud provisioner.
8181
- `disable_custom_sans` (Boolean) By default custom SANs are valid, but if this option is set to `true` only the SANs available in the instance identity document will be valid. These are the private IP and the DNS ip-<private-ip>.<region>.compute.internal.
8282
- `disable_trust_on_first_use` (Boolean) By default only one certificate will be granted per instance, but if the option is set to `true` this limit is not set and different tokens can be used to get different certificates.
8383
- `instance_age` (String) The maximum age of an instance that should be allowed to obtain a certificate. Limits certificate issuance to new instances to mitigate the risk of credential-misuse from instances that don't need a certificate. Parsed as a [Golang duration](https://pkg.go.dev/time#ParseDuration).
@@ -122,8 +122,8 @@ Read-Only:
122122
- `disable_custom_sans` (Boolean) By default custom SANs are valid, but if this option is set to `true` only the SANs available in the instance identity document will be valid, these are the DNS `<instance-name>.c.<project-id>.internal` and `<instance-name>.<zone>.c.<project-id>.internal`.
123123
- `disable_trust_on_first_use` (Boolean) By default only one certificate will be granted per instance, but if the option is set to `true` this limit is not set and different tokens can be used to get different certificates.
124124
- `instance_age` (String) The maximum age of an instance that should be allowed to obtain a certificate. Limits certificate issuance to new instances to mitigate the risk of credential-misuse from instances that don't need a certificate. Parsed as a [Golang duration](https://pkg.go.dev/time#ParseDuration).
125-
- `project_ids` (Set of String) The list of project identifiers that are allowed to use this provisioner.
126-
- `service_accounts` (Set of String) The list of service accounts that are allowed to use this provisioner.
125+
- `project_ids` (Set of String) The list of project identifiers that are allowed to use a GCP cloud provisioner.
126+
- `service_accounts` (Set of String) The list of service accounts that are allowed to use a GCP cloud provisioner.
127127

128128

129129
<a id="nestedatt--jwk"></a>

docs/resources/agent_configuration.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/resources/attestation_authority.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ resource "smallstep_attestation_authority" "aa" {
3232
### Required
3333

3434
- `attestor_roots` (String) The pem-encoded list of certificates used to verify the attestation certificates submitted by devices.
35-
- `catalog` (String) The slug of a collection that holds the list of devices belonging to the team.
3635
- `name` (String) The name of the attestation authority.
3736

3837
### Optional

0 commit comments

Comments
 (0)