Drone

Drone cli 403 - but I AM admin

I keep getting a client error 403: {"message":"Forbidden"} from a drone user ls command.

This is what I get from a drone info

User: CDeMatos

This is the environment setting that is running my drone server…

DRONE_USER_CREATE=username:CDeMatos,admin=true

So, what’s the issue?

According to github your username is cmdematos (all lowercase). Depending on the database type the username may be case-sensitive. You can verify whether or not you are an admin by logging into the website and visiting /api/user and looking at the value of the admin property. It would also be helpful to see your full server logs with debug mode enabled.