-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Draft]: CSPL-2600: Integrate HashiCorp Vault Support in Splunk Operator #1388
base: CSPL-2601
Are you sure you want to change the base?
Conversation
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Signed-off-by: Vivek Reddy <[email protected]>
Hey, it looks like your PR incorrectly rebased to the latest commit, so there are 184 incoming commits from last 3 months. |
Yeah I think this might have been my fault. I pulled in the changes from main to develop manually instead of doing a PR. I'll do it correctly next time, but for now if you pull the latest from develop it should work. |
Signed-off-by: Vivek Reddy <[email protected]>
Description:
This PR introduces the integration of HashiCorp Vault into the Splunk Operator, providing enhanced security and flexibility in managing secrets. Users can now choose between Kubernetes Secrets or HashiCorp Vault for storing and injecting Splunk secrets. Key changes and features include:
Key Features:
Vault Integration in Custom Resource:
VaultIntegration
struct in the Splunk CRD, allowing users to enable Vault integration and specify the Vault role and secret path.enabled
,role
, andsecretPath
to configure Vault usage.Vault Injection Annotations for StatefulSets:
InjectVaultSecret
function to add Vault Agent injector annotations to StatefulSets managed by the Splunk Operator./mnt/splunk-secrets
, consistent with the current Kubernetes Secrets path.Vault Client Integration:
getVaultSecretVersion
) to retrieve the current version of secrets from Vault, ensuring updated secrets are injected.Support for Both Kubernetes Secrets and Vault:
Predefined Vault Keys:
hec_token
,idxc_secret
,pass4SymmKey
,password
, andshc_secret
.How to Test the Changes:
Install and Configure Vault on Kubernetes:
splunk-service-account
).Deploy Splunk Custom Resource:
Test Secret Rotation:
Switch Between Kubernetes Secrets and Vault:
Summary:
This PR significantly enhances the security of Splunk deployments by integrating HashiCorp Vault into the Splunk Operator, allowing users to seamlessly manage secrets using Vault or Kubernetes Secrets. This flexibility provides improved compliance, security, and operational ease.
Verification:
Documentation:
Testing:
Let me know if there are any questions or if further changes are needed!