-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Keys are declared as var and exposed #1261
Comments
Yeah need to be constants and modified to a different type |
Closes by #1119 |
My bad, I misread what this issue was for. Relevant keys have been moved to |
Pretty sure this has been addressed. Going to close this issue. Please reopen and send any 🔥 -> @jackzampolin |
This is not addressed. https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper/key.go#L15 |
Pretty sure this has been addressed. Going to go ahead and close. Please reopen if I'm wrong. |
It has not been addressed, e.g. https://github.com/cosmos/cosmos-sdk/blob/master/x/staking/types/key.go#L13 |
We should expose some of these for querying from the store. |
(I'm not sure if this is a serious security concern, but the original state of affairs has not changed) |
Indeed, string constants should remain exported (eg. for use in queriers). Any keys used for persistent in stores should be constants and private if possible. |
Closing this issue as addressed. |
https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper_keys.go#L15
Other code can modify this values to cause unexpected behavior
The text was updated successfully, but these errors were encountered: