Skip to content

Conversation

@juanfont
Copy link
Owner

@juanfont juanfont commented Jun 5, 2021

This commit changes a bit how we handle the registration workflow. Hopefully solves #32.

@Juliaria08 Juliaria08 mentioned this pull request Jun 5, 2021
@juanfont juanfont requested a review from cure June 5, 2021 14:42
Copy link
Contributor

@cure cure left a comment

Choose a reason for hiding this comment

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

Just one small nit, looks good otherwise, thanks!


resp.MachineAuthorized = true
resp.User = *pak.Namespace.toUser()
pak, err := h.checkKeyValidity(req.Auth.AuthKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a check before this line that req.Auth is not nil? Otherwise, if it ever were nil, we'd get a runtime panic.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

OK that's fair, never mind then thanks.

@juanfont juanfont merged commit f2e1e42 into main Jun 7, 2021
@juanfont juanfont deleted the fix-nodekey-change branch September 27, 2021 10:01
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.

3 participants