-
Notifications
You must be signed in to change notification settings - Fork 514
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
"nil pointer" error when notary-server is configured with an "auth section" #1097
Comments
I'd like to take a took into this when I get back to my office. ADDED: |
This fixed my issue:
Root cause is that in doAuth() it returns a nil Context when it requires challenge. |
I can submit a PR if you think it is OK. |
Thanks for the fixing @reasonerjt ! |
There was some discussion about whether this should be: defer func(ctx Context) {
ctxu.GetResponseLogger(ctx).Info("response completed")
}(ctx) but I don't remember where we landed? |
Signed-off-by: Tan Jiang <jiangd@vmware.com>
@ecordell this is the existing discussion: https://github.com/docker/notary/pull/1081/files#diff-aa3046143cd12bfccc02a859a56d1036R64 |
Signed-off-by: Tan Jiang <jiangd@vmware.com>
Signed-off-by: Tan Jiang <jiangd@vmware.com>
Hi,
I pulled latest code and could successfully setup notary using the default docker compose template.
However when I added "auth section" to server-config.json, like this:
In which case the url "https://10.117.4.142/service/token" points to a jwt token service I wrote.
I tried to execute notary list and got error:
Checked the output of notary server container via docker-compose, the error looks like this:
I don't get much information from this output, seems the error is thrown when initializing the logger.
Checked the log of my token service, the endpoint didn't receive any request.
Any idea for further debug???
I appreciate your help.
The text was updated successfully, but these errors were encountered: