Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the confidential endpoints #641

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/aleph/vm/orchestrator/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
)
from .views.operator import (
operate_confidential_initialize,
operate_confidential_inject_secret,
operate_confidential_measurement,
operate_erase,
operate_expire,
operate_reboot,
operate_sev_inject_secret,
operate_sev_measurement,
operate_stop,
stream_logs,
)
Expand Down Expand Up @@ -105,12 +105,12 @@ def setup_webapp():
web.post("/control/allocation/notify", notify_allocation),
web.get("/control/machine/{ref}/logs", stream_logs),
web.post("/control/machine/{ref}/expire", operate_expire),
web.post("/control/machine/{ref}/confidential/initialize", operate_confidential_initialize),
web.post("/control/machine/{ref}/stop", operate_stop),
web.post("/control/machine/{ref}/erase", operate_erase),
web.post("/control/machine/{ref}/reboot", operate_reboot),
web.get("/control/machine/{ref}/sev/measurement", operate_sev_measurement),
web.post("/control/machine/{ref}/sev/inject_disk_secret", operate_sev_inject_secret),
web.post("/control/machine/{ref}/confidential/initialize", operate_confidential_initialize),
web.get("/control/machine/{ref}/confidential/measurement", operate_confidential_measurement),
web.post("/control/machine/{ref}/confidential/inject_secret", operate_confidential_inject_secret),
# /status APIs are used to check that the VM Orchestrator is running properly
web.get("/status/check/fastapi", status_check_fastapi),
web.get("/status/check/fastapi/legacy", status_check_fastapi_legacy),
Expand Down
4 changes: 2 additions & 2 deletions src/aleph/vm/orchestrator/views/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async def operate_reboot(request: web.Request, authenticated_sender: str) -> web

@cors_allow_all
@require_jwk_authentication
async def operate_sev_measurement(request: web.Request, authenticated_sender) -> web.Response:
async def operate_confidential_measurement(request: web.Request, authenticated_sender) -> web.Response:
"""
Fetch the sev measurement for the VM
"""
Expand Down Expand Up @@ -272,7 +272,7 @@ class InjectSecretParams(BaseModel):

@cors_allow_all
@require_jwk_authentication
async def operate_sev_inject_secret(request: web.Request, authenticated_sender) -> web.Response:
async def operate_confidential_inject_secret(request: web.Request, authenticated_sender) -> web.Response:
"""
Send secret to the VM and start it
"""
Expand Down
Loading