Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: review changes for reptile

=4b9e57ae61a3
diff --git a/k8-operator/config/samples/crd/infisicalsecret/infisicalSecretCrd.yaml b/k8-operator/config/samples/crd/infisicalsecret/infisicalSecretCrd.yaml
index 1a7a3482d9..f5209e71c9 100644
--- a/k8-operator/config/samples/crd/infisicalsecret/infisicalSecretCrd.yaml
+++ b/k8-operator/config/samples/crd/infisicalsecret/infisicalSecretCrd.yaml
@@ -71,6 +71,13 @@ spec:
secretName: <secret-name> # ldap-auth-credentials
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
azureAuth:
identityId: <your-machine-identity-id>
diff --git a/k8-operator/packages/util/auth.go b/k8-operator/packages/util/auth.go
index f3512027e6..ab5802d61c 100644
--- a/k8-operator/packages/util/auth.go
+++ b/k8-operator/packages/util/auth.go
@@ -223,7 +223,7 @@ func HandleLdapAuth(ctx context.Context, reconcilerClient client.Client, secretC
}
ldapAuthSpec = v1alpha1.LdapAuthDetails{
- CredentialsRef: infisicalDynamicSecret.Spec.Authentication.UniversalAuth.CredentialsRef,
+ CredentialsRef: infisicalDynamicSecret.Spec.Authentication.LdapAuth.CredentialsRef,
SecretsScope: v1alpha1.MachineIdentityScopeInWorkspace{},
IdentityID: infisicalDynamicSecret.Spec.Authentication.LdapAuth.IdentityID,
}
diff --git a/k8-operator/packages/util/kubernetes.go b/k8-operator/packages/util/kubernetes.go
index 5ad3d41374..67d049e292 100644
--- a/k8-operator/packages/util/kubernetes.go
+++ b/k8-operator/packages/util/kubernetes.go
@@ -81,7 +81,7 @@ func GetInfisicalLdapAuthFromKubeSecret(ctx context.Context, reconcilerClient cl
}
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