NETOBSERV-1101: fix agent-to-flp mTLS downstream#2553
NETOBSERV-1101: fix agent-to-flp mTLS downstream#2553jotak wants to merge 1 commit intonetobserv:mainfrom
Conversation
- In provided mode, now if agent certificates/CA are provided from a
different namespace, they are copied by the operator
- When not in Auto mode, do not generate openshift annotation-based cert
for FLP
- Fix path missing /
To test Provided mode:
- Install cert-manager
Install:
```yaml
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: netobserv-ca
namespace: netobserv
spec:
isCA: true
commonName: netobserv-ca
secretName: netobserv-ca-secret
privateKey:
algorithm: ECDSA
size: 256
issuerRef:
name: netobserv-self-signed
kind: Issuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: netobserv-self-signed
namespace: netobserv
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: netobserv-issuer
namespace: netobserv
spec:
ca:
secretName: netobserv-ca-secret
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: flowlogs-pipeline-cert
spec:
secretName: flowlogs-pipeline-cert
dnsNames:
- flowlogs-pipeline.netobserv.svc
- flowlogs-pipeline.netobserv.svc.cluster.local
issuerRef:
name: netobserv-issuer
kind: Issuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ebpf-agent-cert
namespace: netobserv
spec:
secretName: ebpf-agent-cert
commonName: netobserv-ebpf-agent
issuerRef:
name: netobserv-issuer
kind: Issuer
group: cert-manager.io
```
Configure FlowCollector:
```yaml
spec:
processor:
service:
providedCertificates:
caFile:
file: ca.crt
name: netobserv-ca-secret
namespace: netobserv
type: secret
clientCert:
certFile: tls.crt
certKey: tls.key
name: ebpf-agent-cert
namespace: netobserv
type: secret
serverCert:
certFile: tls.crt
certKey: tls.key
name: flowlogs-pipeline-cert
namespace: netobserv
type: secret
tlsType: Provided
```
|
@jotak: This pull request references NETOBSERV-1101 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@jotak: This pull request references NETOBSERV-1101 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@jotak: This pull request references NETOBSERV-1101 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
New images: quay.io/netobserv/network-observability-operator:c3e18b6
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-c3e18b6
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-c3e18b6They will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:c3e18b6 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-c3e18b6Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-c3e18b6
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
Description
To test Provided mode:
Install:
Configure FlowCollector:
Dependencies
n/a
Checklist