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

Apply skipping certification verification to authorization as well #287

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

ktock
Copy link
Member

@ktock ktock commented Jul 12, 2021

Fixes: #278

This commit fixes the issue that skipping certificate verification didn't applied to the access to the authorization server.
The behaviour that propagates skip-verification config to the authorizer is compatible to the current behaviour of ctr.

@AkihiroSuda
Copy link
Member

Can we have a test like this?

func TestPushPlainHTTPInsecure(t *testing.T) {

Can be a separate PR though

@AkihiroSuda AkihiroSuda added this to the v0.11.0 milestone Jul 12, 2021
Transport: tr,
}
regOpts = append(regOpts, docker.WithClient(client))
regOpts = append(regOpts, docker.WithClient(newInsecureClient()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to call newInsecureClient() twice

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
@ktock
Copy link
Member Author

ktock commented Jul 12, 2021

Can we have a test like this?

func TestPushPlainHTTPInsecure(t *testing.T) {

Can be a separate PR though

I'll work on it. We'll need to host an authorization server in CI (maybe we can use https://github.com/cesanta/docker_auth).

@AkihiroSuda
Copy link
Member

@ktock Do you plan to work on tests before merging this PR or after?

@ktock
Copy link
Member Author

ktock commented Jul 19, 2021

Sorry for the late. I add the test in this week but please merge it if this patch is needed urgently.

@AkihiroSuda AkihiroSuda merged commit 162724f into containerd:master Jul 20, 2021
@ktock ktock deleted the authtlsskip branch September 8, 2022 04:28
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

Successfully merging this pull request may close these issues.

How to skip certificate verification
2 participants