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

test: ensure data strictness #10123

Merged
merged 1 commit into from
Dec 22, 2024
Merged

test: ensure data strictness #10123

merged 1 commit into from
Dec 22, 2024

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Dec 21, 2024

Ensures we don't save and read additional properties to the database with both, Local API and payload.db.

expect(keys).not.toContain('confirm-password')
})

it('should not save and leak password, confirm-password from payload.db', async () => {
Copy link
Member Author

@r1tsuu r1tsuu Dec 21, 2024

Choose a reason for hiding this comment

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

maybe we shouldn't be strict for payload.db, though, as REST / GraphQL calls the Local API, thoughts?

@r1tsuu r1tsuu merged commit ed0d339 into main Dec 22, 2024
71 checks passed
@r1tsuu r1tsuu deleted the test-keys-safety-auth branch December 22, 2024 07:37
Copy link
Contributor

🚀 This is included in version v3.12.0

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

Successfully merging this pull request may close these issues.

2 participants