Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

fetch dynamic configuration error rpc error: code = PermissionDenied desc = #158

Closed
hzms opened this issue May 26, 2022 · 6 comments
Closed
Milestone

Comments

@hzms
Copy link

hzms commented May 26, 2022

As I use ssl config for grpc, it will pop error: fetch dynamic configuration error rpc error: code = PermissionDenied desc =, my code:

	creds := credentials.NewTLS(&tls.Config{
		ServerName:         "localhost",
		RootCAs:            cp,
		InsecureSkipVerify: true,
	})
	if rp, err := reporter.NewGRPCReporter(
		"localhost:11801",
		reporter.WithCheckInterval(time.Duration(option.ReporterCheckInterval)*time.Second),
		reporter.WithTransportCredentials(creds),
		reporter.WithAuthentication("DuFhKnzQASpbGRcAWUkYMhBWgvPaMBzm"),
	); err != nil {
		return err
	} else {
		if t, err := go2sky.NewTracer(option.AppName, go2sky.WithReporter(rp)); err != nil {
			return err
		} else {
			Tracer = t
		}
	}

I'm sure my Auth token is correct
Does the feature: fetch dynamic configuration work with ssl and authentication in current version? or what do I have to do ?

@wu-sheng
Copy link
Member

The maintainer is on vacation. This will be held longer. It is better you could debug on your own.

@arugal
Copy link
Member

arugal commented May 26, 2022

@hzms Please provide your version of skywalking-oap :)

@arugal arugal added this to the 1.5.0 milestone May 26, 2022
@hzms
Copy link
Author

hzms commented May 26, 2022

@arugal skywalking: image: apache/skywalking-oap-server:8.9.1 github.com/SkyAPM/go2sky v1.4.0

@arugal
Copy link
Member

arugal commented May 26, 2022

@arugal skywalking: image: apache/skywalking-oap-server:8.9.1 github.com/SkyAPM/go2sky v1.4.0

Dynamic Configuration is disabled by default, you can enable it on the skywalking-oap, and go2sky can also disable this feature by setting SW_AGENT_COLLECTOR_GET_AGENT_DYNAMIC_CONFIG_INTERVAL=0.

@arugal
Copy link
Member

arugal commented May 26, 2022

@wu-sheng This feature is disabled by default in OAP, should go2sky also be disabled by default?

@wu-sheng
Copy link
Member

I think this is a misread about the document. configuration-discovery module is open default for agents. configuration module is disabled as we don't have a configuration server to connect if user doesn't assign one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants