apigee / apigee/devrel

Apigee Edge to X Migration Tool does not support Apigee OPDK

Open
#808 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
221
Forks
174
PR merge metrics
No merged PRs in 30d

Description

We have tested Apigee Edge to X Migration Tool trying to migrate our Apigee Edge OPDK into Hybrid but it failed with error:

    at file:///Users/taagare9/git/apigee/migration/devrel/tools/apigee-edge-to-x-migration-tool/src/gateway-clients/apigee-edge/ApigeeEdgeClient.js:191:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Job.task (file:///Users/taagare9/git/apigee/migration/devrel/tools/apigee-edge-to-x-migration-tool/src/gateway-clients/apigee-edge/ApigeeEdgeClient.js:209:28)

After some investigation it showed in:
https://github.com/apigee/devrel/blob/main/tools/apigee-edge-to-x-migration-tool/src/gateway-clients/apigee-edge/ApigeeEdgeClient.js
that it trying to get token from hardcoded url of google api:

    return fetch('https://login.apigee.com/oauth/token', {
      method: 'POST',
      body: querystring.stringify({
        username: this.username,
        password: this.password,
        grant_type: 'password'
      }),
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
        'Accept': 'application/json;charset=utf-8',
        'Authorization': 'Basic ZWRnZWNsaTplZGdlY2xpc2VjcmV0'
      }

Could you please confirm this Apigee Edge to X Migration Tool also supports Apigee Edge for Private Cloud (On-Premise/OPDK) to migrade to Hybrid?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/gateway-clients/apigee-edge/ApigeeEdgeClient.js around the authentication request and the reported lines 191 and 209. Trace how the migration tool obtains and uses the token, then determine the expected authentication behavior for Apigee Edge OPDK. Done means the issue’s support status is established and, if supported, OPDK migration no longer fails at authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.