mr-stringer / hanautil

A helper utility for the HANA database written in golang
Apache License 2.0
2 stars 0 forks source link

hanautil does not check for authrorisation before attempting activities #16

Open mr-stringer opened 1 year ago

mr-stringer commented 1 year ago

hanautil should check that the user it is configured to use has the correct level of authorisation to perform the task. Currently, hanautil will assume it has the correct permissions and attempt the task which will cause a failure.

A better approach would be to check for the correct authorisation and clearly state any problems in the log. It should also not attempt to perform actions if the authorisation is not in place.