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

Add CSRF prevention plugin for graphql-yoga #410

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

wKich
Copy link
Member

@wKich wKich commented Oct 11, 2024

Signed-off-by: Dmitriy Lazarev [email protected]
Found by: Ali Basma from X41-Dsec GmBh

Motivation

Recently Backstage-core team contacted with me to notify that our graphql plugin doesn't prevent CSFR attack https://the-guild.dev/graphql/yoga-server/docs/features/csrf-prevention

Approach

Added graphql-yoga plugin to prevent CSRF

@wKich wKich requested review from cowboyd, jbolda and taras October 11, 2024 10:46
Copy link

changeset-bot bot commented Oct 11, 2024

🦋 Changeset detected

Latest commit: ad5158d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@frontside/backstage-plugin-graphql-backend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@frontsidejack
Copy link
Member

The following preview packages were published:

Name Version Install Command

@frontside/backstage-plugin-graphql-backend

0.1.10-dl-prevent-csrf-graphql.0

yarn add @frontside/backstage-plugin-graphql-backend@dl-prevent-csrf-graphql

@frontside/backstage-plugin-graphql-backend-module-catalog

0.3.5-dl-prevent-csrf-graphql.0

yarn add @frontside/backstage-plugin-graphql-backend-module-catalog@dl-prevent-csrf-graphql

Generated by @thefrontside/actions Frontside

Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

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

Thank you 🙏

@taras taras merged commit f5a8612 into main Oct 11, 2024
2 of 3 checks passed
@taras taras deleted the dl/prevent-csrf-graphql branch October 11, 2024 11:39
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.

3 participants