Skip to content

Support IAM Credential Authentication in AWS Q Developer/CodeWhisperer #262

@twwildey

Description

@twwildey

Is your feature request related to a problem? Please describe.

The LSP server for AWS Q Developer is only supporting Bearer tokens at this time and not IAM credentials:

<-  LSP-aws-q-developer window/logMessage: {'type': 3, 'message': '[2024-05-25T03:17:58.532Z] Recommendation failure: Error: Authorization failed, bearer token is not set'}

You can see this here effectively:

  1. servers: [CodeWhispererServerTokenProxy, CodeWhispererSecurityScanServerTokenProxy, NetTransformServer],
  2. export const CodeWhispererServerTokenProxy = CodewhispererServerFactory(credentialsProvider => {
  3. export class CodeWhispererServiceToken extends CodeWhispererServiceBase {

Describe the solution you'd like

Code search shows that nothing is actually referencing CodeWhispererServiceIAM effectively yet:

  1. https://github.com/aws/language-servers/blob/c5a9b5882642b4c6ce5d59bb4815789a2636af03/server/aws-lsp-codewhisperer/src/language-server/codeWhispererService.ts#L48C14-L48C37
    1. https://github.com/search?q=repo%3Aaws%2Flanguage-servers%20CodeWhispererServiceIAM&type=code
  2. export const CodeWhispererServerIAM = CodewhispererServerFactory(
    1. https://github.com/search?q=repo%3Aaws%2Flanguage-servers%20CodeWhispererServerIAM&type=code

I will either need to get bearer tokens for a Builder ID, or we'll need to bridge the gap for supporting IAM-based authentication for the LSP service. As an internal employee at Amazon, it is significantly easier for me to use IAM credentials over a bearer token for a Builder ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttracked[Maintainer-Only] Issue is acknowledged and tracked by the team

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions