mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 17:26:36 +00:00
feat: review changes for reptile
This commit is contained in:
@@ -71,6 +71,13 @@ spec:
|
|||||||
secretName: <secret-name> # ldap-auth-credentials
|
secretName: <secret-name> # ldap-auth-credentials
|
||||||
secretNamespace: <secret-namespace> # default
|
secretNamespace: <secret-namespace> # default
|
||||||
|
|
||||||
|
# secretsScope is identical to the secrets scope in the universalAuth field in this sample.
|
||||||
|
secretsScope:
|
||||||
|
projectSlug: your-project-slug
|
||||||
|
envSlug: prod
|
||||||
|
secretsPath: "/path"
|
||||||
|
recursive: true
|
||||||
|
|
||||||
# Azure Auth
|
# Azure Auth
|
||||||
azureAuth:
|
azureAuth:
|
||||||
identityId: <your-machine-identity-id>
|
identityId: <your-machine-identity-id>
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ func HandleLdapAuth(ctx context.Context, reconcilerClient client.Client, secretC
|
|||||||
}
|
}
|
||||||
|
|
||||||
ldapAuthSpec = v1alpha1.LdapAuthDetails{
|
ldapAuthSpec = v1alpha1.LdapAuthDetails{
|
||||||
CredentialsRef: infisicalDynamicSecret.Spec.Authentication.UniversalAuth.CredentialsRef,
|
CredentialsRef: infisicalDynamicSecret.Spec.Authentication.LdapAuth.CredentialsRef,
|
||||||
SecretsScope: v1alpha1.MachineIdentityScopeInWorkspace{},
|
SecretsScope: v1alpha1.MachineIdentityScopeInWorkspace{},
|
||||||
IdentityID: infisicalDynamicSecret.Spec.Authentication.LdapAuth.IdentityID,
|
IdentityID: infisicalDynamicSecret.Spec.Authentication.LdapAuth.IdentityID,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ func GetInfisicalLdapAuthFromKubeSecret(ctx context.Context, reconcilerClient cl
|
|||||||
}
|
}
|
||||||
|
|
||||||
usernameFromSecret := ldapAuthCredsFromKubeSecret.Data[INFISICAL_MACHINE_IDENTITY_LDAP_USERNAME]
|
usernameFromSecret := ldapAuthCredsFromKubeSecret.Data[INFISICAL_MACHINE_IDENTITY_LDAP_USERNAME]
|
||||||
passwordFromSecret := ldapAuthCredsFromKubeSecret.Data[INFISICAL_MACHINE_IDENTITY_LDAP_PASSSWORD]
|
passwordFromSecret := ldapAuthCredsFromKubeSecret.Data[INFISICAL_MACHINE_IDENTITY_LDAP_PASSWORD]
|
||||||
|
|
||||||
return model.LdapIdentityDetails{Username: string(usernameFromSecret), Password: string(passwordFromSecret)}, nil
|
return model.LdapIdentityDetails{Username: string(usernameFromSecret), Password: string(passwordFromSecret)}, nil
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user