Skip to content

fix: remove unused placeholder secrets and standardize meilisearch auth#61

Merged
scotwells merged 1 commit intomainfrom
fix/remove-placeholder-secrets
Mar 5, 2026
Merged

fix: remove unused placeholder secrets and standardize meilisearch auth#61
scotwells merged 1 commit intomainfrom
fix/remove-placeholder-secrets

Conversation

@scotwells
Copy link
Copy Markdown
Contributor

@scotwells scotwells commented Mar 5, 2026

Summary

  • Remove unused envFrom: secretRef placeholders from all deployments
  • Standardize MEILISEARCH_API_KEY to use meilisearch-master-key secret

Problem

Deployments referenced secrets that were never created, causing pods to fail with CreateContainerConfigError:

Deployment Missing Secret
search-apiserver search-apiserver
search-controller-manager search-controller-manager
resource-indexer search-indexer

These envFrom: secretRef placeholders were intended as extension points but required operators to create empty secrets just to start the pods.

Solution

  1. Remove all envFrom: secretRef placeholders - operators can still inject env vars via kustomize patches
  2. Change MEILISEARCH_API_KEY to reference meilisearch-master-key secret (created by meilisearch deployment) instead of component-specific secrets

Test plan

  • Verify kustomize build succeeds for all overlays
  • Deploy to staging and verify pods start without CreateContainerConfigError
  • Verify meilisearch authentication works with the new secret reference

Remove envFrom secretRef placeholders that required non-existent secrets
to be created by operators. These were causing pod startup failures
(CreateContainerConfigError) in production deployments.

Changes:
- Remove search-apiserver envFrom placeholder from apiserver deployment
- Remove search-controller-manager envFrom placeholder from controller
- Remove search-indexer envFrom placeholder from resource-indexer
- Standardize MEILISEARCH_API_KEY to use meilisearch-master-key secret
  (created by meilisearch deployment) instead of component-specific
  secrets

Operators can still inject additional environment variables by patching
the deployments directly via kustomize overlays.
@scotwells scotwells force-pushed the fix/remove-placeholder-secrets branch from 2456d8d to 7c47949 Compare March 5, 2026 21:25
@scotwells
Copy link
Copy Markdown
Contributor Author

Related PRs

The infra repo has a corresponding PR that removes the now-redundant patches:

Merge order:

  1. Merge this PR
  2. Cut new search release
  3. Merge infra PR

@github-project-automation github-project-automation bot moved this from Backlog to Ready in Searching Resources in Milo Mar 5, 2026
@scotwells scotwells merged commit dd4a121 into main Mar 5, 2026
6 of 7 checks passed
@scotwells scotwells deleted the fix/remove-placeholder-secrets branch March 5, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants