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

add support for alpine images or scratch #37

Open
jeffhollan opened this issue Jun 23, 2019 · 1 comment
Open

add support for alpine images or scratch #37

jeffhollan opened this issue Jun 23, 2019 · 1 comment

Comments

@jeffhollan
Copy link

Expected Behavior

When running in a base image that is scratch or -alpine I'd expect it to work

Actual Behavior

Always get the below error:

failed to configure AAD JWT provider: failed to refersh token: &{{{ 0 0 0 } 0xc4203889f0 {{https login.microsoftonline.com /72f988bf-86f1-xxxx-xxxx-2d7cd011db47 false } {https login.microsoftonline.com /72f988bf-xxxx-xxxx-91ab-2d7cd011db47/oauth2/authorize false api-version=1.0 } {https login.microsoftonline.com /72f988bf-xxxx-xxxx-91ab-2d7cd011db47/oauth2/token false api-version=1.0 } {https login.microsoftonline.com /72f988bf-xxxx-xxxx-xxxx-2d7cd011db47/oauth2/devicecode false api-version=1.0 }} 930fab59-xxxx-xxxx-xxxx-484114d560ea https://eventhubs.azure.net/ true 300000000000} 0xc4202caee0 0xc42028a8d0 [] 0}

Environment

  • OS: both alpine:3.7 and scratch
  • Go version: 1.12.5
  • Version of Library: 1.1.4
@devigned
Copy link
Member

devigned commented Jul 18, 2019

Sorry for missing this issue and not responding til now.

Silly question, are you sure your credentials were correct?

Can you provide a code sample showing the construction of your EPH or Hub instance?

There really shouldn't be anything fancy happening under the covers. The AAD JWT provider will use service principal creds (password or cert) and fall back to MSI if available. Each of those is just a handful of simple HTTP requests to procure a token. The error that you've posted seems to me that AAD rejected your token request due to bad password or similar. See

if err := spToken.Refresh(); err != nil {
return nil, fmt.Errorf("failed to refersh token: %v", spToken)
}

Also, spelling error in "refersh". That needs to be cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants