You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client should have the following commands (priority of implementation):
import-users <file.json/csv>
We should have the possibility to bulk import users in a described/defined format/file type.
Idealy would be to support two fille (predefined) formats: JSON & CSV.
add-user [login]
Since we will handle bulk user creation, should be easy to do one-off just to add one user.
disable-user [login]
change-password [login[
ssh-auth [user/group?]
Now we are showing examples of how to interact with DG API through curl & bash, but we should have this done in our client.
status [location]
[location] is optional - if not set - show all locations.
Command will show all connections / peers in human readable way - the same way as "wg-quick" connection/peer status, but in human-readable way - so that the peers would have names like: John Wick - MacBook (and not public keys)
import-vpn <wg.conf>
The question remains - how we should configure access for the client - maybe a dedicated functionality in DG for Tokens/oauth?
The text was updated successfully, but these errors were encountered:
@kchudy also I think that should not be in the gateway itself - I think we should start to do a command line client (just: defguard)
Meaning we should not mix server and client binaries/tools. Gateway is a sever, we need a client then that is shipped with the server.
teon
changed the title
Add status command that will show current connections / peers in human readable way
Defguard command line client "defguard"
Nov 21, 2023
The client should have the following commands (priority of implementation):
We should have the possibility to bulk import users in a described/defined format/file type.
Idealy would be to support two fille (predefined) formats: JSON & CSV.
Since we will handle bulk user creation, should be easy to do one-off just to add one user.
disable-user [login]
change-password [login[
ssh-auth [user/group?]
Now we are showing examples of how to interact with DG API through curl & bash, but we should have this done in our client.
[location] is optional - if not set - show all locations.
Command will show all connections / peers in human readable way - the same way as "wg-quick" connection/peer status, but in human-readable way - so that the peers would have names like: John Wick - MacBook (and not public keys)
The question remains - how we should configure access for the client - maybe a dedicated functionality in DG for Tokens/oauth?
The text was updated successfully, but these errors were encountered: