eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
18 stars 5 forks source link

Apply correct defaults for username / password #239

Open DrRataplan opened 1 month ago

DrRataplan commented 1 month ago

Fixes #213

Defaults were already documented at https://github.com/eXist-db/xst?tab=readme-ov-file#with-environment-variables

line-o commented 1 month ago

That's @DrRataplan for your contribution. I am just unsure what the best default is here:

DrRataplan commented 1 month ago

I'm also unsure. I feel something for having leveled permissions: attempt using a guest user if we only need guest-like access, and admin if we require more privileges. But this increases complexity.

Based on the comments in the file I touched and the README, admin/<empty> was intended to be the default. This used to be the actual behaviour, but that was removed in 508c75fdc2a62028c5526e405a30db464e488b73. It's just that the comment and the README was not updated. This caused my (and @JoernT's) confusion.

Do we wanna go left or right?

line-o commented 4 weeks ago

@DrRataplan I would like to update the readme with the actual defaults

line-o commented 4 weeks ago

maybe together with #240

DrRataplan commented 3 weeks ago

I am up for that, especially combined with the dotenv changes: I will then just make a dotenv in the folder that houses all my projects!