Allow adding trust anchors
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- kubernetes, rust
- Domain
- infrastructure, security
Research direction
Start by locating the OpenSearchCluster CRD and the nodes.config and podOverrides entry points. Review how existing configuration values are passed into OpenSearch pods, then compare that path with the documented init-container workaround. Done means users can provide literal, ConfigMap-backed, or Secret-backed trust anchors through extraTrustAnchors.
Written by the indexing model from the issue text.
Description
Users should be able to add trust anchors. This is required, if e.g. OpenSearch should connect to a self-hosted S3 instance which is signed by a corporate certificate authority, see e.g. #56.
The CRD could be extended as follows:
---
apiVersion: opensearch.stackable.tech/v1alpha1
kind: OpenSearchCluster
spec:
nodes:
config:
extraTrustAnchors:
- value: <string>
- valueFrom:
configMapKeyRef:
name: <string>
key: <string>
- valueFrom:
secretKeyRef:
name: <string>
key: <string>
Workaround
It is already possible to add trust anchors via podOverrides:
---
apiVersion: opensearch.stackable.tech/v1alpha1
kind: OpenSearchCluster
spec:
nodes:
podOverrides:
spec:
initContainers:
- name: init-system-keystore
image: oci.stackable.tech/sdp/opensearch:3.1.0-stackable0.0.0-dev
command:
- update-ca-trust
args:
- extract
- --output
- /stackable/ca-trust
volumeMounts:
- name: system-trust-store
mountPath: /stackable/ca-trust
readOnly: false
- name: custom-trust-anchors
mountPath: /etc/pki/ca-trust/source/anchors/custom-tls.crt
subPath: tls.crt
readOnly: true
containers:
- name: opensearch
volumeMounts:
- name: system-trust-store
mountPath: /etc/pki/java/cacerts
subPath: java/cacerts
readOnly: true
volumes:
- name: custom-trust-anchors
secret:
secretName: secret-with-trust-anchors
defaultMode: 0o660
- name: system-trust-store
emptyDir:
sizeLimit: 10Mi
- Dominant language
- Rust
- Stars
- 0
- Forks
- 2
- Avg merge
- 11h 1m
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stackabletech/opensearch-operator
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
customer-request type/feature-new
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Dependency Dashboard Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
customer-request size/M type/feature-new
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in stackabletech/opensearch-operator
Similar issues
-
bug CLI custom-model
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
Difficulty 2/5 1-3 hours Newbie friendliness 75/100