Skip to content

Conversation

@vvalderrv
Copy link
Contributor

Kubernetes fsGroup override broke 1Password CLI credential resolution by forcing incorrect directory permissions. Added postStart lifecycle hook to restore required permissions after container startup

Validation:

  • Docker build passes without errors
  • Helm template renders correctly with lifecycle hook
  • Shell commands execute properly in hook

@vvalderrv vvalderrv requested a review from Copilot September 26, 2025 05:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes 1Password CLI credential resolution issues caused by Kubernetes fsGroup settings overriding directory permissions. The fix moves permission management from Docker build-time to runtime using a Kubernetes lifecycle hook.

  • Removed Docker build-time creation of 1Password CLI config directory
  • Added postStart lifecycle hook to restore required permissions after container startup
  • Reformatted initScript for better readability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
staging/values.yaml Added lifecycle hook for 1Password CLI permissions and reformatted initScript
build/Dockerfile Removed build-time 1Password config directory creation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Kubernetes fsGroup override broke 1Password CLI credential resolution by
forcing incorrect directory permissions.  Added postStart lifecycle hook to
restore required permissions after container startup

Validation:
- Docker build passes without errors
- Helm template renders correctly with lifecycle hook
- Shell commands execute properly in hook

Signed-off-by: Vanessa Valderrama <[email protected]>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vvalderrv vvalderrv merged commit 2b06ad4 into lfit:main Sep 26, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant