Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New registered user can not use service #48

Closed
lapnd opened this issue Jun 24, 2019 · 2 comments
Closed

New registered user can not use service #48

lapnd opened this issue Jun 24, 2019 · 2 comments

Comments

@lapnd
Copy link

lapnd commented Jun 24, 2019

Hi,
I did follow the guide but when trying to connect to the host, I got this message

{"details":"Your roles are: []","message":"You don't have permission to request this certificate","result":"fail"}

I think there are missed step to grant/add roles for the new user.
Can you please tell me how to add a role to a new user?
Thank!

@mdjunior
Copy link
Contributor

mdjunior commented Jun 24, 2019

Hi,

You need add roles (https://github.com/globocom/gsh/wiki/cli-commands#add-a-new-role). After creation of roles, you need assign them to an user using (https://github.com/globocom/gsh/wiki/cli-commands#assign-a-role-to-an-user).

Example (10.10.0.0/24 -> 10.10.10.0/24):

gsh role-add example -s 10.10.0.0/24 -d 10.10.10.0/24 -u '*' -a permit-pty
gsh role-assign example [email protected]

To assign roles, the user must be set as and admin. To make this, configure your username at GSH_PERM_ADMIN (https://github.com/globocom/gsh/wiki/api-env-vars).

@lapnd
Copy link
Author

lapnd commented Jun 24, 2019

Thank you very much!

@lapnd lapnd closed this as completed Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants