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

docs: update links for https security protocol #22514

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

Wukingbow
Copy link
Contributor

@Wukingbow Wukingbow commented Nov 12, 2024

Description

update links for https security protocol and new links

Summary by CodeRabbit

  • Documentation
    • Updated URLs in the Code of Conduct for enhanced security (HTTP to HTTPS).
    • Enhanced event handling documentation with the introduction of typed events in the Cosmos SDK.
    • Updated JSON schema reference in the signed messages documentation to HTTPS for improved security.
    • Minor textual adjustments for clarity in the documentation of signed messages.

@Wukingbow Wukingbow requested a review from a team as a code owner November 12, 2024 10:35
Copy link
Contributor

coderabbitai bot commented Nov 12, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces several changes across multiple documentation files. It updates URLs from HTTP to HTTPS in the CODE_OF_CONDUCT.md, ics-030-signed-messages.md, and enhances the event handling mechanism in the adr-032-typed-events.md by introducing typed events. The changes aim to improve security and standardize event handling within the Cosmos SDK.

Changes

File Change Summary
CODE_OF_CONDUCT.md Updated URLs from HTTP to HTTPS for the Contributor Covenant homepage and version references.
docs/architecture/adr-032-typed-events.md Introduced typed events with new functions EmitTypedEvent and ParseTypedEvent, and added proto definitions for event handling.
docs/spec/_ics/ics-030-signed-messages.md Updated JSON schema URL from HTTP to HTTPS and made minor textual adjustments for clarity.

Possibly related PRs

Suggested labels

backport/v0.52.x

Suggested reviewers

  • julienrbrt
  • tac0turtle

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
docs/architecture/adr-032-typed-events.md (2)

25-25: Fix grammatical issues for better readability

There are several grammatical improvements needed in this paragraph:

  1. Add a comma after "In addition"
  2. Use hyphenation for the compound adjective "event-driven" consistently

Apply these changes:

