Skip to content

Commit 96138d6

Browse files
strideynetptgott
andauthored
[v17] Add Spacelift to join token reference page (#52974)
* Add spacelift to join token reference page * Fix join_method * Update docs/pages/reference/join-methods.mdx Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com> * simplify --------- Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
1 parent a0e76fe commit 96138d6

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
```yaml
2+
kind: token
3+
version: v2
4+
metadata:
5+
name: spacelift
6+
spec:
7+
roles: [Bot]
8+
join_method: spacelift
9+
10+
# This must match a bot name, created either with `tctl bots add` or by
11+
# creating a `bot` resource.
12+
bot_name: spacelift
13+
14+
spacelift:
15+
# hostname should be the hostname of your Spacelift tenant.
16+
hostname: example.app.spacelift.io
17+
# allow specifies rules that control which Spacelift executions will be
18+
# granted access. Those not matching any allow rule will be denied.
19+
allow:
20+
# space_id identifies the space that the module or stack resides within.
21+
- space_id: root
22+
# caller_type is the type of caller_id. This must be `stack` or `module`.
23+
caller_type: stack
24+
# caller_id is the id of the caller. e.g the name of the stack or module.
25+
caller_id: my-stack
26+
# scope is the scope of the token - either `read` or `write`.
27+
# See https://docs.spacelift.io/integrations/cloud-providers/oidc/#about-scopes
28+
scope: read
29+
```

docs/pages/reference/join-methods.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,18 @@ Support for self-hosted Terraform Enterprise requires Teleport Enterprise.
440440
- [Run the Teleport Terraform Provider on Terraform Cloud](../admin-guides/infrastructure-as-code/terraform-provider/terraform-cloud.mdx)
441441
</Admonition>
442442

443+
### Spacelift: `spacelift`
444+
445+
This join method is used to authenticate using Spacelift. It is typically used
446+
by the Teleport Terraform provider on Spacelift (including self-hosted
447+
deployments).
448+
449+
(!docs/pages/includes/provision-token/spacelift-spec.mdx!)
450+
451+
<Admonition type="note" title="See Also">
452+
- [Run the Teleport Terraform Provider on Spacelift](../admin-guides/infrastructure-as-code/terraform-provider/spacelift.mdx)
453+
</Admonition>
454+
443455
### Bitbucket Pipelines: `bitbucket`
444456

445457
This join method is used to authenticate using Bitbucket's support for OpenID

0 commit comments

Comments
 (0)