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: add role-based access control for bridge (backport #1358) #1359

Closed
wants to merge 2 commits into from

Commits on May 7, 2024

  1. feat: add role-based access control for bridge (#1358)

    * add submitting role proposal feature
    
    * feat: addVote
    
    * feat: role proposal confirmation logic
    
    * add gRPC for RBAC
    
    * fix checking trustLevel condition
    
    * validate role metadata during initialization
    
    * add invariants for metadata
    
    * delete expired proposal at begin blocker
    
    * add memStore and halting feature
    
    * remove redundant gRPC queries
    
    * fix endblock logic
    
    * add Params test
    
    * add dummy guardian for testing
    
    * remove redundant invariants
    
    * set bridge switch at missing parts
    
    * add gov authority
    
    * add guardian invariant
    
    * add single member query
    
    * return error if the address has no role
    
    * append genesis validation
    
    * add CLI
    
    * return all registered members if there is no query string
    
    * add unit tests for RBAC
    
    * merge `halt` with `resume` as `set-bridge-status`
    
    * Add CHANGELOG
    
    * add ERRORS docs
    
    * apply 0tech review
    
    * enhance bridge switch unit test
    
    * maintain bridge status metadata based on permanent states
    
    * change panic msg for unimplemented features
    
    * check duplicate seq in genesis
    
    * bridge inactive counter must always be initialization
    
    * bridge is always inactive if there is no guardian
    
    * start fbridge module after auth/bank
    
    * remove redundant invariant checking
    
    (cherry picked from commit 1c272c9)
    
    # Conflicts:
    #	CHANGELOG.md
    #	client/docs/swagger-ui/swagger.yaml
    #	x/ERRORS.md
    tkxkd0159 authored and mergify[bot] committed May 7, 2024
    Configuration menu
    Copy the full SHA
    da40933 View commit details
    Browse the repository at this point in the history
  2. fix conflicts

    tkxkd0159 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    1b4a45c View commit details
    Browse the repository at this point in the history