Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Create a page used to issue execution tokens #13

Open
6 of 7 tasks
longtomjr opened this issue May 4, 2021 · 0 comments · Fixed by #14 or #15
Open
6 of 7 tasks

Create a page used to issue execution tokens #13

longtomjr opened this issue May 4, 2021 · 0 comments · Fixed by #14 or #15
Assignees

Comments

@longtomjr
Copy link
Collaborator

longtomjr commented May 4, 2021

  • On page load, request attestation JWT for the authorization enclave (Depends on: Add endpoint for requesting attestation JWT for the authorization enclave rtc-data#40)
  • Display the attestation result in a similar manner as the upload data page (use the same component)
  • Have text inputs for
    • Data access key
    • Data UUID / Identifier
    • SHA 256 hash of the binary that the data owner wants to allow execution for
    • Number of uses this token should be valid for
  • Seal the above with tweetnacl.box using the public key from the attestation, the private part of an ephemeral keypair and a new nonce.
  • POST the sealed box to the token issuing endpoint alongside the metadata (public part of the ephemeral keypair and the nonce) (Depends on: Add endpoint for requesting execution tokens rtc-data#41)
  • Decrypt the result from the POST call, and show the execution token to the user: Post sealed box & Decrypt response #19
  • Test that everything works
@PiDelport PiDelport linked a pull request May 6, 2021 that will close this issue
@PiDelport PiDelport linked a pull request May 7, 2021 that will close this issue
@jongbonga jongbonga reopened this May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants