Skip to content

fix: Remove unique index on auth tokens #1120

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

Merged
merged 1 commit into from
Apr 25, 2022
Merged

fix: Remove unique index on auth tokens #1120

merged 1 commit into from
Apr 25, 2022

Conversation

kylecarbs
Copy link
Member

If a workspace is started multiple times, resources may
not be invalidated. This means an auth token can be
reused for a workspace.

coderd closes old agent connections, so this is expected
behavior and the agent will reconnect properly.

@kylecarbs kylecarbs requested a review from coadler April 25, 2022 02:53
@kylecarbs kylecarbs self-assigned this Apr 25, 2022
@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #1120 (4b84bbf) into main (0c042dc) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1120      +/-   ##
==========================================
+ Coverage   66.54%   66.58%   +0.04%     
==========================================
  Files         259      259              
  Lines       16159    16159              
  Branches      156      156              
==========================================
+ Hits        10753    10760       +7     
+ Misses       4301     4295       -6     
+ Partials     1105     1104       -1     
Flag Coverage Δ
unittest-go-macos-latest 53.86% <ø> (+0.02%) ⬆️
unittest-go-postgres- 65.97% <ø> (+0.04%) ⬆️
unittest-go-ubuntu-latest 56.34% <ø> (-0.02%) ⬇️
unittest-go-windows-2022 53.32% <ø> (+0.04%) ⬆️
unittest-js 67.28% <ø> (ø)
Impacted Files Coverage Δ
cli/cliui/agent.go 77.19% <0.00%> (-5.27%) ⬇️
cli/cliui/provisionerjob.go 76.42% <0.00%> (-2.15%) ⬇️
coderd/provisionerdaemons.go 62.79% <0.00%> (-0.51%) ⬇️
provisioner/terraform/provision.go 70.96% <0.00%> (-0.44%) ⬇️
provisionerd/provisionerd.go 77.56% <0.00%> (-0.14%) ⬇️
peerbroker/proxy.go 58.72% <0.00%> (+0.58%) ⬆️
peer/conn.go 79.69% <0.00%> (+0.76%) ⬆️
provisioner/echo/serve.go 56.80% <0.00%> (+2.39%) ⬆️
coderd/workspaceagents.go 64.07% <0.00%> (+2.96%) ⬆️
codersdk/provisionerdaemons.go 67.60% <0.00%> (+5.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c042dc...4b84bbf. Read the comment docs.

If a workspace is started multiple times, resources may
not be invalidated. This means an auth token can be
reused for a workspace.

coderd closes old agent connections, so this is expected
behavior, and the agent will reconnect properly.
@kylecarbs kylecarbs merged commit d448763 into main Apr 25, 2022
@kylecarbs kylecarbs deleted the authindex branch April 25, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants