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

remove logging for missing SecureConfig #238

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented Mar 1, 2023

In #207 we introduced a warning if the SecureConfig is unset. For Nomad and other applications that have "internal" go-plugin consumers where the application runs itself as a plugin, this causes spurious warn-level logs. For Nomad in particular this means every task driver and logmon invocation emits the log, which is our primary operation.

Setting a SecureConfig isn't required, and if a given go-plugin consumer requires it to be, this seems more like a programming error than a runtime error. Remove the log line.

Ref hashicorp/nomad#16288

In #207 we introduced a warning if the `SecureConfig` is unset. For Nomad and
other applications that have "internal" go-plugin consumers where the
application runs itself as a plugin, this causes spurious warn-level logs. For
Nomad in particular this means every task driver and logmon invocation emits the
log, which is our primary operation.

Setting a `SecureConfig` isn't required, and if a given go-plugin consumer
requires it to be, this seems more like a programming error than a runtime
error. Remove the log line.
Copy link
Member

@jbardin jbardin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in Terraform's case we already have to validate the plugin signature, so there's no benefit to checking it again here which is why we have not used this functionality. If someone finds this line particularly useful for debugging, I'm also fine with changing the level to debug or trace rather than removing it.

@tgross tgross merged commit d26b694 into main Mar 2, 2023
@tomhjp tomhjp deleted the no-log-secure-config branch May 16, 2023 11:01
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

Successfully merging this pull request may close these issues.

None yet

3 participants