appsmithorg / appsmithorg/appsmith

[Feature]Separate FrontEnd variables and BackEnd variables

Aperta
#6,977 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Enhancement Javascript Product JS Evaluation Low Query & JS Pod Query Widgets & IDE Pod
Lingua principale
TypeScript
Stelle
40.9k
Fork
4.8k
Merge medio
1g 22h
PR unite (30g)
45

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.