unitycatalog / unitycatalog/unitycatalog
Can't create a volume as an admin [CLI]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 672
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 30
Description
Describe the bug
Hi, I'm trying to create a volume of csv files using the admin token, everything work, at least for the basic command in the documentation (I can see the user list, create new users, grant privilege as an admin).
But when I run the command bin/uc volume create ... on CLI with the admin token the terminal respond with:
If i disabled the Authentication bin/volume create works, but with Authentication enable it say "PERMISSION_DENIED" even though I'm an admin.
To Reproduce
Steps to reproduce the behavior:
- Enable UC Server so modify etc/conf/server.properties file
- Restart the UC server
- Create a local directory "csv_files" with some files
- Try to create and add a csv volume in the catalog
bin/uc volume create --full_name unity.default.csv_files --storage_location file:///home/laura/unitycatalog/etc/data/external/unity/default/volumes/csv_files --auth_token $(cat etc/conf/token.txt)
Expected behavior
Create a volume with full name: unity.default.csv_files
System [please complete the following information]:
- OS: Windows with WSL Ubuntu
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with UC Server enabled using the documented bin/uc volume create command, the admin token, and the server.properties configuration. Compare the authenticated command with the successful unauthenticated bin/volume create path and trace the permission-denied response. Done means an admin token can create the unity.default.csv_files volume while authentication remains enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authorization, backend, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100