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

fix(rpc): change the default json-rpc listen address to localhost #17470

Merged
merged 7 commits into from
Aug 23, 2023

Conversation

mmsqe
Copy link
Contributor

@mmsqe mmsqe commented Aug 21, 2023

to avoid open to public by default

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • run make lint and make test
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@github-actions github-actions bot added the C:Confix Issues and PR related to Confix label Aug 21, 2023
@mmsqe mmsqe changed the title rpc: change listen address to 127.0.0.1 rpc: change the default json-rpc listen address to localhost Aug 21, 2023
@mmsqe mmsqe changed the title rpc: change the default json-rpc listen address to localhost fix(rpc): change the default json-rpc listen address to localhost Aug 21, 2023
@mmsqe mmsqe marked this pull request as ready for review August 21, 2023 01:34
@mmsqe mmsqe requested a review from a team as a code owner August 21, 2023 01:34
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

somewhat related: #13778
For naming consistency with the above, should not we set it to localhost instead of 127.0.0.1?

.github/workflows/test.yml Outdated Show resolved Hide resolved
tools/confix/data/v0.45-app.toml Outdated Show resolved Hide resolved
tools/confix/data/v0.46-app.toml Outdated Show resolved Hide resolved
@mmsqe mmsqe marked this pull request as draft August 21, 2023 07:50
@github-actions github-actions bot added Type: Build and removed C:Confix Issues and PR related to Confix labels Aug 22, 2023
@mmsqe
Copy link
Contributor Author

mmsqe commented Aug 22, 2023

somewhat related: #13778
For naming consistency with the above, should not we set it to localhost instead of 127.0.0.1?

need use 127.0.0.1 instead of localhost to avoid mix ipv4 and ipv6 when LookupIP

@mmsqe mmsqe marked this pull request as ready for review August 23, 2023 07:24
CHANGELOG.md Outdated
@@ -49,6 +49,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

* (types) [#16583](https://github.com/cosmos/cosmos-sdk/pull/16583), [#17372](https://github.com/cosmos/cosmos-sdk/pull/17372) Add `MigrationModuleManager` to handle migration of upgrade module before other modules, ensuring access to the updated context with consensus parameters within the same block that executes the migration.
* (rpc) [#17470](https://github.com/cosmos/cosmos-sdk/pull/17470) Avoid open 0.0.0.0 to public by default and add `listen-ip-address` argument for `testnet init-files` cmd.
Copy link
Member

Choose a reason for hiding this comment

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

imho, this isn't a bug. could we have this under improvement?

@julienrbrt julienrbrt added this pull request to the merge queue Aug 23, 2023
Merged via the queue into cosmos:main with commit 751c0c8 Aug 23, 2023
43 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants