Skip to content

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.

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

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