Hello, I have a problem with the kubernetes operator that is supposed to retrieve secrets in infisical to inject them into kube.
In the InfisicalSecret CRD there are 3 fields to specify the secrets: projectSlug, envSlug and secretsPath, except that the operator displays the error "Error: Missing workspace id or environment".
Check operator pod logs
unable to reconcile Infisical Secret because [err= failed to get secrets because [err=APIError: CallListSecretsV3Raw unsuccessful response [GET http://infisical-infisical-standalone-infisical.poc-infisical.svc.cluster.local:8080/api/v3/secrets/raw?environment=dev&expandSecretReferences=true&include_imports=true&recursive=true&secretPath=%2F&workspaceId=&workspaceSlug=poc-qdh-k] [status-code=400] Error: Missing workspace id or environment]]. Will requeue after [requeueTime=10s]
Expected behavior
In the logs, there's a workspaceId field that's always empty (in the query). I've tried querying by hand and in fact it's this field that's needed, not workspaceSlug (projectSlug in CRD). The query passes if the workspaceId is specified (even without the workspaceSlug).
If I've made a mistake somewhere, please tell me, otherwise I think you should add the projectId field to the CRD (or even replace projectSlug with projectId).
Platform you are having the issue on:
Infisical self-hosted, deploy with chart infisical-standalone v1.0.8
Describe the bug
Hello, I have a problem with the kubernetes operator that is supposed to retrieve secrets in infisical to inject them into kube. In the InfisicalSecret CRD there are 3 fields to specify the secrets: projectSlug, envSlug and secretsPath, except that the operator displays the error "Error: Missing workspace id or environment".
To Reproduce
Steps to reproduce the behavior:
unable to reconcile Infisical Secret because [err= failed to get secrets because [err=APIError: CallListSecretsV3Raw unsuccessful response [GET http://infisical-infisical-standalone-infisical.poc-infisical.svc.cluster.local:8080/api/v3/secrets/raw?environment=dev&expandSecretReferences=true&include_imports=true&recursive=true&secretPath=%2F&workspaceId=&workspaceSlug=poc-qdh-k] [status-code=400] Error: Missing workspace id or environment]]. Will requeue after [requeueTime=10s]
Expected behavior
In the logs, there's a workspaceId field that's always empty (in the query). I've tried querying by hand and in fact it's this field that's needed, not workspaceSlug (projectSlug in CRD). The query passes if the workspaceId is specified (even without the workspaceSlug). If I've made a mistake somewhere, please tell me, otherwise I think you should add the projectId field to the CRD (or even replace projectSlug with projectId).
Platform you are having the issue on:
Infisical self-hosted, deploy with chart infisical-standalone v1.0.8