MCPcopy Index your code
hub / github.com/MetapriseAI/OrgKernel / submit_csr

Function submit_csr

src/orgkernel/pyapi/router.py:109–118  ·  view source on GitHub ↗

Submit a Certificate Signing Request for agent identity issuance.

(
    csr: AgentIdentityCSR,
    db: Annotated[AsyncSession, Depends(get_db)],
)

Source from the content-addressed store, hash-verified

107 description="Step 1 of PKI lifecycle: validate and accept a CSR.",
108)
109async def submit_csr(
110 csr: AgentIdentityCSR,
111 db: Annotated[AsyncSession, Depends(get_db)],
112) -> AgentIdentityCSR:
113 """Submit a Certificate Signing Request for agent identity issuance."""
114 svc = AgentIdentityService(db)
115 try:
116 return await svc.submit_csr(csr)
117 except ValueError as e:
118 raise HTTPException(status_code=409, detail=str(e))
119
120
121@_identity.post(

Callers

nothing calls this directly

Calls 2

submit_csrMethod · 0.95

Tested by

no test coverage detected