Bascule shell runtime workspace — governed shell access layer for Substrate/Guildhouse FFC deployments. Crates: - bascule-agent: node agent with SSH server + command filtering - bascule-core: audit, grant engine, ceremony types, session - bascule-filter-core: log line filtering (stdio protocol) - bascule-gateway: OIDC auth, session management, SAT validation - bascule-node-agent: k8s DaemonSet agent (pod watcher, BPF manager) - bascule-proto: protobuf definitions - bascule-shell: governed SSH shell (commands, elevation, REPL) - bascule-tail: chronicle log tail + fanout - ceremony-engine: ceremony lifecycle (6 types + request/resolution) 172 tests passing. Implements SBS-SPEC-0001 shell model. Reference impl for SPEC-SHELLOPS-0001 Layer 1 (root shell).
227 lines
11 KiB
JSON
227 lines
11 KiB
JSON
{
|
|
"generator": "substrate-sdk-python",
|
|
"protocol_version": "1.0",
|
|
"namespace_ids": {
|
|
"CRYPTO": 1,
|
|
"IDENTITY": 2,
|
|
"SECRETS": 3,
|
|
"GOVERNANCE": 4,
|
|
"ATTESTATION": 5,
|
|
"AUDIT": 6,
|
|
"NETWORK": 7,
|
|
"INTELLIGENCE": 8
|
|
},
|
|
"status_codes": {
|
|
"OK": 0,
|
|
"ERROR": 1,
|
|
"DENIED": 2,
|
|
"CEREMONY_REQUIRED": 3
|
|
},
|
|
"vectors": [
|
|
{
|
|
"name": "crypto_sign",
|
|
"type": "request",
|
|
"namespace": 1,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "83a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da9616c676f726974686da765643235353139",
|
|
"nonce": 42,
|
|
"body_hex": "950101c4100102030405060708090a0b0c0d0e0f10c43283a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da9616c676f726974686da7656432353531392a",
|
|
"full_encoded_hex": "0000004a950101c4100102030405060708090a0b0c0d0e0f10c43283a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da9616c676f726974686da7656432353531392a"
|
|
},
|
|
{
|
|
"name": "crypto_verify",
|
|
"type": "request",
|
|
"namespace": 1,
|
|
"function": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "84a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da97369676e6174757265a463326c6ea9616c676f726974686da765643235353139",
|
|
"nonce": 42,
|
|
"body_hex": "950102c4100102030405060708090a0b0c0d0e0f10c44184a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da97369676e6174757265a463326c6ea9616c676f726974686da7656432353531392a",
|
|
"full_encoded_hex": "00000059950102c4100102030405060708090a0b0c0d0e0f10c44184a66b65795f6964a96167656e742d6b6579a464617461a8614756736247383da97369676e6174757265a463326c6ea9616c676f726974686da7656432353531392a"
|
|
},
|
|
{
|
|
"name": "identity_auth",
|
|
"type": "request",
|
|
"namespace": 2,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "81a5746f6b656ea665794a2e2e2e",
|
|
"nonce": 42,
|
|
"body_hex": "950201c4100102030405060708090a0b0c0d0e0f10c40e81a5746f6b656ea665794a2e2e2e2a",
|
|
"full_encoded_hex": "00000026950201c4100102030405060708090a0b0c0d0e0f10c40e81a5746f6b656ea665794a2e2e2e2a"
|
|
},
|
|
{
|
|
"name": "identity_authz",
|
|
"type": "request",
|
|
"namespace": 2,
|
|
"function": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "83a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea472656164",
|
|
"nonce": 42,
|
|
"body_hex": "950202c4100102030405060708090a0b0c0d0e0f10c43083a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea4726561642a",
|
|
"full_encoded_hex": "00000048950202c4100102030405060708090a0b0c0d0e0f10c43083a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea4726561642a"
|
|
},
|
|
{
|
|
"name": "secrets_get",
|
|
"type": "request",
|
|
"namespace": 3,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "81a470617468ab64622f70617373776f7264",
|
|
"nonce": 42,
|
|
"body_hex": "950301c4100102030405060708090a0b0c0d0e0f10c41281a470617468ab64622f70617373776f72642a",
|
|
"full_encoded_hex": "0000002a950301c4100102030405060708090a0b0c0d0e0f10c41281a470617468ab64622f70617373776f72642a"
|
|
},
|
|
{
|
|
"name": "governance_gate",
|
|
"type": "request",
|
|
"namespace": 4,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "83a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea66d7574617465",
|
|
"nonce": 42,
|
|
"body_hex": "950401c4100102030405060708090a0b0c0d0e0f10c43283a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea66d75746174652a",
|
|
"full_encoded_hex": "0000004a950401c4100102030405060708090a0b0c0d0e0f10c43283a77375626a656374a574796c6572a87265736f75726365ab666c6565742f6e6f646573a6616374696f6ea66d75746174652a"
|
|
},
|
|
{
|
|
"name": "governance_propose",
|
|
"type": "request",
|
|
"namespace": 4,
|
|
"function": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "82ad636572656d6f6e795f74797065ae53696e676c65417070726f76616ca77061796c6f616481a6696e74656e74aa7363616c652d646f776e",
|
|
"nonce": 42,
|
|
"body_hex": "950402c4100102030405060708090a0b0c0d0e0f10c43982ad636572656d6f6e795f74797065ae53696e676c65417070726f76616ca77061796c6f616481a6696e74656e74aa7363616c652d646f776e2a",
|
|
"full_encoded_hex": "00000051950402c4100102030405060708090a0b0c0d0e0f10c43982ad636572656d6f6e795f74797065ae53696e676c65417070726f76616ca77061796c6f616481a6696e74656e74aa7363616c652d646f776e2a"
|
|
},
|
|
{
|
|
"name": "attestation_posture",
|
|
"type": "request",
|
|
"namespace": 5,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "80",
|
|
"nonce": 42,
|
|
"body_hex": "950501c4100102030405060708090a0b0c0d0e0f10c401802a",
|
|
"full_encoded_hex": "00000019950501c4100102030405060708090a0b0c0d0e0f10c401802a"
|
|
},
|
|
{
|
|
"name": "attestation_sat",
|
|
"type": "request",
|
|
"namespace": 5,
|
|
"function": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "80",
|
|
"nonce": 42,
|
|
"body_hex": "950502c4100102030405060708090a0b0c0d0e0f10c401802a",
|
|
"full_encoded_hex": "00000019950502c4100102030405060708090a0b0c0d0e0f10c401802a"
|
|
},
|
|
{
|
|
"name": "audit_emit",
|
|
"type": "request",
|
|
"namespace": 6,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "85aa6576656e745f74797065ab6170692e72657175657374a77375626a656374a574796c6572a87265736f75726365ae2f6170692f76312f666c6565742fa6616374696f6ea46c697374a76f7574636f6d65a773756363657373",
|
|
"nonce": 42,
|
|
"body_hex": "950601c4100102030405060708090a0b0c0d0e0f10c45a85aa6576656e745f74797065ab6170692e72657175657374a77375626a656374a574796c6572a87265736f75726365ae2f6170692f76312f666c6565742fa6616374696f6ea46c697374a76f7574636f6d65a7737563636573732a",
|
|
"full_encoded_hex": "00000072950601c4100102030405060708090a0b0c0d0e0f10c45a85aa6576656e745f74797065ab6170692e72657175657374a77375626a656374a574796c6572a87265736f75726365ae2f6170692f76312f666c6565742fa6616374696f6ea46c697374a76f7574636f6d65a7737563636573732a"
|
|
},
|
|
{
|
|
"name": "audit_anchor",
|
|
"type": "request",
|
|
"namespace": 6,
|
|
"function": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "81a96576656e745f69647392a76576742d303031a76576742d303032",
|
|
"nonce": 42,
|
|
"body_hex": "950602c4100102030405060708090a0b0c0d0e0f10c41c81a96576656e745f69647392a76576742d303031a76576742d3030322a",
|
|
"full_encoded_hex": "00000034950602c4100102030405060708090a0b0c0d0e0f10c41c81a96576656e745f69647392a76576742d303031a76576742d3030322a"
|
|
},
|
|
{
|
|
"name": "network_classify",
|
|
"type": "request",
|
|
"namespace": 7,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "84a6736f75726365a831302e302e302e31ab64657374696e6174696f6ea831302e302e302e32a4706f7274cd1538a870726f746f636f6ca3746370",
|
|
"nonce": 42,
|
|
"body_hex": "950701c4100102030405060708090a0b0c0d0e0f10c43b84a6736f75726365a831302e302e302e31ab64657374696e6174696f6ea831302e302e302e32a4706f7274cd1538a870726f746f636f6ca37463702a",
|
|
"full_encoded_hex": "00000053950701c4100102030405060708090a0b0c0d0e0f10c43b84a6736f75726365a831302e302e302e31ab64657374696e6174696f6ea831302e302e302e32a4706f7274cd1538a870726f746f636f6ca37463702a"
|
|
},
|
|
{
|
|
"name": "intelligence_infer",
|
|
"type": "request",
|
|
"namespace": 8,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "82a56d6f64656cb8636c617564652d736f6e6e65742d342d3230323530353134a670726f6d7074a548656c6c6f",
|
|
"nonce": 42,
|
|
"body_hex": "950801c4100102030405060708090a0b0c0d0e0f10c42d82a56d6f64656cb8636c617564652d736f6e6e65742d342d3230323530353134a670726f6d7074a548656c6c6f2a",
|
|
"full_encoded_hex": "00000045950801c4100102030405060708090a0b0c0d0e0f10c42d82a56d6f64656cb8636c617564652d736f6e6e65742d342d3230323530353134a670726f6d7074a548656c6c6f2a"
|
|
},
|
|
{
|
|
"name": "response_ok",
|
|
"type": "response",
|
|
"status": 0,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "82a86576656e745f6964a76576742d313233ab6d65726b6c655f6c656166a6616263313233",
|
|
"nonce": 42,
|
|
"body_hex": "9400c4100102030405060708090a0b0c0d0e0f10c42582a86576656e745f6964a76576742d313233ab6d65726b6c655f6c656166a66162633132332a",
|
|
"full_encoded_hex": "0000003c9400c4100102030405060708090a0b0c0d0e0f10c42582a86576656e745f6964a76576742d313233ab6d65726b6c655f6c656166a66162633132332a"
|
|
},
|
|
{
|
|
"name": "response_error",
|
|
"type": "response",
|
|
"status": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "81a76d657373616765ae496e7465726e616c206572726f72",
|
|
"nonce": 42,
|
|
"body_hex": "9401c4100102030405060708090a0b0c0d0e0f10c41881a76d657373616765ae496e7465726e616c206572726f722a",
|
|
"full_encoded_hex": "0000002f9401c4100102030405060708090a0b0c0d0e0f10c41881a76d657373616765ae496e7465726e616c206572726f722a"
|
|
},
|
|
{
|
|
"name": "response_denied",
|
|
"type": "response",
|
|
"status": 2,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "82a76d657373616765b2496e73756666696369656e742073636f7065a87265717569726564ac666c6565743a6d7574617465",
|
|
"nonce": 42,
|
|
"body_hex": "9402c4100102030405060708090a0b0c0d0e0f10c43282a76d657373616765b2496e73756666696369656e742073636f7065a87265717569726564ac666c6565743a6d75746174652a",
|
|
"full_encoded_hex": "000000499402c4100102030405060708090a0b0c0d0e0f10c43282a76d657373616765b2496e73756666696369656e742073636f7065a87265717569726564ac666c6565743a6d75746174652a"
|
|
},
|
|
{
|
|
"name": "response_ceremony",
|
|
"type": "response",
|
|
"status": 3,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "82ab636572656d6f6e795f6964a76365722d343536ad636572656d6f6e795f74797065ae53696e676c65417070726f76616c",
|
|
"nonce": 42,
|
|
"body_hex": "9403c4100102030405060708090a0b0c0d0e0f10c43282ab636572656d6f6e795f6964a76365722d343536ad636572656d6f6e795f74797065ae53696e676c65417070726f76616c2a",
|
|
"full_encoded_hex": "000000499403c4100102030405060708090a0b0c0d0e0f10c43282ab636572656d6f6e795f6964a76365722d343536ad636572656d6f6e795f74797065ae53696e676c65417070726f76616c2a"
|
|
},
|
|
{
|
|
"name": "empty_payload",
|
|
"type": "request",
|
|
"namespace": 5,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "80",
|
|
"nonce": 0,
|
|
"body_hex": "950501c4100102030405060708090a0b0c0d0e0f10c4018000",
|
|
"full_encoded_hex": "00000019950501c4100102030405060708090a0b0c0d0e0f10c4018000"
|
|
},
|
|
{
|
|
"name": "max_nonce",
|
|
"type": "request",
|
|
"namespace": 1,
|
|
"function": 1,
|
|
"session_id_hex": "0102030405060708090a0b0c0d0e0f10",
|
|
"payload_hex": "81a66b65795f6964a16b",
|
|
"nonce": 18446744073709551615,
|
|
"body_hex": "950101c4100102030405060708090a0b0c0d0e0f10c40a81a66b65795f6964a16bcfffffffffffffffff",
|
|
"full_encoded_hex": "0000002a950101c4100102030405060708090a0b0c0d0e0f10c40a81a66b65795f6964a16bcfffffffffffffffff"
|
|
}
|
|
]
|
|
}
|