diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..8ccee34 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,37 @@ +--- +name: Bug report +about: Report a defect in a library, release, or example. +title: "[bug]: " +labels: ["bug"] +--- + +Report suspected vulnerabilities [privately](https://github.com/cloudflare/web-bot-auth/security/advisories/new). Do not post security details here. + +## Affected component + +- [ ] Rust crate `web-bot-auth` +- [ ] Rust crate `http-signature-directory` +- [ ] TypeScript package `web-bot-auth` +- [ ] TypeScript package `http-message-sig` +- [ ] TypeScript package `jsonwebkey-thumbprint` +- [ ] An example under [`examples/`](https://github.com/cloudflare/web-bot-auth/tree/main/examples) +- [ ] Other or not sure + +## Environment + +- Crate/package version: +- Toolchain (e.g. output of `rustc --version`, Node.js version): +- Runtime: native / Cloudflare Workers / other (please specify): +- Link to affected code or repository: + +## Reproduction + +Minimal steps to reproduce the behaviour. A failing test or a small code snippet is best. + +1. +2. +3. + +**Expected behaviour:** what should happen? Link to the relevant specification section if applicable. + +**Actual behaviour:** what happens instead? Include relevant error or test output. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..e5b4280 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Report a vulnerability privately + url: https://github.com/cloudflare/web-bot-auth/security/advisories/new + about: Do not post suspected vulnerabilities in public issues or pull requests. + - name: Contributing guidelines + url: https://github.com/cloudflare/web-bot-auth/blob/main/CONTRIBUTING.md + about: Read the contribution and testing guidelines. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..664d42f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,38 @@ +--- +name: Feature request +about: Suggest a new feature or improvement. +title: "[feature]: " +labels: ["enhancement"] +--- + +## Problem to solve + +What are you trying to achieve? A clear description of the problem or gap this feature addresses. + +## Affected libraries + +For interoperability requests, describe the desired behavior in both libraries. + +- [ ] Rust crate `web-bot-auth` +- [ ] Rust crate `http-signature-directory` +- [ ] TypeScript package `web-bot-auth` +- [ ] TypeScript package `http-message-sig` +- [ ] TypeScript package `jsonwebkey-thumbprint` + +## Proposed solution + +Describe the feature: new API methods (a sketch of the proposed signature is helpful), convenience features, or new algorithms. + +## Relation to the specification + +- [ ] This feature is covered by an existing specification (please link the relevant section). +- [ ] This feature extends beyond the Web Bot Auth / HTTP Message Signatures specifications. +- [ ] This feature would require a specification change. + +## Alternatives considered + +Any alternative solutions or workarounds you have considered. + +## Additional context + +Links to related issues, upstream discussions, or prior art. diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..42c2bc2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,17 @@ +--- +name: Question +about: Clarification on operations or best path forward +title: "[question]: " +labels: ["question"] +--- + +## What would you like to know? + +A clear and concise question, for example clarification on operations or the best path forward. + +## Context + +- Library or libraries involved: +- What are you trying to do? +- Documentation or specification sections you have already consulted: +- Anything else relevant (code snippet, versions, environment): diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f91ce91..650ea79 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,6 +3,21 @@ Welcome to web-bot-auth's contributor guidelines. Please take a look. This should help you get ready to contribute to this repo. +## How to contribute + +Discuss substantial or breaking changes in an issue before opening a PR. Small fixes can go straight to a PR. If an issue already exists, use it. + +Use the issue templates for bugs, feature requests, and questions. Report suspected vulnerabilities [privately](https://github.com/cloudflare/web-bot-auth/security/advisories/new), not in public issues or PRs. + +For Rust and TypeScript interoperability issues, open one issue describing the desired behavior in both libraries. Split follow-up work only if it needs separate tracking. + +## Principles for contributions + +- Use the current [Web Bot Auth protocol](https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/) and [registry and Signature Agent Card](https://datatracker.ietf.org/doc/draft-meunier-webbotauth-registry/) drafts as conformance references. +- If a signing or verification change affects compatibility with deployed peers, describe how users should roll it out. If security or spec compliance requires an immediate break, explain why and what users need to change. +- Keep deprecated public APIs for at least two minor releases before 1.0 and at least one major version from 1.0 onward. +- AI-assisted PRs are welcome. Explain the problem and your plan briefly, in your own words. + ## Testing Crates in this repo provide Rust tests. @@ -12,6 +27,12 @@ You can run these manually using: cargo +stable test --workspace --all-features --all-targets ``` +For Rust changes affecting WASM, run the same build as [CI](./.github/workflows/pullrequest.yml): + +```bash +cargo +stable build --workspace --exclude http-signature-directory --all-features --tests --target wasm32-unknown-unknown +``` + We also target Cloudflare's worker environment. A [basic example](./examples/signature-agent-card-and-registry/) exists to confirm our crates work in said environment. Depending on your changes you might need to expand this example or create your own. @@ -55,3 +76,7 @@ use serde::Serialize; use std::time::Duration; use std::collections::HashMap; ``` + +## Releases + +Releases are currently on an ad-hoc basis. To request a release, please ping either @AkshatM or @thibmeu.