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

Can't authenticate to local agent #209

Open
gaspo53 opened this issue Jul 31, 2020 · 0 comments
Open

Can't authenticate to local agent #209

gaspo53 opened this issue Jul 31, 2020 · 0 comments

Comments

@gaspo53
Copy link

gaspo53 commented Jul 31, 2020

Hi. I'm trying to get a value from KV, and search for a service. But I couldn't find any way to pass a token in order to authenticate the requests.
The response I'm having is:
OperationException{statusCode=403, statusMessage='Forbidden', statusContent='rpc error making call: rpc error making call: Permission denied'} at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:86) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:64) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:54) at com.ecwid.consul.v1.ConsulClient.getKVValue(ConsulClient.java:589) at com.siriusxm.esb.main.JmsApp.getConsulProviders(JmsApp.java:286) at com.siriusxm.esb.main.JmsApp.main(JmsApp.java:152)

And the client config:

`
ConsulClient client = new ConsulClient("localhost");
GetValue getValue = client.getKVValue(activeSitePath).getValue();

// Services
HealthServicesRequest request = HealthServicesRequest.newBuilder()
.setTags(tags.toArray(new String[tags.size()]))
.setPassing(true)
.setQueryParams(QueryParams.DEFAULT)
.build();
Response<List> healthyServices = client.getHealthServices(serviceName, request);
`

Thanks in advance

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

1 participant