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

Register with FQDN in URL #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ecksun
Copy link
Contributor

@ecksun ecksun commented Sep 2, 2020

This replaces having the FQDN in the body in order to make client
certificate validation easier.

The proxy will continue to work with older clients as we still keep the
old endpoint. However any calls to /poll/* will use the FQDN provided
in the URL for registration.

With this change it is easy to compare the CN in the client certificate with the FQDN provided to PushProx to ensure the client is authorized.

The push call needs not change as the Id header uses a UUID that, to my understanding, is cryptographically random.

cmd/client/main.go Show resolved Hide resolved
cmd/proxy/coordinator.go Show resolved Hide resolved
Linus Wallgren added 2 commits January 11, 2021 13:56
This replaces having the FQDN in the body in order to make client
certificate validation easier.

The proxy will continue to work with older clients as we still keep the
old endpoint. However any calls to `/poll/*` will use the FQDN provided
in the URL for registration.

Signed-off-by: Linus Wallgren <[email protected]>
It needs to be cryptographically unique so that each client is uniquely
identified and cannot be mistaken with another client.

If it is not cryptographically unique one client could potentially guess
the ID and thus send data as if it is was another client.

Signed-off-by: Linus Wallgren <[email protected]>
Copy link
Contributor

@hansmi hansmi left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ ^ FYI

cmd/proxy/coordinator.go Show resolved Hide resolved
cmd/client/main.go Show resolved Hide resolved
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.

2 participants