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

Add Secret Engine for LDAP #119

Merged
merged 10 commits into from
Jun 6, 2023
Merged

Add Secret Engine for LDAP #119

merged 10 commits into from
Jun 6, 2023

Conversation

ltcarbonell
Copy link
Contributor

Adds the LDAP secret engine benchmark tests

@ltcarbonell ltcarbonell requested a review from a team as a code owner May 18, 2023 13:51
@ltcarbonell ltcarbonell requested review from jasonodonnell and elliesterner and removed request for a team May 18, 2023 13:51
},
},
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing error message for environment variable and config not set, error out.

@jasonodonnell
Copy link
Collaborator

@ltcarbonell This implementation looks to only be the dynamic credentials api for the secret engine (https://developer.hashicorp.com/vault/api-docs/secret/ldap#dynamic-role-passwords) but this secret engine also supports static roles (https://developer.hashicorp.com/vault/api-docs/secret/ldap#static-roles). I think we need to change the name of some structs and docs to call this out.

func (r *LDAPStaticSecretTest) Setup(client *api.Client, randomMountName bool, mountName string) (BenchmarkBuilder, error) {
var err error
secretPath := mountName
r.logger = targetLogger.Named(LDAPDynamicSecretTestType)
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be static?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah let me add this

Co-authored-by: Ellie <ellie.sterner@hashicorp.com>
@ltcarbonell ltcarbonell merged commit 0ef4ca1 into main Jun 6, 2023
26 checks passed
@ltcarbonell ltcarbonell deleted the ldap-secret-engine-v2 branch June 6, 2023 18:21
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