Version 1.1 Source and releases

Source

The repository holds the texts, the schemas, the conformance data, the tools, the reference programs, the library and the source of this site.

Repository

The repository is github.com/ProcurAuth/procurauth. The protocol and the MCP binding are neutral: they name no product.

procurauth/
protocol/the protocol
bindings/mcp/the MCP binding
schemas/the JSON schemas, one for each document
conformance/the cases as data, the test directories, the test vectors and COVERAGE.md
crates/the Rust crates (see below)
scripts/cargo.sh, conformance.sh, ci.sh and msrv.sh, which run in Docker, and check-docs.py
devdocs/the architecture, for the developers of the tools
docs/design/design records: decisions, questions about the protocol, design of the libraries
docs/the source of this site (GitHub Pages)
.github/the workflows, the issue forms, the template of a pull request and CODEOWNERS
SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.mdhow to report a vulnerability, how to contribute, how to behave
IMPLEMENTATIONS.mdthe known implementations (protocol 16.1)
Cargo.tomlthe workspace
LICENSEApache-2.0, for the code
LICENSE-TEXTS.txtCC BY 4.0, for the texts
crates/
procurauth-core/the shared library: readers, rules and checks
procurauth-pep/the reference PEP library
keycheck/tool
access-token/tool
access-lint/tool
fake-pdp/tool, and a library
access-conformance/tool
reference-service/reference program, series U
reference-edge/reference program, series E
conformance/schema-check/crate procurauth-schema-check: checks the schemas and the data files

IMPLEMENTATIONS.md lists the known implementations of the protocol (paragraph 16.1). The README of each crate describes its program and its limits. devdocs/architecture.md describes the crates, the rules of the code and the way to add a tool. docs/design/ keeps the design records: the decisions and the questions about the protocol.

Open the repository

Build

The workspace needs Rust 1.89 or later (rust-version in Cargo.toml, edition 2024). It builds the seven programs and the library.

With Rust

Build
$ git clone https://github.com/ProcurAuth/procurauth$ cd procurauth$ git checkout v1.1$ cargo build --release --locked --workspace

The programs are in target/release/.

With Docker only

The script scripts/cargo.sh runs cargo in a container. Nothing is installed on your machine. It builds the image procurauth-dev:1 one time, and it keeps the registry and the build files in Docker volumes.

Docker
$ scripts/cargo.sh build --release --locked --workspace$ scripts/cargo.sh test --workspace$ scripts/conformance.sh all$ scripts/ci.sh

scripts/ci.sh runs the format check, clippy, the tests and the conformance runs, and stops at the first failure. scripts/msrv.sh checks that the workspace builds with Rust 1.89. The CI of a pull request runs only the fast checks: the policy, the format, clippy and scripts/check-docs.py. The workflow full runs the two scripts each night, on request and before a release.

The library procurauth-pep has the optional feature tls, which is off by default. Test it with scripts/cargo.sh test -p procurauth-pep --features tls. With this feature, the crate aws-lc-sys compiles C code. The image of scripts/cargo.sh has the compiler that it needs.

Releases

A git tag such as v1.1 starts the workflow .github/workflows/release.yml. It builds the seven programs for each platform below, packs each build in an archive and makes a release. Each archive holds the seven programs and the two licence files. The release has a file SHA256SUMS with the SHA-256 sum of each archive, and each archive has its own .sha256 file.

SHA256SUMS lists all the sums. The five tools show their licence with --version.

Check a download

Linux x86-64
$ REPO=https://github.com/ProcurAuth/procurauth$ BASE=$REPO/releases/download/v1.1$ curl -LO $BASE/SHA256SUMS$ curl -LO $BASE/procurauth-tools-1.1-x86_64-linux.tar.gz$ sha256sum --check --ignore-missing SHA256SUMSprocurauth-tools-1.1-x86_64-linux.tar.gz: OK$ tar -xzf procurauth-tools-1.1-x86_64-linux.tar.gz$ ./procurauth-tools-1.1-x86_64-linux/keycheck --version

Licences

Code: Apache-2.0

The tools, the reference programs, the library and the source of this site. The file is LICENSE.

Texts: CC BY 4.0

The protocol, the MCP binding and the documents. The file is LICENSE-TEXTS.txt. To give credit, name the project: "ProcurAuth".

Contribute

  1. Open an issue in the issue tracker to ask a question, to report an error or to propose a change. Cite the number of the paragraph.
  2. For a change of the text, keep the numbers of the paragraphs. A paragraph that leaves the text keeps its number with the word "Unused".
  3. For a change of a rule, add or change a conformance case that cites the paragraph, and add it to conformance/COVERAGE.md.
  4. For a change of the code, follow devdocs/architecture.md. Write one test for each paragraph that the code implements, and run scripts/ci.sh.
  5. Open a pull request. A contribution is under the licence of the files that it changes.

Write the documents in ASD-STE100 Simplified Technical English, as the specification does. Run python3 -I scripts/check-docs.py to check the links, the site and the text. CONTRIBUTING.md has the details.

To report a vulnerability, read SECURITY.md. Do not open a public issue for it.

Changelog

Unreleased

  • The repository moved to the GitHub organisation ProcurAuth. The $id of each JSON Schema has the new host procurauth.github.io. The old host does not answer now. The version of the protocol stays 1.1.
  • The site has a page for the implementations, an Open Graph image, icons and a page 404. The repository has the files SECURITY.md, CONTRIBUTING.md and CODE_OF_CONDUCT.md.

1.1

The full changelog is the file docs/CHANGELOG.md of the repository.

  • Protocol section 17, the approval of an effect, is mandatory for each action of a service. The MCP binding gives the result of a call that waits, the tool errors and the tool get_action_status.
  • The claims iat, exp and nbf are JSON integers with digits only. A service checks nbf. It refuses a token without kid when its key set holds more than one key (9.3, 9.4).
  • A health-probe route needs no token and asks no question. Each other route that runs no action asks the action access on the service (10.1c).
  • A PDP publishes the age bound of its directory (3.9, 10.7b). The approval API answers an unknown credential with HTTP 401 (17.4).
  • The MCP binding is the source for a ProcurAuth service. Its section 12 lists each difference from the contract of the MCP servers.
  • 19 JSON schemas and 245 conformance cases: 127 for a PEP, 98 for a PDP and 20 for an edge.
  • The library procurauth-pep has the optional feature tls, a bounded table of token checks and the flag allow_plain_http.

1.0

The first release.

  • The protocol and the MCP binding.
  • The JSON schemas and the conformance data, in the series U, D and E.
  • The tools keycheck, access-token, access-lint, fake-pdp and access-conformance.
  • The reference programs reference-service and reference-edge.
  • The reference PEP library procurauth-pep in Rust.
  • Binaries for Linux, macOS and Windows, with SHA-256 sums.