Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -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.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -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):
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.