Duo Workflow Service API endpoint for minting JWT
Background
Objective
Implement an API endpoint in the Duo Workflow Service for issuing User JWT (UJWT), following the pattern established by the AI Gateway.
Requirements
- Create an API endpoint that returns a JWT.
- Authenticate the endpoint using an Instance JWT (IJWT).
- GitLab.com will sign its own IJWT.
- Self-Managed/Dedicated instances will load IJWT from the database.
Reference Implementation
The AI Gateway's similar endpoint is defined here.
Tasks
- Design the API endpoint structure.
- Implement IJWT authentication mechanism.
- Develop JWT minting logic (this should be handled by the Cloud Connector module, which is being developed)
- Ensure proper integration with GitLab.com and Self-Managed/Dedicated instances.
- Write unit and integration tests.
- Update documentation to reflect the new endpoint.
Related Issues
Edited by Jessie Young