-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Ent only ADP Metrics #21681
Ent only ADP Metrics #21681
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just a few things to fix up and then we can merge.
vault/core.go
Outdated
@@ -3234,28 +3235,7 @@ func (c *Core) isMountable(ctx context.Context, entry *MountEntry, pluginType co | |||
// isMountEntryBuiltin determines whether a mount entry is associated with a | |||
// builtin of the specified plugin type. | |||
func (c *Core) isMountEntryBuiltin(ctx context.Context, entry *MountEntry, pluginType consts.PluginType) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're going to have separate implementations for OSS/ENT, you'd want to do this in core_util.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure how this happened - but removed this impl because this wasn't a change in ent either.
changelog/21681.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note:improvement | |||
sys/metrics: Adds a gauge metric that tracks whether enterprise builtin secret plugins are enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we lost the (enterprise)
decorator here.
helper/builtinplugins/registry.go
Outdated
@@ -283,6 +283,11 @@ func (r *registry) DeprecationStatus(name string, pluginType consts.PluginType) | |||
return consts.Unknown, false | |||
} | |||
|
|||
// IsBuiltinEntPlugin checks whether the plugin is an enterprise only builtin plugin | |||
func (r *registry) IsBuiltinEntPlugin(name string, pluginType consts.PluginType) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're going to have to handle both OSS and ENT here. This file is in both OSS and ENT.
@@ -26,6 +26,8 @@ import ( | |||
"github.com/mitchellh/go-testing-interface" | |||
) | |||
|
|||
var externalPlugins = []string{""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also agnostic of OSS/ENT, so we'll have to change move this elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
OSS PR for https://github.com/hashicorp/vault-enterprise/pull/4235