Skip to content

Commit

Permalink
Allow blank ekcert and add undocumented endpoint to fix reg error
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Snyman <git@jsnyman.com>
  • Loading branch information
stringlytyped committed Feb 15, 2024
1 parent c52b005 commit f5869aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keylime/models/registrar/registrar_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _schema(cls):
# The endorsement key (EK) of the TPM
cls._field("ek_tpm", String(500))
# The endorsement key (EK) certificate used to verify the TPM as genuine
cls._field("ekcert", String(2048))
cls._field("ekcert", String(2048), nullable=True)
# The attestation key (AK) used by Keylime to prepare TPM quotes
cls._field("aik_tpm", String(500))
# The initial attestation key (IAK) used when registering with a DevID
Expand Down
4 changes: 3 additions & 1 deletion keylime/web/registrar_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ def _v2_routes(self):

# Routes which are kept for backwards compatibility but do not adhere to RFC 9110 semantics
self._post("/agents/:agent_id", AgentsController, "create", allow_insecure=True)
self._put("/agents/:agent_id/activate", AgentsController, "activate", allow_insecure=True)
self._put("/agents/:agent_id/activate", AgentsController, "activate", allow_insecure=True)
# Instead of the above documented activation endpoint, the agent currently uses the one below to activate itself
self._put("/agents/:agent_id", AgentsController, "activate", allow_insecure=True)

0 comments on commit f5869aa

Please sign in to comment.