E2E: remove AccessManager role-id checks for canceler/operator; align docs on role 1 vs 2 #98
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
E2E currently grants and/or asserts
AccessManagerroles using IDs named like operator/canceler (e.g. role1/2). **Bridgedoes not useAccessManagerforwithdrawApprove/withdrawCancel**—authorisation isaddOperator/addCanceler(and owner where applicable). ThosegrantRole/hasRolechecks are misleading and can diverge from production RBAC.Tasks
E2E
AccessManagerrole IDs (1,2, or constants namedOPERATOR_ROLE_ID/CANCELER_ROLE_ID).Bridge: e.g.addOperator/addCanceler, or deployment owner /initializeoperator, matching how the contract actually gates calls.grantRolecalls if nothing meaningful consumes them after the refactor.Docs
TokenRateLimit/GuardBridgeas applicable).addOperator/addCanceler.Context
packages/e2e:chain_config.rs,setup/evm.rs, and any fraud/detection tests thathasRoleonAccessManagerfor canceler/operator semantics.README.md,docs/deployment-guide.md,docs/deployment-solana-mainnet.md/OPERATIONAL_NOTESas needed so role 1/2 are not confused with Bridge RBAC.Acceptance criteria
mentioned in commit
f1d175e34aResolved in
main(f1d175e)E2E
AccessManager.grantRolewith numeric IDs 1 and 2 as a stand-in for Bridge operator/canceler.ensure_bridge_rbac_for_e2e/grant_test_account_rolespaths that useBridge.addOperator/addCancelerandcast callonisOperator/isCanceler, matching production withdraw RBAC.query_bridge_is_canceler/query_bridge_is_operator; renamed AccessManager helper toquery_access_manager_has_roleand documented role 1 as minter/MintBurn-stack smoke only.deploy.rsAccessManager grant helpers andOPERATOR_ROLE_ID/CANCELER_ROLE_IDexports.Docs & CI
addOperator/addCanceler.Bridge.addCancelerinstead of AMgrantRole.Misc
CANCELER_ROLEon AccessManager for Bridge.Closing as addressed.
mentioned in issue #111