Skip to content

Conversation

@mdtro
Copy link
Contributor

@mdtro mdtro commented May 29, 2024

Supports getsentry/rfcs#32

We've been hashing tokens as they are used to authenticate (#65941), but it's started to level out. This is a backfill migration to fill in all of the hashed values for the remaining tokens.

Huge thank you to @markstory @wedamija and @GabeVillalobos for helping with the migration test! 🙏

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 29, 2024
@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0725_apitoken_backfill_hashes.py ()

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2024

This PR has a migration; here is the generated SQL for src/sentry/migrations/0726_apitoken_backfill_hashes.py ()

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good to me, just a couple of small comments to help make sure this migration doesn't break in the future

@codecov
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.99%. Comparing base (3468fac) to head (c3f4410).
Report is 11 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #71728   +/-   ##
=======================================
  Coverage   77.99%   77.99%           
=======================================
  Files        6582     6582           
  Lines      293498   293498           
  Branches    50641    50641           
=======================================
+ Hits       228900   228913   +13     
+ Misses      58366    58351   -15     
- Partials     6232     6234    +2     

see 11 files with indirect coverage changes

@mdtro mdtro merged commit 2a5bbd8 into master Jun 10, 2024
@mdtro mdtro deleted the mdtro/backfill-apitoken-hashes branch June 10, 2024 16:15
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants