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

Block eth msgs from authz #1241

Merged
merged 8 commits into from
May 6, 2022
Merged

Block eth msgs from authz #1241

merged 8 commits into from
May 6, 2022

Conversation

rhuairahrighairidh
Copy link
Member

@rhuairahrighairidh rhuairahrighairidh commented May 4, 2022

A MsgEthereumTx executed in a authz.MsgExec will be sent directly to the evm msg_server and skip the ethereum antehandler. This will likely cause problems with gas or sig checking.

This PR blocks MsgEthereumTxs from being used in authz by rejecting them in the antehandler. It also expands the existing block of MsgCreateVestingAccount to prevent use through authz.

The block handles the edge case of authz msgs being wrapped in authz msgs (eg a MsgExec that runs another MsgExec that runs a MsgEthereumTx) by recursively checking msgs.

@rhuairahrighairidh rhuairahrighairidh marked this pull request as ready for review May 5, 2022 12:32
@rhuairahrighairidh rhuairahrighairidh marked this pull request as draft May 5, 2022 12:56
@rhuairahrighairidh rhuairahrighairidh marked this pull request as ready for review May 5, 2022 15:09
@karzak karzak merged commit 87341cd into master May 6, 2022
@karzak karzak deleted the ro-block-eth-msgs-from-authz branch May 6, 2022 18:41
karzak added a commit that referenced this pull request May 10, 2022
* kava-10 upgrade instructions (#1227)

* migrate doc for kava 10

* update wording

* height & time update

* update to 4 hours before failure

* correct times & block height

* add rollback doc

Co-authored-by: karzak <kjydavis3@gmail.com>

* e2e test for kava 9 -> kava 10 migration (#1232)

* e2e test for kava9 export

* fix bad chain id

* fix unsafe-reset-all cmd reference (#1235)

* update upgrade time to account for most recent data (#1236)

* disable fee market for kava v0_17 migration (#1237)

* Update committee permissions for kava-10 (#1234)

* add committee migration skeleton

* add helper methods to help modify permissions

* modify permissions in migration

* tidy up committee migrations into own file

* allow semi-colon separate of gas prices on app.toml without crashing (#1239)

when setting the base app min gas price

* Fix unsafe-reset-all command (#1238)

* hack to set tendermint config correctly

* Revert "hack to set tendermint config correctly"

This reverts commit d34150a.

* update cosmos-sdk to include env prefix fix

* update address (#1242)

* disable london fork for kava 10 evm and dev chain (#1240)

* Correct date

* Block eth msgs from authz (#1241)

* add decorator to block msgs in authz

* add to antehandler

* prevent vesting msgs skirting block via authz

* handle edge case of nested exec msgs

* test case to ensure msgs only blocked inside authz

* add app integration test

* tidy up error msg

* dep: update to latest ethermint (#1243)

* dep: update to latest ethermint

* Update to v17.2 with gas price endpoint fix

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>

* use master branch of tm-db to avoid questions about imports (#1244)

* tidy up go.mod and update cosmos-sdk fork version for v0.45.4 (#1245)

* update makefile build tags (#1246)

* gofumpt - apply format changes for readability and consistency (#1248)

* update tm-db to kava fork for rocksdb 7.1.2 support w/ grocksdb, (#1249)

snapshot dir fix

* remove migration cmd for testnet

* add migration code for auction & incentive from v0.17.0-testnet

* add store loader for new modules; add migration handler to run
migrations, then update evm & fee market state

* fix module version map initialization

Co-authored-by: Draco Li <draco@dracoli.com>
Co-authored-by: karzak <kjydavis3@gmail.com>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants