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

Authoring key incorrectly used for endpoint calls #7146

Closed
2 of 8 tasks
darrenj opened this issue Apr 20, 2021 · 5 comments · Fixed by #7430
Closed
2 of 8 tasks

Authoring key incorrectly used for endpoint calls #7146

darrenj opened this issue Apr 20, 2021 · 5 comments · Fixed by #7430
Assignees
Labels
P0 Must Fix. Release-blocker R13 Bugbash ShipRoom-Approved Ship room has approved this issue for the release topic: creation Type: Bug Something isn't working
Milestone

Comments

@darrenj
Copy link

darrenj commented Apr 20, 2021

Describe the bug

When selecting a LUIS key in Composer this is purely retrieving the authoring key and not enabling me to select an endpoint key. This has been raised a few times and the (old) composer behaviour of using Authoring key for endpoint (prediction) calls is not correct. Whilst it works, it has a limited quota and will quickly run out of quota meaning the developers Bot stops working which is hard to diagnose and root of many a developer issues today. 1000 calls to the key are allowed per month, with LUIS being run on every turn these days it doesn't take long to hit it.

Version

1.4.0-nightly.237101

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Create new empty bot
  2. Add LUIS intent/trigger
  3. From rocket ship menu select an existing LUIS resource
  4. Observe that LUIS authoring key is set and endpoint key is not.

Expected behavior

Selection of an endpoint key as well as authoring. Ensuring we give the developer a recommended, best practice configuration out of the box not something setting them up for failure.

@darrenj darrenj added Type: Bug Something isn't working Needs-triage A new issue that require triage labels Apr 20, 2021
@Dewain27 Dewain27 added R13 Bugbash topic: creation and removed Needs-triage A new issue that require triage labels Apr 20, 2021
@Dewain27 Dewain27 added this to the R13 milestone Apr 20, 2021
@Dewain27
Copy link
Contributor

This should add a prediction key to what we provision in LUIS from getting started with a F0 sku.

You will need to run this command to be able to give the permissions to allow the key to have the proper rights:
az account get-access-token --output json

bf luis:application:assignazureaccount --accountName <luisAccountName>
--resourceGroup --armToken <az access token>
--azureSubscriptionId --appId <luis app id>
--endpoint `
--subscriptionKey

@benbrown
Copy link
Contributor

This has been a known issue for a while, and I knew there was a reason it had not yet been addressed. It took a little sleuthing, but I figured it out:

In order to do this key assignment process, we will need to require the user to login to Azure first during the "start bot" process. In addition, we will need to capture additional information about the LUIS endpoint key resource during provisioning.
The actual resource name, in addition to the key, is required to do the assignment. We do not currently have a place in the settings for this value.

It is not trivial to add authentication to this flow. This is another strong indicator that we need to invest in an all up "login to composer" strategy.

@Dewain27
Copy link
Contributor

Blocked by #7166

@cwhitten cwhitten added the P1 Painful if we don't fix, won't block releasing label Apr 21, 2021
@darrenj darrenj added the P0 Must Fix. Release-blocker label Apr 22, 2021
@Dewain27 Dewain27 removed the P1 Painful if we don't fix, won't block releasing label Apr 23, 2021
@cwhitten
Copy link
Member

Eng. is recommending a warning in the settings page and a rocket menu update

@cwhitten cwhitten added ShipRoom-Approved Ship room has approved this issue for the release and removed Blocked labels Apr 27, 2021
@benbrown
Copy link
Contributor

OK the r13 solution for this is in #7430 - a warning appearing on the settings page, and a recommendation to publish the bot to Azure if the limit is reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Must Fix. Release-blocker R13 Bugbash ShipRoom-Approved Ship room has approved this issue for the release topic: creation Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants