Skip to content
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

Short/long args #44

Closed
gene-eu-zz opened this issue Jan 13, 2017 · 3 comments
Closed

Short/long args #44

gene-eu-zz opened this issue Jan 13, 2017 · 3 comments
Assignees
Milestone

Comments

@gene-eu-zz
Copy link

-s --shutdown
-p --poison

etc.

@gene-eu-zz gene-eu-zz added this to the 0.75 milestone Jan 13, 2017
@Lagovas
Copy link
Collaborator

Lagovas commented Jan 13, 2017

I propose to discuss here all the parameters at once, that everyone could offer their own versions
Below is the current state of all parameters
Obviously i will add --verbose, --debug and other popular shortcuts but what about else?
In current implementation each flag can be used as -flag and --flag (-v and --v)

acra

long short default value description
db_host Host to db
db_port 5432 Port to db
host 0.0.0.0 Host for AcraServer
port 9393 Port for AcraServer
commands_port 9090 Port for AcraServer for http api
keys_dir .acrakeys Folder from which will be loaded key
poison_key .acrakeys/poison_key Path to file with poison key
hex_bytea True Hex format for Postgresql bytea data (default)
escape_bytea False Escape format for Postgresql bytea data
server_id acra_server Id that will be sent in secure session
v False Log to stdout
wholecell True Acrastruct will stored in whole data cell
d False Turn on debug logging
ds False Turn on httop debug server
poisonshutdown False Stop on detecting poison record
poisonscript Execute script on detecting poison record
zonemode False Turn on zone mode
disable_zone_api False Disable zone http api

acraproxy

long short default value description
keys_dir .acrakeys Folder from which will be loaded keys
client_id Client id
acra_host IP or domain to acra daemon
acra_commands_port 9090 Port of acra http api
acra_port 9393 Port of acra daemon
acra_id acra_server Expected id from acraserver for Secure Session
v False Log to stdout
port 9494 Port of acraproxy
command_port 9191 Port for acraproxy http api
zonemode False Turn on zone mode
disable_user_check False Disable checking that connections from app running from another user

acra_rollback

long short default value description
keys_dir .acrakeys Folder from which will be loaded keys
client_id Client id should be name of file with private key
connection_string Connection string for db
select Query to fetch data for decryption
insert Query for insert decrypted data with placeholders (pg: $n)
zonemode False Turn on zon emode
output_file decrypted.sql File for store inserts queries
execute False Execute inserts
escape False Escape bytea format

acra_genpoisonrecord

long short default value description
poison_key .acrakeys/poison_key Path to file with poison key
acra_public Path to acra public key to use
data_length -1 Length of random data for data block in acrastruct. -1 is random in range 1..100

acra_genkeys

long short default value description
client_id client Client id
acraproxy False Create keypair only for acraproxy
acraserver False Create keypair only for acraserver
output .acrakeys Folder where will be saved keys

acra_addzone

long short default value description
output_dir .acrakeys Folder where will be saved generated zone keys
fs True Use filesystem key store

@Lagovas
Copy link
Collaborator

Lagovas commented Jan 13, 2017

i dont think that adding <-s> flag for shutdown is a good way because it's important option and better if such options will be set explicitly. The same for <-p> because it's popular option for and may be set by mistake

@Lagovas
Copy link
Collaborator

Lagovas commented Jan 18, 2017

as we discussed and decided, enough to display in documentation using unix-way option format
updated wiki

@Lagovas Lagovas closed this as completed Jan 18, 2017
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

No branches or pull requests

2 participants