unioslo / tsd-api-client

Command line client for the TSD HTTP API
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

IP address whitelist for tacl --basic auth #129

Closed ofrei closed 3 months ago

ofrei commented 6 months ago

If one tries tacl --basic auth without whitelisting IP addresses the error only says authentication failed. I was confused because my IP addresses were already white-listed for tsd-s3cmd usage, and I didn't know that this needs to be a separate request. Could you clarify in tacl --guide authomation that tac --basic require IP addresses to be added to an additional list, i.e. this is separate from tsd-s3cmd whitelist? Alternatively the error message can be expanded to give few more details beyond authentication failed.

>tacl p33 --basic --upload MIXER_FUNC_ENRICH_cmig.sh --verbose

DEBUG using basic authentication
authentication failed
tacl --guide automation

To import data to your TSD project(s) in an automated way,
you firstly need to organise access for your machine(s) to the TSD API,
by proividing an IP address/range. If your machine(s) are located on
an Uninett network, then TSD's current security policy allows
enabling access without issue.
leondutoit commented 4 months ago

Addressed in https://github.com/unioslo/tsd-api-client/commit/a017b886e63936a13bf191e9844ca46adbeaf0e3