From 479ada727e545cf992e8dc009031f4ddb2ce916b Mon Sep 17 00:00:00 2001 From: Diana Borbe Date: Mon, 9 Nov 2026 14:17:35 +0100 Subject: [PATCH] chore: Add md files Signed-off-by: Diana Borbe --- ADOPTERS.md | 19 ++++ CODE_OF_CONDUCT.md | 11 ++ CONTRIBUTING.md | 136 ++++++++++++++++--------- GOVERNANCE.md | 26 +++++ MAINTAINERS.md | 42 ++++++++ RELEASES.md | 247 ++++----------------------------------------- SECURITY.md | 47 +++++++++ TSC_MEMBERS.md | 47 +++++++++ 8 files changed, 298 insertions(+), 277 deletions(-) create mode 100644 ADOPTERS.md create mode 100644 CODE_OF_CONDUCT.md create mode 100644 GOVERNANCE.md create mode 100644 MAINTAINERS.md create mode 100644 SECURITY.md create mode 100644 TSC_MEMBERS.md diff --git a/ADOPTERS.md b/ADOPTERS.md new file mode 100644 index 0000000000..da459f19e5 --- /dev/null +++ b/ADOPTERS.md @@ -0,0 +1,19 @@ + + +# Adopters + +This file lists known production and pilot deployments of IBC. If your organization uses IBC, please add yourself with a pull request. Entries are self-reported. + +| Organization | Use case | Status | +| --- | --- | --- | +| [Add your organization] | [Short description] | [Production / Pilot] | + +## Known deployments cited in the LFDT contribution proposal + +The following are referenced in the IBC LFDT proposal as production or ecosystem adopters. Confirm and convert to self-reported entries above where possible: + +- Ripple (XRPL), Figure, and Progmat among financial infrastructure providers. +- Fetch.ai, Crypto.com, and Injective among broad ecosystem adopters. +- More than 115 connected public networks, plus additional private networks and consortia. + +IBC has been in production for five years, processing more than 50 billion dollars in transaction volume with no loss of user funds on chains running supported, up-to-date releases. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..4febca8df8 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,11 @@ + + +# Code of Conduct + +The IBC project follows the [LF Decentralized Trust Code of Conduct](https://www.lfdecentralizedtrust.org/code-of-conduct). + +All participants in project spaces, including repositories, issues, pull requests, discussions, community calls, and chat, are expected to uphold it in all interactions. + +To report a concern, contact the project's Code of Conduct responders listed in [TSC_MEMBERS.md](TSC_MEMBERS.md), or escalate to LFDT per the process in the linked Code of Conduct. + +Reports are handled confidentially. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 07d24907b7..c1940a51b0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,78 +1,116 @@ -# Contributing to ibc-go + -Thank you for considering making contributions to ibc-go! 🎉👍 +# Contributing to IBC -## Code of conduct +Thank you for your interest in contributing to IBC. IBC is an open standard for trust-minimized interoperability between independent ledgers, stewarded under the Linux Foundation Decentralized Trust (LFDT). Contributions come in many forms, and all of them follow the same public path. -This project and everyone participating in it is governed by the Cosmos [code of conduct](https://github.com/cosmos/.github/blob/main/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code +Before participating, please read the LFDT Code of Conduct. If you use AI or LLM tooling in your contributions, see the AI sign-off rule under Developer Certificate of Origin below. -## How can I contribute? +## Ways to contribute -Contributing to this repository can mean many things such as participating in discussions or proposing code changes. To ensure a smooth workflow for all contributors, the general procedure for contributing has been established: +A contribution does not have to be code: -### Reporting bugs +- Report a bug as a GitHub issue using the bug template, with enough detail to reproduce. +- Propose a feature or enhancement as a GitHub issue using the feature template. +- Improve documentation, which follows the same pull request path as code and is the easiest first contribution. +- Submit code against an accepted issue. +- Review other contributors' pull requests, which is one of the most useful ways to build standing toward Maintainer. -If you find that something is not working as expected, please open an issue using the [bug report template](https://github.com/cosmos/ibc-go/blob/main/.github/ISSUE_TEMPLATE/bug-report.md) and provide as much information possible: how can the bug be reproduced? What's the expected behavior? What version is affected? +## Where to start -This is also true if you plan to fix the bug yourself and submit a PR. As a general rule, we want contributing pull requests to reference an existing issue. See [Submitting pull requests](#submitting-pull-requests) +Browse issues labeled good first issue and help wanted. Before you start work on an issue, comment on it or raise it in the community chat so a maintainer can assign it to you and you avoid duplicating effort. If you have an idea with no issue yet, open an issue using the feature template or raise it on a community call first. This step is expected, not optional, and it protects you from investing in work that overlaps or conflicts with existing plans. -### Proposing improvements or new features +## Communication -New features or improvements should be written in an issue using the [new feature template](https://github.com/cosmos/ibc-go/blob/main/.github/ISSUE_TEMPLATE/feature-request.md). Please include in the issue as many details as possible: what use case(s) would this new feature or improvement enable? Why are those use cases important or helpful? what user group would benefit? The team will evaluate and engage with you in a discussion of the proposal, which could have different outcomes: +- GitHub Discussions for open questions and community Q&A. +- GitHub Issues for proposals, bugs, and scoped, accepted work, through the templates. +- GitHub pull requests for ADRs, code, docs, and specs. +- Community calls, open to all and recorded, with a public calendar, for synchronous design and roadmap. +- Community chat on the LFDT Discord for questions and coordination. +- The governance forum named in [MAINTAINERS.md](MAINTAINERS.md) for formal and asynchronous governance decisions. +- Security disclosures follow the private path in [SECURITY.md](SECURITY.md) and never go through public issues. -- the core ibc-go team deciding to implement this feature and adding it to their planning, -- agreeing to support external contributors to implement it with the goal of merging it eventually in ibc-go, -- discarding the suggestion if deemed not aligned with the objectives of ibc-go; -- or proposing (in the case of applications or light clients) to be developed and maintained in a separate repository. +## Contribution workflow -Unless the change is a minor bug fix with minor code changes, and you want to submit a pull request, please make sure to write a Github issue for it before opening the pull request. +Everyone, without exception, contributes changes through pull requests. This is the same path for maintainers and first-time contributors: the same review, the same CI, and no direct pushes to main. -### Architecture Decision Records (ADR) +1. Reach rough agreement on an issue or a community call that the problem is worth solving. +2. For anything that changes architecture, a public interface, or a specification, submit an Architecture Decision Record (ADR) as a markdown pull request and have it merged under lazy consensus before implementation. Trivial changes, bug fixes, and documentation corrections skip this step. +3. Make sure an accepted, scoped GitHub issue exists. The issue is the record of truth for status. +4. Create a topic branch named after the issue. Contributors fork the repository and add an upstream remote. Maintainers may branch directly in the repository. +5. Make your change, following the pull request guidelines below. +6. Open a pull request. Mark it a draft if it is not ready. Link the issue with a closing keyword such as fixes #1234. +7. Address review feedback, keep CI green, and a Maintainer will merge once approved. -When proposing an architecture decision for the ibc-go, please create an [ADR](./docs/architecture/README.md) so further discussions can be made. We are following this process so all involved parties are in agreement before any party begins coding the proposed implementation. Please use the [ADR template](./docs/architecture/adr.template.md) to scaffold any new ADR. If you would like to see some examples of how these are written refer to ibc-go's [ADRs](./docs/architecture/). ADRs are solidified designs that will be implemented in ibc-go (and do not have a spec). They should document the architecture that will be built. Most design feedback should be gathered before the initial draft of the ADR. ADR's can/should be written for any design decisions we make which may be changed at some point in the future. +## Lazy consensus -### Participating in discussions +Proposals and ADRs proceed under lazy consensus. Anyone can comment, and an objection blocks only if it comes from a Maintainer, which is what standing means here. The objection window is 5 working days from when the proposal or ADR pull request is opened. If no Maintainer objects in that time, a Maintainer records the outcome and it proceeds. An objection should state its reason and, where possible, a change that would resolve it. Objections that cannot be resolved go to a TSC vote. -New features or improvements are sometimes also debated in [discussions](https://github.com/cosmos/ibc-go/discussions). Sharing feedback or ideas there is very helpful for us. high level discussions that may get a lot of comments on a variety of different aspects, design aspects still being considered. +## Pull request guidelines -### Submitting pull requests +- Each pull request should address one specific issue or concern, with a scope that fits comfortably within a reviewer’s mental context. Avoid bundling unrelated fixes, features, or formatting, and split larger work into a sequence of smaller pull requests that reviewers can take in order. +- Every pull request is squash-merged, with a Conventional Commits title as the squash commit message. Keep your branch up to date with main before merge, by rebase or merge, whichever you prefer. A merge queue is not used at launch and would only be introduced if pull request volume makes it necessary. +- Use draft pull requests for work in progress. +- Be responsive. A pull request that sits with unaddressed comments until it needs a full rebase is slower for everyone. -Before opening a pull request, make sure there is an accompanying issue that has been assigned to you. -In the case of smaller changes, opening a pull request without being assigned to the issue **can** be accepted, but to avoid having to redesign or discard your work due to the change no longer being needed, asking to be assigned to the issue is the safest course of action. We welcome contributors, but we have put in place these guidelines to safeguard the time of both external and core contributors. +## Commit messages -Unless you feel confident your change will be accepted (see [Unwanted pull requests](#unwanted-pull-requests)) you should first create an issue to discuss your change with us. This lets us all discuss the design and proposed implementation of your change, which helps ensure your time is well spent and that your contribution will be accepted. +Write commit messages in Conventional Commits form, for example fix(core): correct packet timeout handling. The history is a record people rely on to understand why a change was made and it feeds release notes. -Looking for a good place to start contributing? The issue tracker is always the first place to go. Issues are triaged to categorize them: +## Testing and CI -- Check out some [`good first issue`s](https://github.com/cosmos/ibc-go/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22). These are issues whose scope of work should be pretty clearly specified and they are best suited for developers new to ibc-go (i.e. no deep knowledge of Cosmos SDK or ibc-go is required). For example, some of these issues may involve improving the logging, emitting new events or removing unused code. -- Or pick up a [`help wanted`](https://github.com/cosmos/ibc-go/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) issue. These issues should be a bit more involved than the good first issues and the developer working on them would benefit from some familiarity already with the codebase. These types of issues may involve adding new (or extending the functionality of existing) gRPC endpoints, bumping the version of Cosmos SDK or Tendermint or fixing bugs. +Include tests appropriate to the change, covering the expected path and error handling. Some changes, such as documentation, do not need tests. Where adding coverage needs a large test-suite refactor, or where end-to-end tests are tracked separately, that work can be split into its own pull request or issue, noted in the description. Passing public CI is a hard gate for merge, not a formality. If a status check fails for a reason you believe is unrelated to your change, leave a comment explaining why and a maintainer will look into it. -If you would like to contribute, follow this process: +## Developer Certificate of Origin (DCO) -1. If the issue is a proposal, ensure that the proposal has been accepted. -2. Ensure that nobody else has already begun working on this issue. If they have, make sure to contact them to collaborate. -3. If nobody has been assigned for the issue and you would like to work on it, comment on the issue to inform the community of your intentions to begin work. Then we will be able to assign the issue to you, making it visible for others that this issue is being tackled. If you end up not creating a pull request for this issue, please comment on the issue as well, so that it can be assigned to somebody else. -4. Follow standard GitHub best practices: fork the repo, branch from the HEAD of `main`, make some commits, and submit a PR to `main`. For core developers working within the ibc-go repo, branches must be named with the convention `{moniker}/{issue#}-branch-name` to ensure a clear ownership of branches. -5. Feel free to submit the pull request in `Draft` mode, even if the work is not complete, as this indicates to the community you are working on something and allows them to provide comments early in the development process. -6. When the code is complete it can be marked `Ready for Review`. -7. Be sure to include a relevant changelog entry in the [Commit Message / Changelog Entry section of pull request description](https://github.com/cosmos/ibc-go/blob/main/.github/PULL_REQUEST_TEMPLATE.md#commit-message--changelog-entry) so that we can add changelog entry when merging the pull request. Please follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and use one of the commit types mentioned in the [Commit messages section of the pull request guidelines](./docs/dev/pull-requests.md#commit-messages). +All commits must be signed off to satisfy the Developer Certificate of Origin. Sign off every commit using git commit -s. The sign-off must match your commit author identity. A bot checks the sign-off is present; it does not police identity. Configure your name and email once: -Please make sure to check out our [Pull request guidelines](./docs/dev/pull-requests.md) for more information. +``` +git config user.name "FIRST_NAME LAST_NAME" +git config user.email "you@example.com" +``` -#### Unwanted pull requests +Only a human may sign off a commit. Where AI or LLM tooling assisted, disclose it with a Co-Authored-By or Assisted-By trailer in the commit message body, naming the tool, model, and version. The human contributor still signs off and remains responsible for the change. Example: -To ensure the core maintainers' time is spent well, we have certain pull requests we want to avoid: +``` +Co-Authored-By: +Signed-off-by: Jane Contributor +``` -- Any non-minor pull requests without an **assigned** issue -- Any non-minor bug fixes without an issue (ideally, also assigned, but we are less strict on this) -- Spelling mistakes/changes (instead, try to fix our CI so that it would be able to catch it automatically - that would be useful) +Maintainers may decline AI-assisted contributions that do not meet these expectations, and the response can be to the person, not just the pull request. Where someone repeatedly opens low-effort or machine-generated pull requests that add no clear value, ignores this guidance, or treats the project as a venue for volume rather than genuine contribution, maintainers may close their open pull requests and decline to engage further. Persistent cases are handled as a conduct matter through the Code of Conduct responders, who may block the account from the project. This is a moderation action about effort and conduct, not about the use of AI, which remains welcome wherever a contributor stands behind what they submit. -## Relevant development docs +## Changelog -- [Project structure](./docs/dev/project-structure.md) -- [Development setup](./docs/dev/development-setup.md) -- [Go style guide](./docs/dev/go-style-guide.md) -- [Documentation guide](./docs/README.md) -- [Writing tests](./testing/README.md) -- [Pull request guidelines](./docs/dev/pull-requests.md) -- [Release process](./docs/dev/release-management.md) +The changelog is generated from Conventional Commit titles at release time, so a well-formed pull request title is what matters rather than a hand-written entry. CI checks the title format. + +## Code review + +All changes are code reviewed. For non-trivial changes, the reviewer should be a Maintainer familiar with the affected area, and they may pull in a second reviewer at their discretion. Merge is performed by a Maintainer, normally the one who approved. If a pull request has gone about five working days without a reviewer emerging, ask in the community chat rather than pinging individuals. Disagreements that the reviewing Maintainers cannot resolve escalate to the TSC, and only genuinely cross-cutting disputes reach the full committee. + +## Copyright and license + +Code is contributed under Apache 2.0, specifications under the Community Specification License 1.0, and documentation under CC BY 4.0, regardless of where in the repository the file lives. The SPDX header on each file records which applies. + +## Trivial contributions + +Small documentation and typo fixes from genuine contributors are welcome, since lowering the barrier for first-time contributors matters. This is balanced against low-effort or automated submissions: maintainers may batch, close, or decline trivial pull requests that appear mass-generated or add no clear value. The AI-assisted contribution rules above apply, so undisclosed or unreviewed generated output can be declined on that basis alone. + +## Security + +If you think you have found a security issue, do not open a public issue. Follow the coordinated disclosure process in [SECURITY.md](SECURITY.md). + +## Initial Maintainers + +The initial Maintainers form the initial TSC and are its voting members. + +Giovanni Vitali, Cosmos Labs (Chair) +Dennis Fang, Cosmos Labs +Gjermund Garaba, Cosmos Labs +Serdar Türkmenafşar, Cosmos Labs +Dmitry Shlemin, Cosmos Labs +Dylan Kilkenny, OpenZeppelin +Jun Kimura, Datachain + +## Governance + +The project is governed by a Technical Steering Committee under the Technical Charter. See [GOVERNANCE.md](GOVERNANCE.md) for the roles and how decisions are made. diff --git a/GOVERNANCE.md b/GOVERNANCE.md new file mode 100644 index 0000000000..4be22c84ed --- /dev/null +++ b/GOVERNANCE.md @@ -0,0 +1,26 @@ + + +# Governance + +IBC operates under a Technical Steering Committee (TSC) defined in the Technical Charter. Governance is lightweight by design: decisions run on lazy consensus, with a vote as the fallback. The TSC oversees the technical direction of the project, and day-to-day authority sits with the Maintainers. + +## Roles + +The Charter defines two roles; their criteria are documented here. + +- **Contributor:** Anyone who contributes code, specs, documentation, or other artifacts, for example by opening an issue, discussion, or pull request. Open to all. +- **Maintainer:** A Contributor who has earned the ability to merge, granted by majority approval of the TSC after a sustained record of substantial contributions. As a guideline, a contributor is typically considered after a sustained period of substantial, reviewed contributions to the project, on the order of a few months of consistent activity, rather than a fixed count of pull requests. The TSC sets and applies the bar. Maintainers hold merge rights across the repository, and the TSC may introduce area-based scoping later if needed. Maintainers are listed in [MAINTAINERS.md](MAINTAINERS.md). Maintainers are the voting members of the TSC. + +Merge authority is earned through the same public record for everyone. + +## Technical Steering Committee + +The TSC is the body of Maintainers. Every Maintainer is a voting member with one vote. The TSC decides by consensus where it can and by vote where it must, with a quorum of at least half the voting members, a majority of those present at a meeting, or a majority of all voting members for an electronic vote. The TSC elects a Chair, who presides over meetings and is the primary contact with LFDT. The initial Maintainers are the initial TSC and are listed in the [CONTRIBUTING file](CONTRIBUTING.md), as the Charter requires. A Contributor becomes a Maintainer, and so a voting member, by majority approval of the TSC. If the maintainer set grows large, the TSC may adopt an alternative approach to voting membership, documented in the [CONTRIBUTING file](CONTRIBUTING.md), as the Charter allows. + +## Decision-making + +Lazy consensus is the default: a change proceeds unless someone with standing objects within the stated window, see [CONTRIBUTING.md](CONTRIBUTING.md). Where consensus cannot be reached, the TSC votes. A change that affects a specification routes through the ADR process. Maintainers and the TSC decide what to take up and when. + +## Full charter + +See the IBC Project Technical Charter for the complete governance model, including the TSC's responsibilities, how Maintainers are chosen, and the amendment process. diff --git a/MAINTAINERS.md b/MAINTAINERS.md new file mode 100644 index 0000000000..a0ca0dce8e --- /dev/null +++ b/MAINTAINERS.md @@ -0,0 +1,42 @@ + + +# Maintainers + +This file lists the Maintainers of cosmos/ibc, and the people with merge rights. The roles and their criteria are defined in [GOVERNANCE.md](GOVERNANCE.md) and the Charter; this file records who currently holds them and how the role is granted and removed. Maintainers are the voting members of the TSC. + +## Maintainers + +Maintainers hold merge rights across the repository. The TSC may introduce area-based scoping later if needed. + +| Name | GitHub | Organization | +| --- | --- | --- | +| Dennis Fang | [@dhfang](https://github.com/dhfang) | Cosmos Labs | +| Gjermund Garaba | [@gjermundgaraba](https://github.com/gjermundgaraba) | Cosmos Labs | +| Serdar Türkmenafşar | [@srdtrk](https://github.com/srdtrk) | Cosmos Labs | +| Dmitry Shlemin | [@swift1337](https://github.com/swift1337) | Cosmos Labs | +| Dylan Kilkenny | [@dylankilkenny](https://github.com/dylankilkenny) | OpenZeppelin | +| Jun Kimura | [@bluele](https://github.com/bluele) | Datachain | + +## Technical Steering Committee + +The TSC is the set of Maintainers listed above. Each is a voting member with one vote. The TSC elects a Chair. + +| Chair | GitHub | Organization | +| --- | --- | --- | +| Giovanni Vitali | [@giocosmos](https://github.com/giocosmos) | Cosmos Labs | + +## Becoming a Maintainer + +A Contributor is nominated for Maintainer by an existing Maintainer, on the strength of a sustained record of substantial, reviewed contributions to the project. As a guideline this is a sustained period of consistent activity, on the order of a few months, rather than a fixed count of pull requests, with the TSC setting and applying the bar. Nomination is a pull request adding the person to this file. It passes by majority approval of the TSC, with lazy consensus among Maintainers as the default and a vote where consensus is not reached. + +## Stepping down and emeritus + +Anyone may step down at any time by a pull request removing themselves. A Maintainer who is inactive for an extended period, as defined in the Charter, may be moved to emeritus by a majority vote of the TSC. Emeritus members keep the project's thanks and can be reinstated on request without repeating the full path, subject to a Maintainer vote. + +| Emeritus | +| --- | +| [names] | + +## Removal + +Merge rights may be revoked for cause, including Code of Conduct violations or sustained conduct against the project's interest, by a Maintainer vote under the Charter. There is no individual veto; a single objection slows and forces discussion under lazy consensus but does not unilaterally block. Serious cases follow the Code of Conduct process rather than this file. diff --git a/RELEASES.md b/RELEASES.md index 361a67803f..451cbbc152 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,244 +1,35 @@ -# Releases - -IBC-Go follows [semantic versioning](https://semver.org), but with the following deviations: - -- A state-machine breaking change will result in an increase of the minor version Y (x.Y.z | x > 0). -- An API breaking change will result in an increase of the major number (X.y.z | x > 0). Please note that these changes **will be backwards compatible** (as opposed to canonical semantic versioning; read [Backwards compatibility](#backwards-compatibility) for a detailed explanation). - -This is visually explained in the following decision tree: - -

