Skip to content

Move auth preference module validation to RPC layer#54687

Merged
rosstimothy merged 1 commit intomasterfrom
tross/validate_auth_pref
May 13, 2025
Merged

Move auth preference module validation to RPC layer#54687
rosstimothy merged 1 commit intomasterfrom
tross/validate_auth_pref

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented May 9, 2025

The module validation rejects auth preferences that have second factor disabled without the environment variable override. Doing this in the storage layer means that in order to disable second factor the environment variable needs to be set on all teleport processes not just Auth. This can result in caches of downstream agents from becoming healthy until the manual override is applied. The intent is to prevent modifying an the auth preference to disable second factor, which when moved to the RPC layer, has the same affect without the possibility of caches performing extra validation.

Changelog: Prevent restrictive validation of cluster auth preferences from causing non-auth instances to become healthy.

@rosstimothy rosstimothy force-pushed the tross/validate_auth_pref branch 2 times, most recently from d93e22a to 10dfd8f Compare May 12, 2025 19:34
@rosstimothy rosstimothy force-pushed the tross/validate_auth_pref branch 2 times, most recently from 9bb8672 to 08ea3cc Compare May 12, 2025 20:46
@rosstimothy rosstimothy marked this pull request as ready for review May 12, 2025 21:40
@rosstimothy rosstimothy requested a review from espadolini May 12, 2025 21:40
@github-actions github-actions Bot requested review from hugoShaka and kopiczko May 12, 2025 21:40
Comment thread lib/services/local/configuration.go
@rosstimothy rosstimothy requested a review from espadolini May 13, 2025 12:25
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from kopiczko May 13, 2025 12:49
@rosstimothy rosstimothy force-pushed the tross/validate_auth_pref branch from 199f64a to eb5967b Compare May 13, 2025 13:53
@rosstimothy rosstimothy enabled auto-merge May 13, 2025 13:55
@rosstimothy rosstimothy force-pushed the tross/validate_auth_pref branch from eb5967b to 08a478b Compare May 13, 2025 14:17
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
@rosstimothy rosstimothy force-pushed the tross/validate_auth_pref branch from 08a478b to 5dcc45e Compare May 13, 2025 14:19
@rosstimothy rosstimothy added this pull request to the merge queue May 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 13, 2025
@rosstimothy rosstimothy added this pull request to the merge queue May 13, 2025
Merged via the queue into master with commit 8e99727 May 13, 2025
40 checks passed
@rosstimothy rosstimothy deleted the tross/validate_auth_pref branch May 13, 2025 15:24
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@rosstimothy See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Create PR
branch/v18 Create PR

rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
rosstimothy added a commit that referenced this pull request May 13, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
github-merge-queue Bot pushed a commit that referenced this pull request May 15, 2025
The module validation rejects auth preferences that have second
factor disabled without the environment variable override. Doing
this in the storage layer means that in order to disable second
factor the environment variable needs to be set on _all_ teleport
processes not just Auth. This can result in caches of downstream
agents from becoming healthy until the manual override is applied.
The intent is to prevent modifying an the auth preference to disable
second factor, which when moved to the RPC layer, has the same
affect without the possibility of caches performing extra validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants