feat: review changes for reptile

This commit is contained in:
=
2025-08-01 21:10:26 +05:30
parent eb27983990
commit 4b9e57ae61
3 changed files with 9 additions and 2 deletions
@@ -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>
+1 -1
View File
@@ -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,
} }
+1 -1
View File
@@ -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