1288 Commits
Author SHA1 Message Date
Tim Buckley 642aa16ecf Scopes: support tpm joining (#289)
Export-Source-Commit: 395143602db02eeaf5f8e9f2f4ca3e951fcb11ce
2026-08-25 11:35:10 -05:00
Peter Willis 298e04f97e Scopes support for GitLab CI join (#448)
Export-Source-Commit: 1fe740db0af59e68b1917320360eefdfa3665d0f
2026-08-25 11:35:10 -05:00
Cam Hutchison a5b95e952c accessmonitoring: Evaluate constrained resources in access requests (#287)
Export-Source-Commit: b083e8bc1397c4ba87200ee8b24eef61860f3a1c
2026-08-25 11:35:10 -05:00
Gavin Frazar 3a687a3d76 Regenerate terraform module docs on version update (#513)
Export-Source-Commit: 7d8e4ce5c79c74c3d75e6063a3dfb1ed543773e4
2026-08-25 11:35:10 -05:00
dependabot[bot] 6c97422203 Bump github.com/moby/go-archive from 0.2.0 to 0.3.0 (#349)
Export-Source-Commit: be3b71f4caf974119f2c26836ba5d45f37434f9c
2026-08-25 11:35:10 -05:00
teleport-renovate[bot] a9b131d857 Update Go toolchain version to v1.26.7 (#396)
Export-Source-Commit: 8e4cdc517b988a352e7c40da1a09289384984f4d
2026-08-25 11:35:10 -05:00
teleport-renovate[bot] 490ebd42ac Update Go toolchain version to v1.26.6 (#206)
Export-Source-Commit: ca738042bc0afb4eb77373c129093e817e4d280d
2026-08-25 11:35:10 -05:00
rosstimothy 37c3a8a456 Terraform: convert auto update version to generic provider (#69514)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-13 02:43:07 +00:00
rosstimothy 17df2634f5 Terraform: convert ui config to generic provider (#69507)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-13 00:21:42 +00:00
williamong-tel 3ef4934487 IAC SSH Server Namespacing support (#69542)
Update provider.go
2026-08-12 22:10:04 +00:00
rosstimothy b3cf83c163 Terraform: convert recording config to generic provider (#69491)
Contributes to https://github.com/gravitational/teleport/pull/69403.
2026-08-12 17:25:52 +00:00
rosstimothy be98bed86e Terraform: convert classifier to generic provider (#69423)
Contributes to https://github.com/gravitational/teleport/pull/69403.
2026-08-12 17:06:52 +00:00
Julia Ogris 677b0d6e1c types: Declare all app_resources fields (#69500)
* types: Declare all app_resources fields in the proto

Declare the eight reserved AppResource fields (paths, methods, where,
allow_encoded, allow_code, allow_reason, deny_code_hint,
deny_reason_hint) and the AppResourcesExpressions role condition, and
regenerate the proto stubs, the role CRDs, the Terraform schema and
docs, and the derived equality functions. Declaring the fields before
the fine-grained matcher merges lets every client of this version name
them, so a client that round-trips a role written by a newer auth
preserves the fields instead of silently dropping them on write-back,
which would widen the rule.

Tighten IsAllowAllOnly to require every declared field besides
allow_all to be unset. Without this, a rule such as {allow_all: true,
methods: [GET]} written by a newer auth would pass the check once the
fields are named, and this version would treat a method-restricted
rule as unrestricted.

Add GetAppResourcesExpressions to the Role interface, and read it in
decideMinimalV9 so the app agent denies a request governed by a
predicate it cannot evaluate. A predicate restricts the rules it
accompanies, so a role that pairs allow_all with one is not
unrestricted, and a deny-side predicate blocks another role's
allow_all the same way a deny-side rule does. Auth already treats both
as restricting when it downgrades a role for a pre-v9 client, so
without this the agent and auth disagree about the same role.

Strip AppResourcesExpressions in the v9-to-v8 downgrade alongside
AppResources, and reject it at write, so a role can neither reach a
pre-v9 client with the restriction silently removed nor be stored
while this version cannot enforce it.

* docs: List the declared app_resources fields

Honour the docs review on the app-resources reference page. A run of
inline code-style field names inside a sentence is hard to scan, so the
eight rejected `app_resources` fields become a list, and
`app_resources_expressions` gets its own sentence rather than trailing
the same run.

* buf: Trim the reserved-deletion except comment

Drop the two sentences explaining why buf's ignore lists cannot scope the
except. The rule name and the removal condition are what a reader needs
here, and the scoping attempts are recorded on the pull request.

* types: Reword the app_resources_expressions and Methods docs

Honour the review on the proto field comments. Drop "desugared" from
`AppResourcesExpressions`, which needs the RFD to gloss, and state the
relation between the two forms directly instead. Open `Methods` with the
plural, matching `Paths` on the row above.

Regenerate the proto stubs, the role CRDs, the Terraform schema and docs.
2026-08-12 05:19:01 +00:00
rosstimothy 6b9793e1bb Terraform: convert trusted device to generic provider (#69427)
Contributes to https://github.com/gravitational/teleport/pull/69403.
2026-08-11 20:12:14 +00:00
williamong-tel 5cf14ff0e2 IAC Operator SSH Server Namespacing support (#69543)
to teleport

add scoped tests
2026-08-11 19:40:51 +00:00
rosstimothy 5a674cded9 Terraform: convert networking config to generic provider (#69488)
Contributes to https://github.com/gravitational/teleport/pull/69403.
2026-08-11 17:46:12 +00:00
Gabriel Corado 1c6d883a8b Remove app auth config (#69528)
* refactor: remove app auth config

* chore: fix lint errors

* fix(docs): correct config json format
2026-08-11 16:01:44 +00:00
Noah Stride b8881600f6 Remove legacy user generation label handling (#69335)
* Remove legacy fallback for bot generation

* fixup test
2026-08-11 08:46:02 +00:00
Tim Buckley 149d17e5c2 Fix google.protobuf.Struct handling in the Kubernetes operator (#69248)
* Fix google.protobuf.Struct handling in the Kubernetes operator

This fixes a bug in the Kubernetes operator where nested fields in a
`google.protobuf.Struct` object would be silently pruned by the
validator. This matters to the `generic_oidc` join method where the
`must_match_fields` field (which accepts structured fields to match
against an incoming JWT) could get pruned and then silently ignored,
bypassing join rules.

Note that use of nested fields _usually_ results in an error, but only
in strict mode. It's the default now, but could still plausibly be
disabled causing silent loss of rules.

* Reword comment

* Add a pruning test beyond just schema validation
2026-08-11 02:42:47 +00:00
Julia Ogris 466fccde36 operator: Add role v9 CRD kind (#68737)
* operator: Add role v9 CRD kind

Register a TeleportRoleV9 kind with the Kubernetes operator so v9
roles can be managed declaratively. The reconciler reuses the shared
RoleV6 storage type with a version override, the same way the v7 and
v8 kinds do.

Generated changes:

    make -C integrations/operator generate

* operator: Drop preserve-unknown on app_resources

Setting x-kubernetes-preserve-unknown-fields on app_resources rule items
relaxed the CRD schema to store fields it does not declare, so the operator
could reject them on decode. That keeps invalid data in cluster state and is
hard to walk back once shipped, even after Kubernetes field validation
improves. Rely on the structural schema and server-side field validation to
reject unknown fields at the API server instead, and drop the tests that
asserted the operator-side rejection.

* operator: Match the reconciler factory signature

The scoped operator work added an OperatorMetadata parameter to
ReconcilerFactory and updated every existing role reconciler. The v9
reconciler was written before that change, so master and this branch each
compile alone but not once merged, and the merge queue rejects the result.

Take the parameter and ignore it, as the v6 to v8 reconcilers do.
2026-08-10 23:51:57 +00:00
Hugo Shaka 2f285d6ba6 Fix Terraform provider (#69435)
- add scoped bot support
- ignore scoped role revision
- enable and fix scoped tests
2026-08-10 22:09:17 +00:00
rosstimothy 4631a36d1e Terraform: convert login rule to generic provider (#69426)
Contributes to https://github.com/gravitational/teleport/pull/69403.
2026-08-10 21:33:01 +00:00
rosstimothy 2b37573345 Terraform: convert workload identity to generic provider (#69416)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-10 21:02:28 +00:00
rosstimothy 4dd11deb01 Terraform: convert db object import rule to generic provider (#69421)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-10 19:49:14 +00:00
rosstimothy 242ba1839c Terraform: convert okta import rule to generic provider (#69402)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-10 18:35:42 +00:00
dependabot[bot]andTiago Silva 2f95040936 Bump github.com/go-git/go-git/v5 from 5.19.1 to 5.19.2 (#69474)
* Bump github.com/go-git/go-git/v5 from 5.19.1 to 5.19.2

Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.19.1 to 5.19.2.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Changelog](https://github.com/go-git/go-git/blob/main/HISTORY.md)
- [Commits](https://github.com/go-git/go-git/compare/v5.19.1...v5.19.2)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.19.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* go mod tidy all

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tiago Silva <[email protected]>
2026-08-10 17:44:42 +00:00
rosstimothy 42541eb876 Terraform: convert trusted cluster to generic provider (#69399)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-10 15:41:06 +00:00
Hugo Shaka 3a45ff944e Implement RFD 328: scoped operator (#69074)
This commit implements the following changes:

- add a kubernetes state in which the operator can store its ID
- move ownership checks and label setting to the adapter interface
- add the scoped resource with label adapter
- add operator metadata and propagate it to scoped reconcilers
- make scoped adapters check the operator id label when the resource is
  scoped
- make scoped adapters set provenance labels when the resource is
  scoped
- fix the controller tests that were no longer able to infer the
  generics type since `api/types` was not directly imported anymore
- make the operator reject reconciling a resource whose scope does not
  match its own
- enable and fix scoped resource tests:
  - use the same test scope everythere
  - set the test scope in the operator metadata
  - generate and use the operator ID
2026-08-10 15:27:48 +00:00
williamong-tel c64bb4c71e Add Scope Namespacing support for SSH Servers (Nodes) (#69213)
Consume New SSHServer funcs (#69215)
2026-08-07 22:49:04 +00:00
rosstimothy 15ca6d0bbd Terraform: convert health check to generic provider (#69419)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 21:02:57 +00:00
rosstimothy 47ac6c451f Terraform: convert access monitoring rules to generic provider (#69418)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 21:00:19 +00:00
rosstimothy 4e2a29cd4a Terraform: convert dynamic desktops to generic provider (#69401)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 20:12:44 +00:00
Hugo Shaka afd917900e Use go tool to run protoc-gen-terraform (#69437) 2026-08-07 18:58:09 +00:00
matheus 9bb332882c client_ip_restriction: add new fields to Terraform provider (#68942)
* `client_ip_restriction`: add new fields to Terraform provider

* lint fix
2026-08-07 17:42:27 +00:00
rosstimothy e98fa3e28a Terraform: convert role to generic provider (#69397)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 17:23:39 +00:00
rosstimothy e07791dd5b Terraform: Makefile improvements (#69468)
1) Allow make gen-tfschema to run offline by removing -u from go list
2) Prevent stale codgen by deleting previously generated code prior to
   executing go run ./gen/main.go

As a result of 2, some files that don't have an existing payload registered
in gen/main.go have been removed.
2026-08-07 17:14:48 +00:00
rosstimothy 94ee3ab815 Terraform: convert installer to generic provider (#69403)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 17:01:12 +00:00
rosstimothy 9d29ffb5c5 Terraform: convert static host user to generic provider (#69404)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 16:04:57 +00:00
rosstimothy 1ab9183cdd Terraform: convert user to generic provider (#69400)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 16:02:36 +00:00
rosstimothy fed581a3ec Terraform: Convert Lock to generic provider (#69398)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 15:55:01 +00:00
rosstimothy 13be5bd0fe Terraform: convert database to generic provider (#69396)
Contributes to https://github.com/gravitational/teleport/issues/69301.
2026-08-07 14:37:15 +00:00
rosstimothy ebb728fbd2 Terraform: Convert Auth Preference to generic provider (#69099) 2026-08-07 13:19:03 +00:00
Julia Ogris 2a05d3edfe role: Add minimal v9 with app default-deny (#68736)
* types: Add minimal role v9 with app default-deny

Add role resource version v9. A v9 role denies all access to HTTP apps
by default: when it grants an app via `app_labels` or
`app_labels_expression`, every HTTP request is denied unless an
allow-side `app_resources` rule permits it (RFD 0303).

Add `app_resources` to a role's `spec.allow` (not `spec.deny`), rules
controlling access to an app's resources on each HTTP request. For now
a rule holds one field, `allow_all`, which grants unrestricted access,
equivalent to v8, and must be the only rule. Reserve field numbers for
the fine-grained fields (`paths`, `methods`, `where`, audit codes) so
later releases add them without renumbering. Bump the role version in
an N.0.0 release: the breaking default-deny aims to ship in Teleport
v19.0.0.

Reject at write time any `app_resources` use on pre-v9 roles, under
deny, in a rule that does not set `allow_all`, or in a rule next to
another rule.

Serve v9 roles to clients older than 19.0.0 as v8 copies: the auth
server strips `app_resources` and marks the copy with the
`teleport.internal/downgraded` label. The stored role stays v9; only
what goes over the wire changes. The downgrade fails closed: unless a
rule sets `allow_all` (exactly v8 access, lossless), the copy also
loses its allow `app_labels` and `app_labels_expression`, so an older
agent denies the app entirely instead of serving it unrestricted.

Enforce the default-deny in the app agent's plain-HTTP path; TCP, MCP,
cloud, and LLM apps are excluded. When v8 and v9 roles grant the same
app, drop the v8 roles from the decision so they cannot re-open
unrestricted access, and log a warning once.

Bundle the Terraform provider update so v9 roles can be managed as
code starting with v19.0.0. The operator v9 CRD kind follows
separately.

Generated changes:

    make grpc/host
    make derive
    make -C integrations/terraform docs
    make -C integrations/operator generate

* auth: Downgrade roles from GetCurrentUserRoles

Run every role streamed by GetCurrentUserRoles through
maybeDowngradeRole before sending, matching GetRole, GetRoles,
ListRoles, and the watch stream. Without it, a pre-19 client asking a
remote cluster for its mapped roles receives a v9 role with allow
app_labels intact and no app_resources enforcement it understands, so
client-side access checks treat a default-deny role as granting full
app access. The change also applies the pre-existing v8-to-v7
downgrade on this surface, which previously served v8 roles to v17
clients unchanged.

* terraform: Exclude deny-side app_resources from schema

Drop `app_resources` from the Terraform role schema's deny block, as
the server rejects any deny-side `app_resources` at write time and
RFD 0303 keeps the rules allow-only so that they fail closed. With the
field gone from the schema, Terraform rejects a deny-side rule at plan
time instead of leaving it to the server's write-time check. Follow the
existing `RoleV6.Spec.Deny.Namespaces` exclusion.

Generated changes:

    make -C integrations/terraform docs

* docs: Split role versions into per-version headings

Break the Role versions section into one H4 per role version so
readers can jump straight to the version they care about. Move the
SAML IdP note under the v8 heading, since it describes a v8 change,
and keep the kubernetes_resources defaults table as its own H4 at
the end. Fix a mismatched backtick around `v5` in the moved
session-joining paragraph.

* app: Warn when version skew denies a v9 request

When the minimal v9 check denies a request because the user's roles
carry `app_resources` rules or role versions this Teleport version
does not implement, the app agent previously answered 403 without any
log line. In a mixed-version cluster an operator saw denied requests
with no explanation that the deny came from a version mismatch rather
than from an intended default-deny role.

Track the condition as `versionSkew` on `minimalV9Decision`:
deny-side rules, allow rules beyond a single pure `allow_all`, or a
role version above v9. When such a deny fires, log one warning per
user and app through the existing `v9WarnOnce` mechanism, telling the
operator to upgrade the app agent. An intended default-deny, a v9 role
without app rules, stays quiet. A follow-up PR adds a minimal audit
event for the same denials.

* app: Deny apps a downgraded v9 role restricted

A v9 role that restricts app access downgrades to v8 for a pre-v19 agent
that cannot enforce the restriction. Clearing the role's allow app labels
alone would only stop that role granting the apps; another v8 role the user
holds could still grant them, so the restriction would not hold on the old
agent. Move the role's allow app selector to the deny side instead, so no
other role grants the apps this role restricted. The deny is at least as
strict as the v9 restriction and never grants more.

If the role already denies apps by label, there is no room to merge a
second label map, so fall back to a wildcard deny and log it rather than
drop the existing deny.

* docs: Correct v9 downgrade mixed-version guidance

Describe the deny-side downgrade the code actually performs. Without
`allow_all`, the v8 copy moves the allow app selector to the deny side
rather than dropping it, so deny rules override allow rules across a user's
roles and a separate v8-or-older role can no longer reopen the app on
pre-v19 agents. Note that the moved selector denies conservatively and can
block more apps than the v9 role allowed in a mixed-version cluster.

* role: Deny v9 app access for unknown JSON fields

Empty any v9 allow app_resources rule whose stored JSON carried a field
this version does not recognize, so a rule written by a newer version cannot
read as more permissive than intended. An unrecognized field already denies
on the other surfaces: proto reads keep it in XXX_unrecognized so
IsAllowAllOnly rejects it, and writes reject it at validation. JSON unmarshal
drops unknown fields silently, so this re-scans the raw bytes on read. The
known field set is derived from the AppResource message, so a new proto field
extends it automatically. The result is a single rule across every surface,
an unrecognized field grants nothing, worst case over-deny.

* app: Deny app access from roles newer than v9

A role from a version above v9 may carry restrictions this agent cannot
evaluate, so treat it as deny even when its known fields form a plain
allow_all. Previously such a role set both versionSkew and allowed, and
enforceMinimalV9 returns early on allowed, so the request was forwarded and
the skew warning never fired.

* auth: Explain the greedy deny in the v9 downgrade

The downgrade moves a v9 role's allow app selector to the deny side, which
looks like it could clobber an existing deny expression. Record why it
cannot, since deny matches on either selector, and why label maps fall back
to a wildcard where expressions compose with an or.

* api: Guard the AppResource field set with a test

IsAllowAllOnly decides whether a rule is unrestricted by checking that
allow_all is set and no unknown bytes arrived over the wire. A field added
in tree, once one of the reserved numbers is unreserved, would restrict the
rule without making that check return false. Pin the field set so such an
addition fails the test, and name the checks to re-evaluate next to the
reserved numbers in the proto.

* app: Bound the v9 warning deduplication cache

The v9 enforcement warnings fire once per warning kind, user, and app, and
the sync.Map holding those keys never dropped an entry, so a long-running
app agent serving many users and apps grew it for the life of the process.
Hold the keys in a fixed-size LRU instead. Evicting the least recently
warned entry repeats its warning, which is the better failure mode.

* role: Address review feedback

Reword the checkAppResources godoc so the api module does not reference
lib/services. Move the unknown-field check for allow app_resources rules
from integrations/lib/tctl into lib/services next to the other role
unmarshal handling, and derive its known field set from the AppResource
message instead of hardcoding allow_all, so unreserving a proto field
extends it without a second edit. Replace the package-level
preV9RoleVersions slice with roleVersionPredatesV9, a function with a
switch, so nothing mutable sits at package scope.

* role: Address agent review feedback

Reword the `decideMinimalV9` godoc so only a v9 role can allow; a
version above v9 always denies. Drop the `AppResource` message summary
sentence that misstated the reserved field numbers as path, method, and
where rules; fields 6 to 9 hold the audit and deny-hint fields. Reword
the `TestAppResourceFields` comment so the api module does not point
at `lib/services`. Give `v10Grants` an `allow_all` rule so the
above-v9 test case fails if a newer-version role with a plain
`allow_all` rule ever allows again. Add a downgrade subtest for the
deny-expression OR-merge, which no test executed, and a `lib/services`
table test for `CheckAppResourcesKnownFields`, which was only
exercised from the integrations module after its move.

* role: Compact review-feedback additions

Tighten the previous commit's additions, partly to keep the PR under
5,000 added lines. Compact the `CheckAppResourcesKnownFields` table
test into direct assertions, flatten the allowed branch in
`decideMinimalV9`, iterate the `AppResource` fields with
`reflect.TypeFor`, drop the slice alias in
`denyAppAccessForUnknownFields`, and shorten two test comments and a
wrapped constructor call. No behavior change.

* role: Reuse access checking for v9 app decisions

The v9 default-deny check needs to know which individual role grants an
app. `roleGrantsApp` answered that by repeating the namespace and label
stages of `RoleSet` access checking inside `lib/srv/app`, where a second
implementation can drift from the original. Replace it with
`services.RoleGrantsResource`, which delegates to `RoleSet.checkAccess`
and follows the existing single-role idiom in
`lib/services/access_checker.go`.

Delegating changes one case. `resourceRequiresLabelMatching` exempts the
Identity Center app subkind from app label matching, so `checkAccess`
treats every role as granting such an app and v9 denies requests that
`roleGrantsApp` allowed. Add `isPlainHTTPApp` to skip enforcement for
that subkind alongside the cloud and LLM types, which is the scope v9 is
documented to cover, and log once per user and app when an app reaches
the check that should have been routed elsewhere. Drop the unused error
return from `decideMinimalV9`.

Remove `CheckAppResourcesKnownFields`. The property it enforced, that a
role never stores an `app_resources` rule with a field this version does
not understand, already holds on the write path, where `UnmarshalRole`
empties such a rule and `validateAppResources` then rejects it for no
longer setting `allow_all` alone. Its only caller was a test helper for
the access plugins, so assert the write path directly instead.

Describe `validateAppResources` by the property it guarantees rather than
by each check it runs, so the godoc does not drift as the checks change.
Explain why the role stream downgrades per client version, and say
explicitly that both versions in the `maybeDowngradeRole` ordering
comment are the client's, which read ambiguously as the server's. Cut the
role v9 reference section to the field it introduces and a link, and move
the rules, the mixed-version role behavior, and the agent upgrade it
requires to a new Application Resources reference page.

* docs: Use a defined tag on the app resources page

The application-access tag is not in the docs tags vocabulary, so the
docs build rejected the new page. Use privileged-access, which the
sibling roles reference page already carries.

* terraform: Regenerate the schema with protoc-gen-terraform v4

Master upgraded the generator to v4.0.0, which marks list-nested
attributes computed and preserves unknown elements by index. Regenerate
so the app_resources attributes match what the pinned generator emits.
2026-08-07 00:20:59 +00:00
Gavin Frazar 73ae81befb Update Terraform modules (#69306)
* Enable managed updates by default

* Expose ECS task Teleport configuration

* Make RDS modification permissions opt-in

* Standardize Terraform format expressions

* Update default IAM token name

* Update discovery module RDS policy actions

These permisisons are necessary to support the web UI flow which has to list
VPCs, subnets, and security groups.

* Eliminate teleport_discovery_config_name local var

It was used in only one place.

* Fix nonsensitive cast in token name output

* fix container-service example

* fix docs lint
2026-08-06 02:51:26 +00:00
Nick Cellino 4cc0872f09 Add configurable automatic review resolution reasons (#69169)
* add configurable automatic review reasons

* generate CRD and terraform schemas

* document reason field in automatic review docs

* add validation for automatic review reason field

* Re-run "make grpc"

* remove unnecessary variable copy

* simplify a test

* Re run make tf integration docs
2026-08-05 20:51:57 +00:00
Bernard Kim 1a9de95d20 [terraform] upgrade protoc-gen-terraform to v4.0.0 (#67080)
* Bump protoc-gen-terraform v4.0.0-dev.1

* make gen-tfschema

* Temporarily skip broken tests

* [terraform] exclude `nonce` attribute (#67075)

* [terraform] exclude `metadata.revision` attribute (#67084)

* [terraform] set `role.spec.options.record_session` as a computed attribute (#67094)

* Enable SessionSummaries entitlement for tests

* [terraform] Update auth_preference protoc-gen-terraform config (#67154)

* Update protoc-gen-terraform-teleport.yaml

The following attributes are marked as computed:
- AuthPreferenceV2.Spec.IDP
- AuthPreferenceV2.Spec.IDP.SAML
- AuthPreferenceV2.Spec.Okta

The following attributes are no longer marked as required:
- AuthPreferenceV2.Metadata.Name

* [terraform] Fix custom attribute schema (#67345)

* Update custom schema attributes

Ensure constraints including `Computed` and `PlanModifiers` are
propagated to final attribute struct.

* Update custom attribute CopyTo logic

- CopyTo now clears the `Null` and `Unknown` fields.
- CopyTo now replaces stale values within lists/maps.

* Update custom attribute CopyFrom logic

- CopyFrom now sets nil object when value is `Null` or `Unknown`.

* [terraform] Remove metadata.expires as a computed_field (#67441)

Prior to `GenSchemaTimestamp` changes, none of the timestamp attributes
were actually computed because the `Computed` field was being discard.

Now that the custom attribute schema has been fixed, the provider
complains that the `plan was not empty` with a perpetual drift when
Teleport does not provide a default value for `metadata.expires`. To
resolve this issue, all `metadata.expires` attributes have been removed
from the list of `computed_fields`.

Additionally, `scoped_role.metadata.expires` and
`scoped_role_assignment.metadata.expires` are not supported configuration.
They are now `excluded_fields`.

* [terraform] fix plural resource update method (#67478)

* [terraform] Implement resource-level ModifyPlan (#67294)

* [terraform] Update cluster_networking_config protoc-gen-terraform config (#67216)

* [terraform] Exclude created_at and created_by (#67621)

* Bump protoc-gen-terraform v4.0.0-dev.2

* make gen-tfschema

* [terraform] Update protoc-gen-terraform-accesslist.yaml (#67139)

* Update protoc-gen-terraform-accesslist.yaml

The following attributes are marked as computed:
- access_list.spec.audit
- access_list.spec.audit.notifications
- access_list.spec.audit.notifications.start
- access_list.spec.audit.recurrence
- access_list.spec.audit.grants
- access_list.spec.audit.owner_grants
- access_list.spec.audit.membership_requires
- access_list.spec.audit.ownership_requires

The following attributes are marked as required:
- access_list.spec.title

The following attributes are marked as excluded:
- access_list.spec.audit.next_audit_date

* [terraform] Implement ModifyPlan for login_rule (#67894)

* Bump protoc-gen-terraform v4.0.0-dev.3

* [terraform] preserve unknown values during TF plan (#68405)

* Update templates to use preserve unknown

* Update tfschema/custom_types.go

CopyToBoolOption, CopyToLabels, CopyToTraits, and CopyToStrings now
accept the preserveUnknown flag.

* Update resource153/custom_types.go

CopyToTimestamp, CopyToDuration, and CopyToLabel now accept the
preserveUnknown flag.

* Update summarizer/v1/custom_types.go

CopyToClassifierActionMode, and CopyToRiskLevel, now accept the
preserveUnknown flag.

* Exclude access_list_member fields

The following fields are managed by Teleport:
- member.spec.added_by
- member.spec.joined
- member.spec.name

* teleport_bot requires teleport.dev/origin label

* Fix outdated trusted_cluster example

* Exclude teleport_workload_cluster.status

* Compute teleport_discovery_config attributes

- spec.aws.install is now computed
- spec.aws.ssm is now computed

* Fix teleport_trusted_device terraform type

* Set `role.spec.options.idp` as a computed field

The default value for v7 roles is `idp.saml.enabled = true`

* Re-enable skipped tests

* Bump protoc-gen-terraform v4.0.0

* Update generated code for scopes resources
2026-08-05 18:29:19 +00:00
Aleksei Kozadaev 1d1fbe4a9f Migrate SAML connector to a new generic provider handling (#69279) 2026-08-05 16:23:40 +00:00
Kevin c0b7a9321b Add RequestKind validation for Slack review payloads (#69234)
* Add requestkind validation for slack interaction payloads

* Improve checks
2026-08-04 17:42:50 +00:00
Forrest a918ca53d1 scoped verbs rework (#69232) 2026-08-04 16:53:02 +00:00
alex hemard c9626aa8c1 [web ui] feat(Discovery): add Organization support for EC2 Discovery (#68961)
* feat(Discovery): add Organization support to AWS Discover enrollment

* validate included org units is non-empty

* update placeholders
2026-08-04 14:47:22 +00:00