grin icon indicating copy to clipboard operation
grin copied to clipboard

Api basic auth not works if api_secret_path file created failed

Open qtumweiyu opened this issue 6 years ago • 4 comments

Hi, when i running grin server in a docker, i suddenly found that the api basic auth not worked.

After some test, i found that the api_secret_path is set under a not exists path in the server config file, and when i change the path to an exists dir, it works.

qtumweiyu avatar Jan 06 '19 12:01 qtumweiyu

Works as designed, what behavior would you expect in this case?

hashmap avatar Jan 11 '19 12:01 hashmap

Well, I think a warning or notice is better than silent disable😂

qtumweiyu avatar Jan 13 '19 05:01 qtumweiyu

If grin cannot read the auth secret that is defined in the config, it should probably exit with a non-zero code.

0xmichalis avatar Jan 13 '19 12:01 0xmichalis

Reported long ago but appears a valid concern. Has anyone verified behaviour on the current code?

yeastplume avatar Jan 21 '20 13:01 yeastplume