- [Our platform](https://github.com/akash-network/node) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition the Akash team is now maintaining the IBC [`relayer`](https://github.com/ovrclk/relayer), another very event driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event driven application.
+ [Our platform](https://github.com/akash-network/node) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition, the Akash team is now maintaining the IBC [`relayer`](https://github.com/ovrclk/relayer), another very event-driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event-driven application.
🧰 Tools
🪛 LanguageTool

[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/ovrclk/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)


Line range hint 1-24: Consider enhancing the ADR with additional sections

The ADR is well-structured but could benefit from additional clarity in a few areas:

  1. Given the concrete implementation details, consider updating the status from "Proposed" to "Accepted" or clarify if this is still under discussion.
  2. Add a section about backward compatibility and migration strategy for existing applications.
  3. Consider adding a section about testing strategy for typed events.

Would you like assistance in drafting these additional sections?

🧰 Tools
🪛 LanguageTool

[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/ovrclk/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)


[uncategorized] ~27-~27: The adjective “event-driven” is spelled with a hyphen.
Context: .... there will be an exploding demand for event driven applications to support new features de...

(DRIVEN_HYPHEN)


[uncategorized] ~27-~27: The adjective “event-driven” is spelled with a hyphen.
Context: ...pplications to quickly and easily build event driven apps to aid their core application. Wal...

(DRIVEN_HYPHEN)

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 96a1c1c and f99a99d.

📒 Files selected for processing (3)
  • CODE_OF_CONDUCT.md (1 hunks)
  • docs/architecture/adr-032-typed-events.md (1 hunks)
  • docs/spec/_ics/ics-030-signed-messages.md (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • CODE_OF_CONDUCT.md
  • docs/spec/_ics/ics-030-signed-messages.md
🧰 Additional context used
📓 Path-based instructions (1)
docs/architecture/adr-032-typed-events.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

🪛 LanguageTool
docs/architecture/adr-032-typed-events.md

[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/ovrclk/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)

@@ -22,7 +22,7 @@ Currently in the Cosmos SDK, events are defined in the handlers for each message

Currently in the Cosmos SDK, events are defined in the handlers for each message, meaning each module doesn't have a canonical set of types for each event. Above all else this makes these events difficult to consume as it requires a great deal of raw string matching and parsing. This proposal focuses on updating the events to use **typed events** defined in each module such that emitting and subscribing to events will be much easier. This workflow comes from the experience of the Akash Network team.

[Our platform](http://github.com/ovrclk/akash) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition the Akash team is now maintaining the IBC [`relayer`](https://github.com/ovrclk/relayer), another very event driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event driven application.
[Our platform](https://github.com/akash-network/node) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition the Akash team is now maintaining the IBC [`relayer`](https://github.com/ovrclk/relayer), another very event driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event driven application.
Copy link
Contributor

Choose a reason for hiding this comment

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

could u replace the relayer link too?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
docs/architecture/adr-032-typed-events.md (1)

25-25: Fix grammatical and typographical issues

Several improvements needed in this paragraph:

  1. Add a comma after "In addition"
  2. Use hyphenated form "event-driven" instead of "event driven"
  3. The link to the relayer repository should use HTTPS

Apply these changes:

-[Our platform](https://github.com/akash-network/node) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition the Akash team is now maintaining the IBC [`relayer`](https://github.com/cosmos/relayer), another very event driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event driven application.
+[Our platform](https://github.com/akash-network/node) requires a number of programmatic on chain interactions both on the provider (datacenter - to bid on new orders and listen for leases created) and user (application developer - to send the app manifest to the provider) side. In addition, the Akash team is now maintaining the IBC [`relayer`](https://github.com/cosmos/relayer), another very event-driven process. In working on these core pieces of infrastructure, and integrating lessons learned from Kubernetes development, our team has developed a standard method for defining and consuming typed events in Cosmos SDK modules. We have found that it is extremely useful in building this type of event-driven application.
🧰 Tools
🪛 LanguageTool

[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/cosmos/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f99a99d and c58ce4b.

📒 Files selected for processing (1)
  • docs/architecture/adr-032-typed-events.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/architecture/adr-032-typed-events.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

🪛 LanguageTool
docs/architecture/adr-032-typed-events.md

[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/cosmos/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)

🔇 Additional comments (1)
docs/architecture/adr-032-typed-events.md (1)

Line range hint 1-24: Technical content looks good

The ADR is well-structured and provides:

  • Clear problem statement and motivation
  • Detailed implementation steps with code examples
  • Comprehensive guidance for consuming typed events
  • Proper integration with protobuf

Also applies to: 26-999

🧰 Tools
🪛 LanguageTool

[uncategorized] ~23-~23: Possible missing comma found.
Context: ... set of types for each event. Above all else this makes these events difficult to co...

(AI_HYDRA_LEO_MISSING_COMMA)


[typographical] ~25-~25: Consider adding a comma after this introductory phrase.
Context: ... app manifest to the provider) side. In addition the Akash team is now maintaining the I...

(IN_GENERAL_COMMA)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...ithub.com/cosmos/relayer), another very event driven process. In working on these core piece...

(DRIVEN_HYPHEN)


[uncategorized] ~25-~25: The adjective “event-driven” is spelled with a hyphen.
Context: ...tremely useful in building this type of event driven application. As the Cosmos SDK gets us...

(DRIVEN_HYPHEN)


[uncategorized] ~27-~27: The adjective “event-driven” is spelled with a hyphen.
Context: .... there will be an exploding demand for event driven applications to support new features de...

(DRIVEN_HYPHEN)


[uncategorized] ~27-~27: The adjective “event-driven” is spelled with a hyphen.
Context: ...pplications to quickly and easily build event driven apps to aid their core application. Wal...

(DRIVEN_HYPHEN)

@julienrbrt julienrbrt added this pull request to the merge queue Nov 12, 2024
Merged via the queue into cosmos:main with commit f1bd0d8 Nov 12, 2024
71 of 73 checks passed
alpe added a commit that referenced this pull request Nov 13, 2024
* main: (31 commits)
  docs: update links for https security protocol (#22514)
  build(deps): Bump github.com/bytedance/sonic from 1.12.3 to 1.12.4 in /log (#22513)
  feat(x/protocolpool)!: allow any coins in continuous funds (#21916)
  docs: Update protobuf  tx signing message format outer link (#22510)
  test(accounts): fix integration tests (#22418)
  chore(x): fix some typos in comment (#22508)
  build(deps): Bump cosmossdk.io/log from 1.4.1 to 1.5.0 (#22487)
  build(deps): Bump cosmossdk.io/core from 1.0.0-alpha.5 to 1.0.0-alpha.6 (#22502)
  build(deps): Bump golang.org/x/crypto from 0.28.0 to 0.29.0 (#22480)
  docs(adr75): server v2 (#21069)
  fix(server/v2): improve server stop (#22455)
  chore: prepare core changelog (#22495)
  refactor(store/v2): simplify genesis flow (#22435)
  build(deps): Bump google.golang.org/grpc from 1.67.1 to 1.68.0 (#22486)
  build(deps): Bump golang.org/x/sync from 0.8.0 to 0.9.0 (#22482)
  feat(x/circuit): Allow msg Reset with empty msgURL (#22459)
  build(deps): Bump actions/xxx-artifact from v3 to v4 (#22468)
  feat(stf/branch): simplify merged iterator (#22131)
  refactor(log): disable coloring in testing logger (#22466)
  chore(x/tx): update changelog to alpha.2 (#22465)
  ...
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.

4 participants