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

Set plug-in specific labels for decision logging #56

Open
anderseknert opened this issue Jul 1, 2021 · 0 comments
Open

Set plug-in specific labels for decision logging #56

anderseknert opened this issue Jul 1, 2021 · 0 comments

Comments

@anderseknert
Copy link
Member

The -policy-file option comes with its own decision logger which prints decisions to console. While the new -config-file option and "real" decision logging is preferable, one thing missing there is the labels set by the "fake" decision logger:

	labels := map[string]string{
		"app":            "opa-docker-authz",
		"id":             p.instanceID,
		"opa_version":    version_pkg.OPAVersion,
		"plugin_version": version_pkg.Version,
	}

It would be nice if we could have these labels provided also for the -config-file decision logger. The SDK doesn't currently provide any helpers for this, but that could change. If not we'll need to convert the config []bytes -> config.Config -> update labels -> config []byte.

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