Skip to content

Defguard command line client "defguard" #65

@teon

Description

@teon

The client should have the following commands (priority of implementation):

  1. 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.

  1. add-user [login]

Since we will handle bulk user creation, should be easy to do one-off just to add one user.

  1. disable-user [login]

  2. change-password [login[

  3. 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.

  1. 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)

  1. import-vpn <wg.conf>

The question remains - how we should configure access for the client - maybe a dedicated functionality in DG for Tokens/oauth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    Development ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions