storj/scripts
Ivan Fraixedes f5227abd36
uplink: enc.encryption-key flag is only available for setup command (#2090)
* uplink: Mark encryption key config field for setup
  Set the "setup" property to the `EncryptionConfig.EncrptionKey` for
  avoiding to save it in the configuration file.
  This field is only meant for using in the command line parameters which
  need to use a different encryption key than the one present in the key
  file or use it when there is not set any encryption key file path.
* cmd/uplink: Setup non-interactive accept enc key
  Change the uplink CLI setup command non-interactive to save the
  encryption key into a file when it's passed through the flag
  --enc.encryption-key
  Previous to this change it wasn't possible to create an key file despite
  of that the flag was provided, so it was useless on the setup command.
* cmd/uplink: Reuse logic to read pwd from terminal
  Reuse the logic which is already implemented in the pkg/cfgstruct for
  reading a password from the terminal on interactive mode, rather than
  duplicating it in the setup command.
* cmd/gateway: Use encryption key file flags
  The cmd/gateway was still using the `enc.key` configuration field which
  doesn't exist anymore and its setup command wasn't using the
  `enc.key-filepath` with combination of the `enc.encryption-key` for
  generating a file with the encryption key.
  This commit update the cmd/gateway appropriately and move to the uplink
  package the function used by cmd/uplink to save the encryption key for
  allowing to also be used by the cmd/gateway without duplicating the
  logic.
* cmd/storj-sim: Adapt gateway config cmd changes
  Adapt the cmd/storj-sim to correctly pass the parameters to the
  cmd/gateway setup and run command.
* scripts: Don't pass the --enc.encryption-key flag
  uplink configuration has changed to only support the
  `--enc.encryption-key` flag for setup commands and consequently the
  cmd/uplink and cmd/gateway don't accept this flag over other commands,
  hence the test for the uplink had to be updated for no passing the
  flag on the multiples calls that the test do to cmd/uplink.
* uplink: Remove func which aren't useful anymore
  Remove the function which allows to user or load an encryption key
  because it isn't needed anymore since the `--enc.encryption-key` flag is
  only available for the setup command.
  Consequently remove its usage from cmd/uplink and cmd/gateway, because
  such flag will always be empty because in case that's passed Cobra will
  return an error due to a "unknown flag".
2019-06-07 18:14:40 +02:00
..
testdata discovery: remove graveyard (#2145) 2019-06-07 08:40:51 +03:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
cert-gating.sh certificates config and --certs-dir fixes (#1093) 2019-01-22 13:35:48 +01:00
check-clean-directory.go jenkins: add tidiness checks (#1824) 2019-04-24 18:33:01 +03:00
check-copyright.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
check-dbx-version.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
check-imports.go jenkins: use -race for check-imports and fix dbx check (#1873) 2019-05-01 09:44:12 -06:00
check-mod-tidy.go jenkins: add tidiness checks (#1824) 2019-04-24 18:33:01 +03:00
check-peer-constraints.go jenkins: peer constraints (#1933) 2019-05-10 14:13:09 +02:00
check-satellite-config-lock.sh Update Notification Text to new process (#2120) 2019-06-04 22:43:07 -04:00
cover-remove-generated.go cover all the things (#1818) 2019-04-26 16:39:11 +03:00
dependencies_test.go Add arguments to lockedgen for using it in other places (#1030) 2019-01-11 18:07:26 +02:00
fail-on-race.go Fail integration tests on panic (#1032) 2019-01-11 18:18:16 +02:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
lockedgen.go create db implementation for offer table (#2031) 2019-06-04 15:17:01 -04:00
protobuf.go jenkins: check that lock file is updated properly (#1977) 2019-06-04 19:12:27 +02:00
release.sh Fixing upload and build binaries (#1751) 2019-04-12 13:28:04 -04:00
test-aio.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-aws-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-certificate-signing.sh Improve cert signing integration test+: (#997) 2019-01-11 15:59:35 +01:00
test-network-stalls.go Test that network stalls don't cause indefinite hangs in uplink (#1530) 2019-03-20 08:58:07 -06:00
test-sim-aws.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-sim-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-sim.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-uplink.sh uplink: enc.encryption-key flag is only available for setup command (#2090) 2019-06-07 18:14:40 +02:00
update-satellite-config-lock.sh jenkins: check that lock file is updated properly (#1977) 2019-06-04 19:12:27 +02:00
use-ports.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
utils.sh certificates config and --certs-dir fixes (#1093) 2019-01-22 13:35:48 +01:00
xunit.go ensure tests fail when parsing test output fails (#1914) 2019-05-08 16:36:41 +03:00