Skip to content

🔒️(project) move copilot token request to backend #7

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SergioSim
Copy link
Contributor

Purpose

The Copilot Endpoint URL is not a secret per se.
However, we anticipate using a Copilot that requires passing a secret in the Endpoint URL request's header in the future.

Proposal

To avoid exposing the Copilot Endpoint URL secret to Moodle users, we perform the conversation token request on the backend side.

The Copilot Endpoint URL is not a secret per se.
However, we anticipate that in the future, we will use a Copilot that
requires passing a secret in the Endpoint URL request's header.
Thus, we no longer pass the Copilot Endpoint URL to the client
JavaScript to avoid exposing this secret to Moodle users and make the
request on the backend side instead.
@SergioSim SergioSim added the enhancement New feature or request label Sep 13, 2024
@SergioSim SergioSim self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant