This page comes from docs/CONFORMANCE.md in the repository.
This document uses ASD-STE100 Simplified Technical English.
This document tells how Hune shows that it follows the ProcurAuth protocol. The ProcurAuth repository has a runner, access-conformance. The runner sends the cases of the series U to Hune in the mode authzen. Section 11.32 and section 16.12 of the specification own the method.
The pinned commit
The git dependencies procurauth-pep and procurauth-core use one full commit. The conformance run uses the same commit.
| Item | Value |
|---|---|
| Repository | https://github.com/ProcurAuth/procurauth |
| Commit | f318e259013fdaa7e841936c2b8a172dc1b7699e (the tag v1.1.1) |
| Runner | access-conformance, role pep, series U |
| Cases | U01 to U127 |
To change the commit, follow section 11.10 of the specification. Then run the series U again and update the counts of this file.
The result
The run on the commit above gave these counts. The last run was on 2026-11-24.
| Cases | Count |
|---|---|
| Run | 127 |
| Passed | 65 |
| Failed | 0 |
| Skipped | 62 |
The file tests/conformance/expected.txt is empty. The script exits with 0 only when the set of failed cases equals the ids in that file.
| Skipped cases | Count | Reason |
|---|---|---|
| U18, U23, U25 to U31, U85 to U111, U114 to U117, U121 to U125 | 45 | The service has no MCP endpoint. |
| U04, U19, U21, U22, U24, U32 to U35, U58, U62, U63, U67, U68, U126 | 15 | No action lists a budget. |
| U84 | 1 | The profile has no operation use_service. |
| U127 | 1 | The profile has no operation read_health. |
The specification states the same counts. The case U67 is skipped, because its only step names the operation use_budget. The owner MUST read again the change of the counts from 110 cases to 127 cases.
The profile
The files of the run are in tests/conformance/.
| File | Content |
|---|---|
run.sh | The script of the run. |
config.hcl | The configuration of Hune: audience hune-conf, the PDP at 127.0.0.1:8181, cache_ttl = "0s", one source conf. |
profile.json | The profile of the runner: the service id, the token rules, the three operations. |
jwks.json | The public keys of the test edge of ProcurAuth. |
fixture/conf/conf-dash.json | The fixture dashboard. It has one table panel (id 1) on the source conf. |
init-conf.sql | The table analytics.conf_rows with the rows 1 to 10. |
expected.txt | The failed cases that the project accepts. It is empty. |
The profile has these operations.
| Operation | Request | Action and node |
|---|---|---|
use_plain | POST /api/dashboards/conf-dash/panels/1/query | dashboard.read on dashboard:conf-dash below folder:conf |
use_ceiling | POST /api/dashboards/conf-dash/panels/1/query | dashboard.read, ceiling max_rows, value 1000 |
use_multi | PUT /api/dashboards/conf-dash | dashboard.write on dashboard:conf-dash, other source.query on source:conf |
The profile has no use_budget, no use_service, no mcp and no approvals. It sets answer_cache to false and options_type to folder.
A deviation from section 11.32
Section 11.32 gives the request GET /api/dashboards/conf-dash for use_plain. This request asks four questions: dashboard.read for the use, and the flags access.write, access.history and access.export (section 11.25). Cases such as U01 count the questions of the subject and expect one. With this request, 10 cases fail.
The request GET /api/dashboards/conf-dash?download=true asks two questions: dashboard.export for the use, and dashboard.read as the other permission (section 11.21). It fails the same cases.
The run uses POST /api/dashboards/conf-dash/panels/1/query, with the body of use_ceiling. This request asks one question, dashboard.read for the use, and the PDP gives no ceiling. It is an open question if section 11.32 follows the run or the run follows section 11.32.
How to run
The script needs Docker for ClickHouse.
- Run
tests/conformance/run.sh --localon a host. The script uses the binarytarget/debug/huneortarget/release/hune. It starts a ClickHouse container on127.0.0.1:8123. - Set
PROCURAUTH_DIRto a checkout of the pinned commit. Without it, the script clones the commit intotarget/procurauth. - Run
tests/conformance/run.shfor the full method. The script builds the runner and the static musl binary in Docker. It starts Hune with--network noneand a read-only root. ClickHouse and the runner join the network namespace of Hune.
The script writes target/conformance/report.txt. The last line of the report gives the counts.
The CI job procurauth runs the script. It runs on each change to crates/hune/src/access/, to the configuration code, to the conformance files, and before each release. The workflow conformance.yml calls it on GitHub. A maintainer can run it with tests/ci/all.sh, with no GitHub Actions. The script reads the pinned commit of the runner from the rev of procurauth-pep in Cargo.toml.
What the cases show
The 65 cases that pass show these properties of Hune.
| Property | Cases |
|---|---|
| The subject, the chain and the questions | U01, U02, U07 to U11, U59 |
A subtree answer never lets an operation run | U12 |
| The action document needs no token and asks no question | U13 to U17, U112 |
| No usage for an action without a budget | U20 |
| The ceilings | U36 to U39 |
No question for the action access | U40 |
| Each rule of the identity token | U03, U41 to U55, U118 to U120 |
| The PDP credential and the kept answers | U56, U57 |
| The refusals and the failures | U06, U60, U61, U64 to U66 |
A call that cannot wait for an approval gets approval_cannot_wait | U113 |
| The connections to the PDP stay open | U69 |
| The options route | U05, U70 to U83 |
A failed case
A later commit of the runner can add cases. A case that fails MUST have a line in expected.txt with its reason. A maintainer approves each line. At the exit of M6, the list is empty.