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

Move process storage to separate package #43093

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jun 17, 2024

The auth state package contained both process state information and the backing storage used to persist the state. This turns out to be an expensive package for consumers that only care about state and not storage since it brings sqlite into the dependency tree. By splitting storage out to a separate package consumers it makes it possible to build client tools that don't require knowing about process storage to be built without cgo enabled.

Updates #43112

@rosstimothy rosstimothy force-pushed the tross/auth_storage branch 3 times, most recently from dec7656 to 6b1d47c Compare June 17, 2024 16:30
@rosstimothy rosstimothy marked this pull request as ready for review June 17, 2024 17:12
@github-actions github-actions bot added size/sm tctl tctl - Teleport admin tool labels Jun 17, 2024
@github-actions github-actions bot requested review from gzdunek and nklaassen June 17, 2024 17:12
@rosstimothy rosstimothy added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v14 backport/branch/v15 backport/branch/v16 labels Jun 17, 2024
@gravitational gravitational deleted a comment from github-actions bot Jun 17, 2024
lib/auth/storage/storage.go Show resolved Hide resolved
lib/auth/storage/storage.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy requested a review from strideynet June 18, 2024 15:29
@rosstimothy
Copy link
Contributor Author

Friendly ping reviewers

The auth state package contained both process state
information and the backing storage used to persist
the state. This turns out to be an expensive package
for consumers that only care about state and not
storage since it brings sqlite into the dependency
tree. By splitting storage out to a separate package
consumers it makes it possible to build client tools
that don't require knowing about process storage to
be built without cgo enabled.
@rosstimothy rosstimothy enabled auto-merge June 20, 2024 15:16
@rosstimothy rosstimothy added this pull request to the merge queue Jun 20, 2024
@rosstimothy rosstimothy removed this pull request from the merge queue due to a manual request Jun 20, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Jun 20, 2024
Merged via the queue into master with commit 46e1275 Jun 20, 2024
37 checks passed
@rosstimothy rosstimothy deleted the tross/auth_storage branch June 20, 2024 16:25
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR
branch/v16 Create PR

rosstimothy added a commit that referenced this pull request Jun 20, 2024
The auth state package contained both process state
information and the backing storage used to persist
the state. This turns out to be an expensive package
for consumers that only care about state and not
storage since it brings sqlite into the dependency
tree. By splitting storage out to a separate package
consumers it makes it possible to build client tools
that don't require knowing about process storage to
be built without cgo enabled.
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2024
The auth state package contained both process state
information and the backing storage used to persist
the state. This turns out to be an expensive package
for consumers that only care about state and not
storage since it brings sqlite into the dependency
tree. By splitting storage out to a separate package
consumers it makes it possible to build client tools
that don't require knowing about process storage to
be built without cgo enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v14 backport/branch/v15 backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants