You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(eso): adopt existing managed pod identities - #47
This extends SecretStack to adopt an existing IAM role and EKS service account association while continuing to own the composed PodIdentity. A Helm release or provider package can already be adopted in place. The missing inputs were the external AWS identities and the role policies that should be reconciled afterward.
Set spec.aws.podIdentity.name to the existing PodIdentity composite name and pass the IAM role name and EKS association ID in role.externalName and association.externalName. The renderer forwards them to PodIdentity, including the role name override, and keeps deletion dependencies pointed at the selected resource. The identity can start under Observe while the stack manages its other components. Explicit inline and managed policy lists replace their respective defaults, including empty lists. Omitted inputs retain the existing render.
The existing chart can be pinned with spec.chartVersion. An environment can preserve scoped secret-access policies during transfer and test the controller upgrade separately.
The import example and composition test cover the external IDs, management policies and an empty policy override. Check the existing writer and effective IAM policy before enabling Update.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: b220bd0c-334b-4209-8cbf-806dc86cc559
Commits
Reviewing files that changed from the base of the PR and between 7f02b2e and 686b24e.
Files selected for processing: 9
.github/workflows/on-pr.yaml
.github/workflows/on-push-main.yaml
Makefile
README.md
apis/secretstacks/definition.yaml
examples/secretstacks/import-identity.yaml
functions/render/000-state-init.yaml.gotmpl
functions/render/210-aws-pod-identity.yaml.gotmpl
tests/test-render/main.k
No actionable comments were generated in the recent review.
Walkthrough
SecretStack adds an optional ESO chart version and a setting to disable management of AWS pod identity resources. The pull request also adds an example, documentation, rendering tests, and validation coverage.
Changes: SecretStack configuration and rendering
Layer / File(s)
Summary
Configuration and resolved state apis/secretstacks/definition.yaml, functions/render/000-state-init.yaml.gotmpl, examples/secretstacks/external-identity.yaml, README.md
The API adds spec.chartVersion and AWS managePodIdentity, which defaults to true. Render state reads both values. The example sets chart version 2.2.0 and disables pod identity management and the secret store. The README describes these settings and adoption considerations.
Conditional rendering and validation functions/render/200-helm-release-external-secrets.yaml.gotmpl, functions/render/210-aws-pod-identity.yaml.gotmpl, tests/test-render/main.k, Makefile, .github/workflows/on-pr.yaml, .github/workflows/on-push-main.yaml
The Helm release uses the configured chart version when set and otherwise retains 2.15.0. AWS PodIdentity and its Usage resource render only when AWS is enabled and managePodIdentity is true. The render test checks the example’s chart version and readiness, and the example is added to Makefile and workflow validation lists.
This adds opt-in controls for externally managed pod identity and for pinning the ESO chart version. Existing claims keep their current behavior by default, and the ownership-transfer caveat is documented. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "feat(eso): adopt existing managed pod identities" matches the main change. The PR adds a spec.aws.managePodIdentity option that lets a new SecretStack claim skip creating the pod identity, …
Full details: Title check
Explanation
The title "feat(eso): adopt existing managed pod identities" matches the main change. The PR adds a spec.aws.managePodIdentity option that lets a new SecretStack claim skip creating the pod identity, so an existing EKS association and IAM role can be kept and adopted. The title names the feature area (ESO) and the core behavior. It does not mention the chartVersion pin or the README, example, and test additions, which is expected for a title.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extends SecretStack to adopt an existing IAM role and EKS service account association while continuing to own the composed PodIdentity. A Helm release or provider package can already be adopted in place. The missing inputs were the external AWS identities and the role policies that should be reconciled afterward.
Set
spec.aws.podIdentity.nameto the existing PodIdentity composite name and pass the IAM role name and EKS association ID inrole.externalNameandassociation.externalName. The renderer forwards them to PodIdentity, including the role name override, and keeps deletion dependencies pointed at the selected resource. The identity can start under Observe while the stack manages its other components. Explicit inline and managed policy lists replace their respective defaults, including empty lists. Omitted inputs retain the existing render.The existing chart can be pinned with spec.chartVersion. An environment can preserve scoped secret-access policies during transfer and test the controller upgrade separately.
The import example and composition test cover the external IDs, management policies and an empty policy override. Check the existing writer and effective IAM policy before enabling Update.