- Releases decision tree -

- -When bumping the dependencies of [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) and [CometBFT](https://github.com/cometbft/cometbft) we will only treat patch releases as non state-machine breaking. - -## Backwards compatibility - -[ibc-go](https://github.com/cosmos/ibc-go) and the [IBC protocol specification](https://github.com/cosmos/ibc) maintain different versions. Furthermore, ibc-go serves several different user groups (chains, IBC app developers, relayers, IBC light client developers). Each of these groups has different expectations of what *backwards compatible* means. It simply isn't possible to categorize a change as backwards or non backwards compatible for all user groups. We are primarily interested in when our API breaks and when changes are state machine breaking (thus requiring a coordinated upgrade). This is scoping the meaning of ibc-go to that of those interacting with the code (IBC app developers, relayers, IBC light client developers), not chains using IBC to communicate (that should be encapsulated by the IBC protocol specification versioning). - -To summarize: **All our ibc-go releases allow chains to communicate successfully with any chain running any version of our code**. That is to say, we are still using IBC protocol specification v1.0 (v10 will also include support for the IBC protocol specification v2.0) - -## Release cycle - -IBC-Go follows a traditional release cycle involving an alpha, beta, and rc (release candidate) releases before finalizing a new version. As ibc-go works in a non-traditional area, we apply our own interpretation to each release type. We reserve the right to make both go API breaking changes and state machine breaking changes throughout the entire release cycle. The stable release guarantees do not go into affect until a final release is performed. - -It is never advisable to use a non-final release in production. - -### Alpha - -Alpha releases are intended to make available new features as soon as they are functional. No correctness guarantees are made and alpha releases **may** contain serious security vulnerabilities, bugs, and lack of user tooling, so long as they don't affect the core functionality. - -Initial users of alpha releases are expected to be advanced, patient, and capable of handling unusual errors. Very basic integration testing will be performed by the ibc-go development team before alpha releases. - -An internal audit is typically performed before the alpha release allowing the development team to gauge the maturity and stability of changes included in the next release. - -### Beta - -Beta releases are intended to signal design stability. While the go API is still subject to change, the core design of the new features should not be. Developers integrating the new features should expect to handle breaking changes when upgrading to RC's. - -Beta releases should not be made with known bugs or security vulnerabilities. Beta releases should focus on ironing out remaining bugs and filling out the UX functionality required by a final release. Beta releases should have a clearly defined scope of the features that will be included in the release. Only highly requested feature additions should be acted upon in this phase. - -When the development team has determined a release is ready to enter the RC phase, a final security audit should be performed. The security audit should be limited to looking for bugs and security vulnerabilities. Code improvements may be noted, but they should not be acted upon unless highly desirable. - -### RC - -RC's are release candidates. Final releases should contain little to no changes in comparison to the latest RC. Changes included in between RC releases should be limited to: - -- Improved testing -- UX additions -- Bug fixes -- Highly requested changes by the community - -A release should not be finalized until the development team and the external community have done sufficient integration tests on the targeted release. - -## Stable Release Policy - -The beginning of a new major release series is marked by the release of a new major version. A major release series is comprised of all minor and patch releases made under the same major version number. The series continues to receive bug fixes (released as minor or patch releases) until it reaches end of life. The date when a major release series reaches end of life is determined by one of the two following methods: - -- If the next major release is made within the first 6 months, then the end of life date of the major release series is 18 months after its initial release. -- If the next major release is made 6 months after the initial release, then the end of life date of the major release series is 12 months after the release date of the next major release. - -For example, if the current major release series is v1 and was released on January 1st, 2022, then v1 will be supported at least until January 1st, 2023. If v2 is published on August 1st 2022, then v1's end of life will be March 1st, 2023. - -Only the following major release series have a stable release status. All missing minor release versions have been discontinued. - -We reserve the right to drop support for releases if they are deemed unused (for example, because the Cosmos SDK version they depend on is not used or has been deprecated). Likewise, we also reserve the right to drop support for pre v1.0 versions of modules if we deem them unnecessary to maintain (we are only looking to give support for stable major releases). - -### ibc-go - -|Release|End of Life Date| -|-------|----------------| -|`v10.7.x`|Mar 10, 2027| -|`v11.1.x`|Apr 10, 2028| - -### `08-wasm` light client proxy module - -|Release|End of Life Date| -|-------|----------------| -|`v10.5.x`|Mar 10, 2027| -|`v11.1.x`|Apr 10, 2028| - -### What pull requests will be included in stable patch-releases? - -Pull requests that fix bugs and add features that fall in the following categories: + -- **Severe regressions**. -- Bugs that may cause **client applications** to be **largely unusable**. -- Bugs that may cause **state corruption or data loss**. -- Bugs that may directly or indirectly cause a **security vulnerability**. -- Non-breaking features that are strongly requested by the community. -- Non-breaking CLI improvements that are strongly requested by the community. - -### What pull requests will NOT be automatically included in stable patch-releases? - -As rule of thumb, the following changes will **NOT** be automatically accepted into stable point-releases: - -- **State machine changes**, unless the previous behaviour would result in a consensus halt. -- **Protobuf-breaking changes**. -- **Client-breaking changes**, i.e. changes that prevent gRPC, HTTP and RPC clients to continue interacting with the node without any change. -- **API-breaking changes**, i.e. changes that prevent client applications to *build without modifications* to the client application's source code. -- **CLI-breaking changes**, i.e. changes that require usage changes for CLI users. - -## Cut a release - -Pushing a `vX.Y.Z` or `modules/light-clients/08-wasm/vX.Y.Z` tag runs the [release workflow](./.github/workflows/release.yml). The workflow archives the tagged Go module's source, signs it, and creates a draft [GitHub release](https://github.com/cosmos/ibc-go/releases) with the files. It also builds the `ibc-go-simd` and `ibc-go-wasm-simd` images from the tagged commit and publishes them signed. The [shared release actions](https://github.com/cosmos/ibc/blob/main/.github/actions/README.md) explain the SBOMs, attestations, and signatures it produces. - -Other tags do not run the workflow. A tag with one of these prefixes but another format, such as the old `modules/light-clients/08-wasm/v0.1.0+ibc-go-v7.3-wasmvm-v1.5` tags, fails it before anything is built. - -1. Create the tag on a commit on `main` or a `release/*` branch. Push it with `git`: - - ```sh - git tag -s v11.3.0 -m v11.3.0 origin/release/v11.3.x - git push origin v11.3.0 - ``` - - Or create it in the GitHub UI while publishing a release, with the notes and **Set as a pre-release** filled in. The UI creates the tag only on publish, so the release is live before its files are signed and before its images exist. The workflow attaches the signed files to the published release a few minutes later. Steps 3 and 4 are then already done. - -2. Wait for the workflow to attach the signed files. For a tag pushed with `git`, it creates a draft release only after every file is verified and the images are signed. If a job fails, re-run the failed jobs within 7 days, while the run still keeps its build artifacts. After that, re-run all jobs. If the release is already published with some of its files, delete them first. A full re-run stops for a published release that has files. -3. Write the release notes in the draft. Leave **Set as a pre-release** as it is. The workflow sets it from the tag on every run: checked for a suffix such as `-rc.0`, unchecked otherwise. -4. Publish the release. - -The workflow runs from the tagged commit. A release branch therefore needs `.github/workflows/release.yml` and the root `NOTICE` file, which the archive and the images include. Without them, a tag gets no signed files and no images, so backport both before tagging a release line's next patch release. For the same reason, the workflow's branch check only catches mistakes. - -The tag rulesets decide who can release. They must cover `v*` and `modules/light-clients/08-wasm/v*` tags and restrict creating, updating, and deleting them. In this repository, the "Auto-imported tag create protections" ruleset restricts creating and updating them. Only the Maintain and Admin repository roles and organization admins can bypass it. The "Auto-imported tag delete protections" ruleset restricts deleting them, and only the Admin role and organization admins can bypass it. - -## Verify a release - -The commands below need the GitHub CLI and cosign v3 or later, the version the workflow signs with. Replace `` with the release tag, such as `v11.3.0`, and `ibc-go-vX.Y.Z` with its file name. For an `08-wasm` tag, the files are named `ibc-go-08-wasm-vX.Y.Z`. - -### Verify the files - -Download the release: - -```sh -gh release download --repo cosmos/ibc-go --dir release -``` - -In the `release` directory, check the signature on `checksums.txt`: - -```sh -cosign verify-blob checksums.txt \ - --bundle checksums.txt.sigstore.json \ - --certificate-identity https://github.com/cosmos/ibc-go/.github/workflows/release.yml@refs/tags/ \ - --certificate-oidc-issuer https://token.actions.githubusercontent.com -``` - -The two `--certificate` flags accept only a signature from this repository's release workflow, run for ``. - -Check that every file matches `checksums.txt`, which proves it is unchanged since signing. On macOS, use `shasum -a 256 -c checksums.txt` instead. - -```sh -sha256sum -c checksums.txt -``` - -Check the build provenance of the archive. The attestation covers the `.tar.gz` file, not the files inside it, so check the archive before you extract it. - -```sh -gh attestation verify ibc-go-vX.Y.Z.tar.gz --repo cosmos/ibc-go \ - --signer-workflow cosmos/ibc-go/.github/workflows/release.yml \ - --source-ref refs/tags/ -``` - -`--signer-workflow` and `--source-ref` accept only an attestation from the release workflow, run for ``. - -Two flags change what this command checks: - -- `--predicate-type https://spdx.dev/Document/v` checks the SBOM attestation instead of the build provenance. `` is the SPDX version the SBOM declares. `jq -r .spdxVersion ibc-go-vX.Y.Z.spdx.json` prints it as `SPDX-`. -- `--bundle ibc-go-vX.Y.Z.intoto.jsonl` checks against the attestation file attached to the release, without GitHub's attestations API. - -### Verify the images - -Replace `` with `ibc-go-simd` or `ibc-go-wasm-simd`. Replace `` with the git tag, with every character other than letters, digits, and `.` replaced by `-`. An `08-wasm` tag only publishes `ibc-go-wasm-simd`. - -Check the signature, with the same `--certificate` flags as for `checksums.txt`: - -```sh -cosign verify ghcr.io/cosmos/: \ - --certificate-identity https://github.com/cosmos/ibc-go/.github/workflows/release.yml@refs/tags/ \ - --certificate-oidc-issuer https://token.actions.githubusercontent.com -``` - -Check the build provenance: - -```sh -gh attestation verify oci://ghcr.io/cosmos/: --repo cosmos/ibc-go \ - --signer-workflow cosmos/ibc-go/.github/workflows/release.yml \ - --source-ref refs/tags/ -``` - -The image tag points at one image per platform. Each platform image is a separate build, so each has its own SBOM attestation. List the platform digests with `docker buildx imagetools inspect ghcr.io/cosmos/:`. Then run the command above on `oci://ghcr.io/cosmos/@` with the `--predicate-type` flag. - -The `main`, `release-v*`, and `branch-release-v*` images from the [docker workflow](./.github/workflows/docker.yml) are unsigned development builds. +# Releases -## Deprecation notice +IBC publishes releases so adopters can plan upgrades. The release rhythm suits the component: libraries and infrastructure release regularly, while the on-chain contracts release only on deliberate, reviewed changes rather than on a schedule. -Code that is marked as deprecated in a release will be removed 2 major releases afterwards. For example: deprecation notice is added in v8.3.0, then code will be deleted in v10.0.0. +IBC contains multiple independently evolving components. A new release may introduce changes to one or more components without affecting others. Release notes must clearly identify the affected components and describe the scope of changes. -## Version matrix +## Versioning -### ibc-go +Releases follow Semantic Versioning. Breaking changes bump the major version and are called out in the changelog and release notes. -Versions of Golang, Cosmos SDK and CometBFT used by ibc-go in the currently active releases: +## Cadence and branches -| Go | ibc-go | Cosmos SDK | Tendermint/CometBFT | -|----|--------|------------|---------------------| -| 1.23 | v10.1 | v0.50 | v0.38 | -| 1.23 | v10.7 | v0.53 | v0.38 | -| 1.25 | v11.1 | v0.54 | v0.39 | +Development happens on main. Releases are cut from release tags, with a release branch per supported minor line where backports are needed. Each release has notes generated from the changelog and Conventional Commit history. -### Callbacks middleware +## Changelog -Callbacks middleware has been merged into `ibc-go` since v10. There will not be separate releases for callbacks middleware. +The changelog is generated from Conventional Commit titles at release time, so a well-formed pull request title is what matters rather than a hand-written entry. CI checks the title format. -### `08-wasm` light client proxy module +## Supported versions -Versions of Golang, ibc-go, Cosmos SDK and CometBFT used by `08-wasm` module in the currently active releases: +The currently supported release lines are listed here and referenced by [SECURITY.md](SECURITY.md). Security fixes target supported lines. Different components of the monorepo may maintain their own release lines. -| Go | 08-wasm | ibc-go | Cosmos SDK | Tendermint/CometBFT | -|----|-----------|--------|------------|---------------------| -| 1.23 | v10.1 | v10.1 | v0.50 | v0.38 | -| 1.23 | v10.5 | v10.5 | v0.53 | v0.38 | -| 1.25 | v11.1 | v11.1 | v0.54 | v0.39 | +| Release line | Status | Supported until | +| --- | --- | --- | +| [TBD] | Supported | [TBD] | -## Graphics +## Signing -The decision tree above was generated with the following code: +Release artifacts are signed with Sigstore so adopters can verify provenance. -```text -%%{init: - {'theme': 'default', - 'themeVariables': - {'fontFamily': 'verdana', 'fontSize': '13px'} - } -}%% -flowchart TD - A(Change):::c --> B{API breaking?} - B:::c --> |Yes| C(Increase major version):::c - B:::c --> |No| D{state-machine breaking?} - D:::c --> |Yes| G(Increase minor version):::c - D:::c --> |No| H(Increase patch version):::c - classDef c fill:#eee,stroke:#aaa -``` +## Software Bill of Materials -using [Mermaid](https://mermaid-js.github.io)'s [live editor](https://mermaid.live). +Each released artifact publishes a Software Bill of Materials in a standard format, either CycloneDX or SPDX, so adopters can track components and dependencies. This supports adopters who must meet the EU Cyber Resilience Act, and is built toward ahead of the Act's full application. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000000..973162ee82 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,47 @@ + + +# Security Policy + +## Reporting a vulnerability + +Do not open a public issue, pull request, or discussion for a suspected vulnerability. Public disclosure before a fix is available puts adopters and user funds at risk. + +In-scope vulnerabilities are reported through the [Cosmos bug bounty program on Immunefi](https://immunefi.com/bug-bounty/cosmos/). In scope means a bug that gives an attacker a capability they should not have on a correctly configured production chain or relayer: minting, stealing, or locking funds; forging or replaying packets; bypassing light client verification; or halting a chain through IBC. Include affected versions, impact, the conditions required, and an end-to-end proof of concept. + +Issues outside that scope go to public GitHub issues through the normal process, or, where borderline, to the private IBC security channel ([GitHub Security Advisories](https://github.com/cosmos/ibc/security/advisories/new) or the restricted IBC security list). + +### Triage and timelines + +Reports are triaged by a dedicated IBC triage, run by the Cosmos Labs Foundations team together with the external IBC maintainers, twice a week. Severity follows the Cosmos security classification matrix. Fix targets by severity: critical five weeks, high four, medium six, low eight. + +### Fix and disclosure + +For low and medium issues, and some high, the fix is a backported public patch across the maintained release lines. For critical issues the fix is prepared in a private GitHub Security Advisory fork; affected chains are pre-announced with severity and date but no detail, then sent the patch privately under embargo before the public release; and the release, advisory, and CVE are published with credit to the reporter. If an issue is being exploited or leaks, it is published immediately. + +### Downstream distribution list + +Security contacts of production IBC chains, major relayer operators, and other IBC implementations. To join: a named contact, proof of production use, signed embargo terms, and KYC. Members are contacted only once a fix is ready. Leaks lead to removal. + +### AI-assisted and automated reports + +AI-assisted and automated reports must be verified by a human, concise, in plain text, and state affected files, versions, and verifiable impact rather than theoretical consequences, with a tested reproducer. A human owns the submission and AI use is disclosed. Where the finding is in scope, with funds or a live chain at risk, report it through Immunefi rather than publicly, since public disclosure before chains upgrade is itself the exploit. Lower-impact AI findings follow the public path. + +### Rewards + +In-scope reports are eligible for a cash reward by severity through the Immunefi program, paid after the public fix. + +### Supported versions + +Security fixes target the supported release lines listed in [RELEASES.md](RELEASES.md). + +### Artifact signing + +Releases are signed with Sigstore so adopters can verify provenance. + +### Ownership + +The security process is owned jointly by the Cosmos Labs Foundations team and the IBC maintainers under LFDT. External maintainers are onboarded to the triage and the bounty program. + +### Scope note + +This policy covers the IBC monorepo, including specs, implementations, and the relayer and attestor infrastructure. diff --git a/TSC_MEMBERS.md b/TSC_MEMBERS.md new file mode 100644 index 0000000000..9f1f8a2a92 --- /dev/null +++ b/TSC_MEMBERS.md @@ -0,0 +1,47 @@ + + +# Technical Steering Committee Members + +The Technical Steering Committee is the body of Maintainers, each a voting member with one vote. The members below are the initial TSC. See [GOVERNANCE.md](GOVERNANCE.md) for how the TSC works. + +## Current TSC + +| Role | Member | GitHub | Organization | Term | +| --- | --- | --- | --- | --- | +| Maintainer (Chair) | Giovanni Vitali | [@giocosmos](https://github.com/giocosmos) | Cosmos Labs | Founding | +| Maintainer | Dennis Fang | [@dhfang](https://github.com/dhfang) | Cosmos Labs | Founding | +| Maintainer | Gjermund Garaba | [@gjermundgaraba](https://github.com/gjermundgaraba) | Cosmos Labs | Founding | +| Maintainer | Serdar Türkmenafşar | [@srdtrk](https://github.com/srdtrk) | Cosmos Labs | Founding | +| Maintainer | Dmitry Shlemin | [@swift1337](https://github.com/swift1337) | Cosmos Labs | Founding | +| Maintainer | Dylan Kilkenny | [@dylankilkenny](https://github.com/dylankilkenny) | OpenZeppelin | Founding | +| Maintainer | Jun Kimura | [@bluele](https://github.com/bluele) | Datachain | Founding | + +## Chair + +Giovanni Vitali, Cosmos Labs + +## Security response team + +The following members receive private security disclosures per [SECURITY.md](SECURITY.md): + +- Giovanni Vitali +- Dennis Fang +- Gjermund Garaba +- Serdar Türkmenafşar +- Dmitry Shlemin +- Dylan Kilkenny +- Jun Kimura + +## Code of Conduct responders + +- Giovanni Vitali +- Dennis Fang +- Gjermund Garaba +- Serdar Türkmenafşar +- Dmitry Shlemin +- Dylan Kilkenny +- Jun Kimura + +## Maintainers + +The full list of Maintainers is maintained in [MAINTAINERS.md](MAINTAINERS.md) in the repo.