appsmithorg / appsmithorg/appsmith

[Feature]Separate FrontEnd variables and BackEnd variables

Đang mở
#6,977 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Enhancement Javascript Product JS Evaluation Low Query & JS Pod Query Widgets & IDE Pod
Ngôn ngữ chính
TypeScript
Star
40.9k
Fork
4.8k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
45

Mô tả

## Summary

For pages that are meant to be accessed by different users, we do not want the user to mess with some key variables.
For example, if the user is logged in as a@a.com and we only display all the data related to this account by filtering via parameter in API call, we obviously do not want the users to tweak this to b@a.com to peek data for a different user.

However, after seeing the network call for an API request with embedded variable, it is noticed that apparently all the parameters for APIs are passed from FE. For applications that require strong security, this makes them unusable.

I suggest that there should be some mechanisms that separate FE and BE variables. This might need some redesign but have the following benefits:

* Some sensitive variables are totally not tweakable from the FE. For example, the current logged users, permissions, etc.
* Some other data that require user selection, for example, items in the drop-down list, can be keyed. So only the key is stored. Actual values are in BE and will be transformed automatically. This also prevents a certain degree of tampering.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.