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

Unusual / unlicensed dependency in kerberos support #1438

Closed
faec opened this issue Jul 26, 2019 · 3 comments · Fixed by #1465
Closed

Unusual / unlicensed dependency in kerberos support #1438

faec opened this issue Jul 26, 2019 · 3 comments · Fixed by #1465

Comments

@faec
Copy link

faec commented Jul 26, 2019

Versions

Sarama Version: 1.23.1
Kafka Version: N/A
Go Version: N/A

Problem Description

gssapi_kerberos.go uses the unusual import "github.com/jcmturner/gofork/encoding/asn1" rather than the standard library equivalent "encoding/asn1". This is an undocumented / unlicensed fork of the go code whose repo README specifically says it should not be used. Did this creep in accidentally or is there a reason the standard library can't be used here? If the latter, could the reasoning and license issues be clarified?

@bai
Copy link
Contributor

bai commented Jul 29, 2019

Thanks for reporting!

@d1egoaz this might be worth looking into if you'll have time 🙏

@faec
Copy link
Author

faec commented Jul 29, 2019

more context, here is jcmturner/gokrb5's response to the same question (the specific workarounds they need are at the bottom of the gokrb5 readme... I'm not sure if your use is because of one of those, or is incidental)

@d1egoaz
Copy link
Contributor

d1egoaz commented Aug 21, 2019

Thanks @faec, good catch!

I 👀 the jcmturner/gokrb5 https://github.com/jcmturner/gokrb5#known-issues

and yes, that repo needs to use the jcmturner/gofork in order to have some
workarounds about some stuff not implemented or not working as expected.

For the specific case of github.com/jcmturner/gofork/encoding/asn1 there is no
reason right now to keep using jcmturner/gofork as the issue
golang/go#17321 was solved/closed in Dec 15, 2016 and
released in go 1.10

d1egoaz added a commit that referenced this issue Aug 21, 2019
fixes #1438

`jcmturner/gokrb5` needs to use the `jcmturner/gofork` in order to have
some workarounds about some stuff not implemented or not working as
expected.

For the specific case of github.com/jcmturner/gofork/encoding/asn1 there
is no reason right now to keep using `jcmturner/gofork` as the issue
golang/go#17321 was solved/closed in Dec 15, 2016 and released in go
1.10

`jcmturner/gokrb5` still uses internally `jcmturner/gofork`, it seems
the `gofork` `asn1` part could be removed and use the standar library,
but that will need some more work and PRs on the `jcmturner/gokrb5`
side.
@bai bai closed this as completed in #1465 Aug 21, 2019
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 a pull request may close this issue.

3 participants