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

[warp] Get peer credentials from unix sockets #929

Open
dminuoso opened this issue May 11, 2023 · 1 comment
Open

[warp] Get peer credentials from unix sockets #929

dminuoso opened this issue May 11, 2023 · 1 comment

Comments

@dminuoso
Copy link

dminuoso commented May 11, 2023

Hi,

I would like to get the peer credentials from a peer connected to a unix domain socket (see SO_PEERCRED).

Is there some interface in warp that I’m missing, where I could call getsockopt and inject the obtained peer credentials as a HTTP header? Or something equivalent perhaps?

@dminuoso dminuoso changed the title Get peer credentials from unix sockets [warp] Get peer credentials from unix sockets May 11, 2023
@Vlix
Copy link
Contributor

Vlix commented Sep 9, 2023

Could you maybe use Network.Socket.getPeerCredential in your case?

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