You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only permission required to optimize a database should be execute on admin:dbname:
(⎈ |ops:stardog)Simons-MBP:bin simon$ ./stardog-admin --server https://k8s-ops.stardoglabs.com:5820 user add simon_admin -N newpass
Successfully created user simon_admin.
(⎈ |ops:stardog)Simons-MBP:bin simon$ ./stardog-admin --server https://k8s-ops.stardoglabs.com:5820 db create --name simon_db
Successfully created database 'simon_db'.
(⎈ |ops:stardog)Simons-MBP:bin simon$ ./stardog-admin --server https://k8s-ops.stardoglabs.com:5820 user grant simon_admin -a execute -o admin:simon_db <<--- afaik this is the only permission required to optimize a db
Successfully granted the permission.
(⎈ |ops:stardog)Simons-MBP:bin simon$ ./stardog-admin --server https://k8s-ops.stardoglabs.com:5820 db optimize simon_db -u simon_admin -p newpass
simon_db was successfully optimized.
but in pystardog, the put requests fails when doing: db.optimize()
reproducing using curl:
curl -X PUT https://k8s-ops.stardoglabs.com:5820/admin/databases/simon_db/optimize -u simon_admin:newpass
{"message":"Permission [[read], [metadata], [simon_db]] denied for simon_admin","code":"SEAOE2"}
this can be solved passing an empty body -d {}. apparently an empty body doesn't attempt to read the default optimization options,
The text was updated successfully, but these errors were encountered:
The only permission required to optimize a database should be
execute
onadmin:dbname
:but in pystardog, the put requests fails when doing:
db.optimize()
reproducing using curl:
this can be solved passing an empty body
-d {}
. apparently an empty body doesn't attempt to read the default optimization options,The text was updated successfully, but these errors were encountered: