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

Is there support for GSSAPI encryption mechanism? #471

Open
Sireax opened this issue Jun 14, 2022 · 5 comments
Open

Is there support for GSSAPI encryption mechanism? #471

Sireax opened this issue Jun 14, 2022 · 5 comments

Comments

@Sireax
Copy link

Sireax commented Jun 14, 2022

I am trying to connect to postgres with GSSAPI using third-party plugin gopgkrb5. It uses gokrb5 to conduct all the operations. Kerberos authentication completes successfully, but it is done without GSSAPI Encryption (Integrity as far as I know). So all the traffic goes through insecure network. It seems like gokrb5 does not support GSSAPI Integrity, but im not sure.
If there is any clue how to do that, could you please help me out?

Original issue: jackc/pgx#1220

@Sireax Sireax changed the title Is there support for GSSAPI Integrity mechanism? Is there support for GSSAPI encryption mechanism? Jun 14, 2022
@douglasawh
Copy link

@jcmturner I too am wondering this. I can see there is some encoding in the code, but I cannot tell if that code is for encryption or not

@Sireax
Copy link
Author

Sireax commented Aug 16, 2022

@jcmturner I too am wondering this. I can see there is some encoding in the code, but I cannot tell if that code is for encryption or not

No there is not. But I managed to add it by myself using another gssapi library

@Sireax
Copy link
Author

Sireax commented Aug 16, 2022

By the way, it is not really related to gokrb itself, implementations will differ for some services and databases

@nicowilliams
Copy link

What is a "GSSAPI encryption mechanism"? Can you refer to a specific C/Java or abstract function/method from RFC 2743, 2744, etc?

@tsipinakis
Copy link

tsipinakis commented Oct 7, 2023

I have just sent a PR that implements all the required framework to implement a GSS-API server. This is now possible with this library.

Edit: It's unclear if this issue is talking about the client-side or server-side GSS-API protocol. Sever side is now possible for sure (I have implemented one, client-side is probably also possible).

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

4 participants