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

feat(security): secure segments queries #747

Merged
merged 5 commits into from
Jul 2, 2021

Conversation

Thenkei
Copy link
Contributor

@Thenkei Thenkei commented Jun 16, 2021

Pull Request checklist:

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Review my own code (indentation, syntax, style, simplicity, readability)
  • Wonder if you can improve the existing code

@Thenkei Thenkei force-pushed the feat/security-segments-permissions branch from 0a72503 to e1170a3 Compare June 16, 2021 15:04
@forest-bot
Copy link
Member

@Thenkei Thenkei assigned Thenkei and unassigned DrRaider Jul 2, 2021
@Thenkei Thenkei merged commit 23e8817 into beta Jul 2, 2021
@Thenkei Thenkei deleted the feat/security-segments-permissions branch July 2, 2021 07:57
forest-bot added a commit that referenced this pull request Jul 2, 2021
# [9.0.0-beta.9](v9.0.0-beta.8...v9.0.0-beta.9) (2021-07-02)

### Features

* **security:** secure segments queries ([#747](#747)) ([23e8817](23e8817))
@forest-bot
Copy link
Member

🎉 This PR is included in version 9.0.0-beta.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Jul 19, 2021
# [9.0.0](v8.7.5...v9.0.0) (2021-07-19)

### Bug Fixes

* handle composite primary key case when checking permissions for smart actions ([#756](#756)) ([30e8002](30e8002))
* **smart-action:** smart actions after trying to mitigate breaking change ([#754](#754)) ([c413992](c413992))
* remove breaking change on smart action middleware ([#739](#739)) ([b2a8f74](b2a8f74))
* update record getter usage in action route to use global scope ([#730](#730)) ([b92f158](b92f158))

### Features

* smart action hooks now have access to the http request ([#753](#753)) ([ea5cd59](ea5cd59))
* **security:** secure segments queries ([#747](#747)) ([23e8817](23e8817))
* **smart-action:** add changedField argument on hook function ([#716](#716)) ([709fe32](709fe32))
* **smart-action:** user can add dynamically field with hook on smart action form ([#717](#717)) ([910df2b](910df2b))

* feat(scopes)!: enforce scopes restrictions on a wider range of requests (#702) ([e36026e](e36026e)), closes [#702](#702)

### BREAKING CHANGES

* record is no longer send to the hook midleware & values option on smart action is no longer supported
* **smart-action:** change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook
* **smart-action:** fields parameters on hook function is no longer a map of field, it is now an array.
* the public API of the package has changed to include the parameters which are needed to evaluate scope filters. This includes PermissionMiddlewareCreator, all classes on the /exposed folder and most services.
@forest-bot
Copy link
Member

🎉 This PR is included in version 9.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants