Uploaded image for project: 'Eclipse Che development'
  1. Eclipse Che development
  2. CHE-281

Inject user KC token in bayesian LS

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • server
    • None
    • 40

      Currently an hardcoded KC token is set as a env variable (RECOMMENDER_TOKEN) inside workspaces containers. This KC token is [consumed by the bayesian LS|https://github.com/fabric8-analytics/fabric8-analytics-lsp-server/blob/master/src/server.ts#L177) for authentication with the remote recommandation service.

      The current user KC token should be used instead. There are 2 different approach here:

      1) Add KC token as a LS configuration and use LSP DidChangeConfiguration notification to push token updates (when it's renewed) to bayesian LS
      2) Before every remote call Bayesian should get the KC token using wsagent REST API

            Unassigned Unassigned
            mloriedo Mario Loriedo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: