docs: move the auth endpoint contract to docs so the public tree builds without tasks/
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,4 +6,4 @@ few days.
|
|||||||
|
|
||||||
Supported: the latest release. Tessera holds encrypted backups: keep `TESSERA_VAULT_PASSPHRASE` and the `vault`
|
Supported: the latest release. Tessera holds encrypted backups: keep `TESSERA_VAULT_PASSPHRASE` and the `vault`
|
||||||
directory together, serve the hub over HTTPS outside loopback, and set `TESSERA_TRUSTED_PROXIES` only for proxies you
|
directory together, serve the hub over HTTPS outside loopback, and set `TESSERA_TRUSTED_PROXIES` only for proxies you
|
||||||
operate. Hardening notes and the auth design are in `docs/DATABASE-CAPTURE.md` and `tasks/auth-endpoint-contract.md`.
|
operate. Hardening notes and the auth design are in `docs/DATABASE-CAPTURE.md` and `docs/auth-endpoint-contract.md`.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//! Authorization matrix, generated from `tasks/auth-endpoint-contract.md`.
|
//! Authorization matrix, generated from `docs/auth-endpoint-contract.md`.
|
||||||
//!
|
//!
|
||||||
//! Every `human` route in the contract is exercised against real resources in two
|
//! Every `human` route in the contract is exercised against real resources in two
|
||||||
//! orbits with six kinds of caller. A route added to the contract without a
|
//! orbits with six kinds of caller. A route added to the contract without a
|
||||||
@@ -18,7 +18,7 @@ use tessera_core::restore::{DatabaseIdentity, Engine, RestoreTarget};
|
|||||||
use tower::ServiceExt;
|
use tower::ServiceExt;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
const CONTRACT: &str = include_str!("../../../../tasks/auth-endpoint-contract.md");
|
const CONTRACT: &str = include_str!("../../../../docs/auth-endpoint-contract.md");
|
||||||
const ISSUER: &str = "https://idp.example";
|
const ISSUER: &str = "https://idp.example";
|
||||||
|
|
||||||
struct Fixture {
|
struct Fixture {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use axum::{
|
|||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use tower::ServiceExt;
|
use tower::ServiceExt;
|
||||||
|
|
||||||
const CONTRACT: &str = include_str!("../../../../tasks/auth-endpoint-contract.md");
|
const CONTRACT: &str = include_str!("../../../../docs/auth-endpoint-contract.md");
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn every_registered_path_has_an_authorization_contract() {
|
fn every_registered_path_has_an_authorization_contract() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ all-features = false
|
|||||||
|
|
||||||
[advisories]
|
[advisories]
|
||||||
version = 2
|
version = 2
|
||||||
# Unmaintained warnings are tracked, not ignored silently; see tasks/auth-plan.md (M1).
|
# Unmaintained warnings are tracked, not ignored silently; see the auth design notes.
|
||||||
unmaintained = "workspace"
|
unmaintained = "workspace"
|
||||||
ignore = [
|
ignore = [
|
||||||
{ id = "RUSTSEC-2023-0071", reason = "Marvin attack concerns RSA private-key operations. Tessera only verifies ID-token signatures with public keys (openidconnect core/crypto.rs); runtime code never calls an RSA private-key operation; only test fixtures sign tokens with throwaway keys. No patched rsa 0.9 exists. Revisit when openidconnect moves to rsa >= 0.10." },
|
{ id = "RUSTSEC-2023-0071", reason = "Marvin attack concerns RSA private-key operations. Tessera only verifies ID-token signatures with public keys (openidconnect core/crypto.rs); runtime code never calls an RSA private-key operation; only test fixtures sign tokens with throwaway keys. No patched rsa 0.9 exists. Revisit when openidconnect moves to rsa >= 0.10." },
|
||||||
|
|||||||
Reference in New Issue
Block a user