Skip to content

allow anti-forgery check to be disabled#1932

Merged
Erwinvandervalk merged 5 commits intomainfrom
ev/bff/configurable-anti-forgery-check-disable
Apr 4, 2025
Merged

allow anti-forgery check to be disabled#1932
Erwinvandervalk merged 5 commits intomainfrom
ev/bff/configurable-anti-forgery-check-disable

Conversation

@Erwinvandervalk
Copy link
Contributor

@Erwinvandervalk Erwinvandervalk commented Apr 1, 2025

What issue does this PR address?
The anti-forgery check can be disabled by changing the BffOptions.DisableAntiForgeryRequest method.

fixes: https://github.com/DuendeSoftware/products/issues/1732

Important: Any code or remarks in your Pull Request are under the following terms:

If You provide us with any comments, bug reports, feedback, enhancements, or modifications proposed or suggested by You for the Software, such Feedback is provided on a non-confidential basis (notwithstanding any notice to the contrary You may include in any accompanying communication), and Licensor shall have the right to use such Feedback at its discretion, including, but not limited to the incorporation of such suggested changes into the Software. You hereby grant Licensor a perpetual, irrevocable, transferable, sublicensable, nonexclusive license under all rights necessary to incorporate and use your Feedback for any purpose, including to make and sell any products and services.

(see our license, section 7)

@Erwinvandervalk Erwinvandervalk self-assigned this Apr 1, 2025
@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from 4381925 to a04bfaa Compare April 1, 2025 11:11
@Erwinvandervalk Erwinvandervalk modified the milestone: bff-4.0.0 Apr 1, 2025
@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from a04bfaa to 8a5ee81 Compare April 1, 2025 11:15
Copy link
Member

@josephdecock josephdecock left a comment

Choose a reason for hiding this comment

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

Do we have a fully fleshed out example of using a websocket with the BFF? Have we validated that we're not vulnerable to cross-site web socket hijacking?

@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from 13713c3 to 06a5222 Compare April 2, 2025 09:49
@Erwinvandervalk
Copy link
Contributor Author

Do we have a fully fleshed out example of using a websocket with the BFF? Have we validated that we're not vulnerable to cross-site web socket hijacking?

No. There are other issues with regards to websockets. I'll remove this implementation for now.

@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from 06a5222 to 8418ec4 Compare April 3, 2025 07:28
@Erwinvandervalk Erwinvandervalk requested a review from damianh April 3, 2025 08:46
@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from 8418ec4 to 54e7c4e Compare April 3, 2025 08:46
@Erwinvandervalk Erwinvandervalk force-pushed the ev/bff/configurable-anti-forgery-check-disable branch from 54e7c4e to a19ad95 Compare April 3, 2025 09:52
@Erwinvandervalk Erwinvandervalk merged commit 67aea30 into main Apr 4, 2025
30 checks passed
@Erwinvandervalk Erwinvandervalk deleted the ev/bff/configurable-anti-forgery-check-disable branch April 4, 2025 10:15
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.

Feature Request: IBffApiSkipAntiforgery with Skip method

3 participants