Add private key file spec to ansible#3247
Conversation
34601fc to
f984032
Compare
Greptile SummaryAdded Critical Issue:
Confidence Score: 2/5
|
| Filename | Overview |
|---|---|
| lib/console/deployments/stacks/commands.ex | Not modified - missing implementation to use privateKeyFile in ansible_args function |
| go/controller/api/v1alpha1/infrastructurestack_types.go | Added PrivateKeyFile field to AnsibleConfiguration struct with proper kubebuilder validation |
| go/controller/internal/controller/infrastructurestack_controller.go | Added PrivateKeyFile to stackConfigurationAttributes mapping |
| lib/console/schema/stack.ex | Added private_key_file field to ansible embedded schema and changeset |
| lib/console/graphql/deployments/stack.ex | Added private_key_file field to GraphQL schema and input types |
| schema/schema.graphql | Added privateKeyFile to AnsibleConfiguration type and input with proper documentation |
Last reviewed commit: f984032
Additional Comments (1)
Also, the PR description mentions "ensure permissions are properly set before execution" but there's no code to set file permissions (e.g., chmod 600) on the private key file. |
|
@greptileai the functionality will be implemented in our deployment-operator, not in this codebase |
|
Got it - so the actual implementation of setting permissions and adding the ansible playbook flag will happen in the deployment-operator, not in console. This PR is just adding the spec/schema to define the In that case, the PR looks good as-is. You're correctly:
The deployment-operator will then read this field and handle the actual file permissions and ansible flag logic. |
The intention here is to allow the controller to both: * add the appropriate ansible playbook flag * ensure permissions are properly set before execution (since using standard file bindings w/ stacks don't support that)
f984032 to
bc8bd3f
Compare
The intention here is to allow the controller to both:
Test Plan
n/a
Checklist
Plural Flow: console