Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-4625

APIcast fails to fetch configuration when Provider API Key is used instead of access_token

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • SaaS
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
      • Generate an access token with read/write permissions on the Account Management & Policy Registry APIs.
      • Restart gateways with new token to fetch configuration(s)
    • Hide
      docker run --name apicast --rm -p 8080:8080 -e THREESCALE_PORTAL_ENDPOINT=https://<PROVIDER_KEY>@<domain>-admin.3scale.net -e APICAST_CONFIGURATION_LOADER=boot -e THREESCALE_DEPLOYMENT_ENV=staging  -e APICAST_CONFIGURATION_CACHE=300 -e APICAST_LOG_LEVEL=debug registry.redhat.io/3scale-amp2/apicast-gateway-rhel7
      

      Logs from APIcast:

      [debug] 13#13: [lua] policy_chain.lua:199: init(): policy chain execute phase: init, policy: Load Configuration, i: 1
      [debug] 13#13: [lua] util.lua:44: system(): os execute cd . && /opt/app-root/src/libexec/boot
      [debug] 13#13: [lua] env.lua:86: fetch(): env: THREESCALE_CONFIG_FILE = nil
      [emerg] 13#13: [lua] configuration_loader.lua:139: init(): failed to load configuration, exiting (code 1)
      
      Show
      docker run --name apicast --rm -p 8080:8080 -e THREESCALE_PORTAL_ENDPOINT=https://<PROVIDER_KEY>@<domain>-admin.3scale.net -e APICAST_CONFIGURATION_LOADER=boot -e THREESCALE_DEPLOYMENT_ENV=staging -e APICAST_CONFIGURATION_CACHE=300 -e APICAST_LOG_LEVEL=debug registry.redhat.io/3scale-amp2/apicast-gateway-rhel7 Logs from APIcast: [debug] 13#13: [lua] policy_chain.lua:199: init(): policy chain execute phase: init, policy: Load Configuration, i: 1 [debug] 13#13: [lua] util.lua:44: system(): os execute cd . && /opt/app-root/src/libexec/boot [debug] 13#13: [lua] env.lua:86: fetch(): env: THREESCALE_CONFIG_FILE = nil [emerg] 13#13: [lua] configuration_loader.lua:139: init(): failed to load configuration, exiting (code 1)
    • 3scale 2020-02-17

    Description

      For this customer APIcast fails to fetch the configuration when the Provider API Key is used instead of the access token in the THREESCALE_PORTAL_ENDPOINT variable while running APIcast self managed via Docker.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-sillumin Samuele Illuminati (Inactive)
            Carlos Ribeiro Carlos Ribeiro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: