-
Notifications
You must be signed in to change notification settings - Fork 0
Add vpn-service #76
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
base: main
Are you sure you want to change the base?
Add vpn-service #76
Conversation
proto/metalstack/admin/v2/vpn.proto
Outdated
| // VPNService serves vpn related functions | ||
| service VPNService { | ||
| // AuthKey generates a authkey for a project to join a machine to the project vpn | ||
| rpc Authkey(VPNServiceAuthkeyRequest) returns (VPNServiceAuthkeyResponse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rpc Authkey(VPNServiceAuthkeyRequest) returns (VPNServiceAuthkeyResponse) { | |
| rpc AuthKey(VPNServiceAuthkeyRequest) returns (VPNServiceAuthkeyResponse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| } | ||
| // ListNodes returns a list of machines actually connected to the vpn | ||
| rpc ListNodes(VPNServiceListNodesRequest) returns (VPNServiceListNodesResponse) { | ||
| option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; | |
| option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; | |
| option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
proto/metalstack/admin/v2/vpn.proto
Outdated
| string address = 1; | ||
| // Authkey is the key to connect to the vpn at the given address. | ||
| // This key can only be seen once. | ||
| string authkey = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| string authkey = 2; | |
| string auth_key = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
proto/metalstack/admin/v2/vpn.proto
Outdated
| // VPNServiceListNodesRequest is the request payload for a vpn list nodes request | ||
| message VPNServiceListNodesRequest { | ||
| // User if given only nodes of this user are returned | ||
| optional string user = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also use project and do not expose how headscale looks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
proto/metalstack/api/v2/vpn.proto
Outdated
| // Name of this node | ||
| string name = 2; | ||
| // User of this node, maps to a project | ||
| optional string user = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe project. Why can this be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed, not optional anymore
Description
Add VPN related Service.