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

Encrypted fields have an issue with truncating. #853

Open
MelissaAutumn opened this issue Feb 5, 2025 · 0 comments · May be fixed by #854
Open

Encrypted fields have an issue with truncating. #853

MelissaAutumn opened this issue Feb 5, 2025 · 0 comments · May be fixed by #854
Assignees
Labels
bug Something isn't working

Comments

@MelissaAutumn
Copy link
Member

Encrypted fields are encrypted and then converted to base64 as noted here: https://github.com/kvesteri/sqlalchemy-utils/blob/master/sqlalchemy_utils/types/encrypted/encrypted_type.py#L114

We don't take into account the length of the additions from the cipher or base64 encoding. We should do that, and then update the strings and do a data migration to nuke a known case with schedule's detail field: https://thunderbird.sentry.io/issues/6269890787/?project=4505428124827648&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&statsPeriod=14d&stream_index=13

@MelissaAutumn MelissaAutumn added the bug Something isn't working label Feb 5, 2025
@MelissaAutumn MelissaAutumn self-assigned this Feb 5, 2025
MelissaAutumn added a commit that referenced this issue Feb 5, 2025
)

We also fix up an existing issue with a user's schedules.details field.
MelissaAutumn added a commit that referenced this issue Feb 5, 2025
)

We also fix up an existing issue with a user's schedules.details field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant