Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly default auth's storage config #48247

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Properly default auth's storage config #48247

merged 1 commit into from
Nov 1, 2024

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Oct 31, 2024

I was trying to run TestDynamicClientReuse locally and noticed an error trying to write to /var/lib/teleport, which is unexpected since the test sets the data dir to a temp directory.

It turns out that most of our tests override the datadir, but fail to also update the auth's storage config.

Instead of fixing this in a bunch of tests, stop defaulting auth storage to a hard-coded /var/lib/teleport and instead set the default after we know what the configured data dir is supposed to be.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48247.d3pp5qlev8mo18.amplifyapp.com

@zmb3 zmb3 changed the title Fix the data dir for tests (WIP) Properly default auth's storage config Oct 31, 2024
@zmb3 zmb3 added the no-changelog Indicates that a PR does not require a changelog entry label Oct 31, 2024
Most of our tests override cfg.DataDir, but auth's storage config
still uses a hard-coded /var/lib/teleport for backend state.

Instead of fixing this in a bunch of tests, we stop defaulting to
/var/lib/teleport and set the storage dir only after we know what
the configured data dir is.
@zmb3 zmb3 enabled auto-merge November 1, 2024 15:10
@zmb3 zmb3 added this pull request to the merge queue Nov 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 1, 2024
@zmb3 zmb3 added this pull request to the merge queue Nov 1, 2024
Merged via the queue into master with commit 1aa5a72 Nov 1, 2024
40 checks passed
@zmb3 zmb3 deleted the zmb3/datadir branch November 1, 2024 16:21
@public-teleport-github-review-bot

@zmb3 See the table below for backport results.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants