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

chore(nodebuilder/state): SubmitTx endpoint takes read-level permissions #3072

Merged
merged 11 commits into from
Jan 19, 2024

Conversation

moldis
Copy link
Contributor

@moldis moldis commented Jan 8, 2024

refactor: changes SubmitTX permissions from write to read.

Following the issue requirement, this PR changes SubmitTX permissions from write to read

Changes:

  • Updated nodebuilder/state/state.go from write to read permissions
  • Updated following tests (api/rpc_test.go) and added extra check for SubmitTX rpc call (read permissions check).

closes #2958

@github-actions github-actions bot added the external Issues created by non node team members label Jan 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b2d82a) 51.30% compared to head (a6df95a) 51.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3072      +/-   ##
==========================================
- Coverage   51.30%   51.10%   -0.20%     
==========================================
  Files         177      177              
  Lines       11139    11139              
==========================================
- Hits         5715     5693      -22     
- Misses       4927     4952      +25     
+ Partials      497      494       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

api/rpc_test.go Outdated Show resolved Hide resolved
api/rpc_test.go Outdated Show resolved Hide resolved
@renaynay renaynay changed the title changing SubmitTX to read permissions feat(nodebuilder/state): SubmitTx endpoint takes read-level permissions Jan 9, 2024
@renaynay renaynay added the kind:feat Attached to feature PRs label Jan 9, 2024
@renaynay renaynay changed the title feat(nodebuilder/state): SubmitTx endpoint takes read-level permissions chore(nodebuilder/state): SubmitTx endpoint takes read-level permissions Jan 9, 2024
@renaynay renaynay added kind:chore and removed kind:feat Attached to feature PRs labels Jan 9, 2024
@Partykingdk
Copy link

ok

Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@renaynay renaynay enabled auto-merge (squash) January 19, 2024 15:53
@renaynay renaynay merged commit 2294805 into celestiaorg:main Jan 19, 2024
15 of 17 checks passed
renaynay pushed a commit that referenced this pull request Jan 23, 2024
…ons (#3072)

<!--
Thank you for submitting a pull request!

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

Please ensure you've addressed or included references to any related
issues.

Tips:
- Use keywords like "closes" or "fixes" followed by an issue number to
automatically close related issues when the PR is merged (e.g., "closes
#123" or "fixes #123").
- Describe the changes made in the PR.
- Ensure the PR has one of the required tags (kind:fix, kind:misc,
kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci,
kind:chore, kind:testing)

-->
refactor: changes SubmitTX permissions from write to read.

Following the issue requirement, this PR changes SubmitTX permissions
from _write_ to _read_

Changes:

* Updated nodebuilder/state/state.go from **write** to **read**
permissions
* Updated following tests (api/rpc_test.go) and added extra check for
SubmitTX rpc call (read permissions check).

closes #2958

---------

Co-authored-by: [NODERS]TEAM <office@noders.team>
Co-authored-by: ramin <raminkeene@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nodebuilder/state: Make SubmitTx endpoint a read-level permission
8 participants