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

chore(migration): update merge CGW migration epic branch to develop #183

Closed
wants to merge 5 commits into from

Conversation

bhairavi25
Copy link
Collaborator

@bhairavi25 bhairavi25 commented Oct 21, 2024

Update api_key queryParam references to be passed as x-api-key header

Description

As part of cluster gateway migration api_key can no longer be passed as a query param and MUST be passed as x-api-key header.

Related Issue

https://jira.corp.adobe.com/browse/CEXT-3607

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

dthampy
dthampy previously approved these changes Oct 21, 2024
@@ -155,17 +155,18 @@ const getMesh = async (organizationId, projectId, workspaceId, workspaceName, me
const { baseUrl: devConsoleUrl, accessToken, apiKey } = await getDevConsoleConfig();
const config = {
method: 'get',
url: `${devConsoleUrl}/organizations/${organizationId}/projects/${projectId}/workspaces/${workspaceId}/meshes/${meshId}?API_KEY=${apiKey}`,
url: `${devConsoleUrl}/organizations/${organizationId}/projects/${projectId}/workspaces/${workspaceId}/meshes/${meshId}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you verify if this works on the dev console API?

@@ -1,6 +1,6 @@
{
"name": "@adobe/aio-cli-plugin-api-mesh",
"version": "3.9.2",
"version": "3.9.2-beta.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this to be a beta package?

@bhairavi25
Copy link
Collaborator Author

bhairavi25 commented Oct 29, 2024

Developer console expects the Api Key to be passed as query parameter in uppercase ?API_KEY. Hence closing this PR

@bhairavi25 bhairavi25 closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants