The SFLvaultCommand object is invoked by the shell manager, or when executing sflvault on the command line. All methods of the object will be used to generate help, and will parse command-line arguments on it’s own.
Note
To learn more of the security impact of these functions, please check sflvault.lib.vault.SFLvaultAccess which is the piece of code that does the actual work. This class only wraps calls to that library (directly by importing the Python class, or over the network via XML-RPC)
Parse command line arguments, and call SFLvault commands on them.
Each method of this object are SFLvault commands. They are called when you run sflvault connect s#1 on the command line, or when you run connect s#1 from within the shell.
Create a SFLvaultCommand object
Parameters: |
|
---|
Set an alias, local shortcut to VaultIDs (s#123, m#87, etc..)
List, view or set an alias.
Connect to a remote SSH host, sending password on the way.
Add a new customer.
Delete an existing customer, it’s machines and all services.
Make sure you have detached all services’ childs before removing a customer with machines which has services that are parents to other services.
Edit customer informations.
List existing customers.
This option takes no argument, it just lists customers with their IDs.
Add a group to the vault
This command accepts a group name (as string) as first and only parameter.
Add a service to a group, doing necessary re-encryption
Add a user to a group, doing necessary re-encryption
Remove a group from the vault
For this to be successful, the group must have no more services associated with it.
Remove a service from a group
Remove a user from a group
Edit Group informations
List existing groups.
Print this help.
You can use:
help [command]
to get further help for command.
Add a new machine.
Delete an existing machine, including all services.
Make sure you have detached all services’ childs before removing a machine which has services that are parents to other services.
Edit machine informations.
List existing machines.
This command will list all machines in the vault’s database.
Search the vault for the specified keywords.
Add a service to a particular machine.
The secret/password/authentication key will be asked in the interactive prompt.
Delete an existing service. Make sure you have detached all childs before removing a parent service.
Edit service informations.
Change the password for a service.
Do not specify password on command line, it will be asked on the next line.
Show informations to connect to a particular service.
Add a user to the vault.
Delete an existing user.
List existing users.
This option takes no argument, it lists the current users and their privileges.
Change the passphrase protecting your local private key
Setup a new user on the vault.
Call this after an admin has called user-add on the vault.
username: the username used in the user-add call.
vault_url: the URL (http://example.org:port/vault/rpc) to the vault.
Put your SFLvault password in a wallet