conduktor / kafka-security-manager

Manage your Kafka ACL at scale
https://hub.docker.com/r/simplesteph/kafka-security-manager
MIT License
361 stars 159 forks source link

Can't connect KSM to Gitlab #124

Closed Flooze-IT closed 2 years ago

Flooze-IT commented 2 years ago

``Hi everyone,

I want to connect KSM to my personal Gitlab but when i run ksm Docker image (with Kubernetes). Nothing happened and the pod is complete. Some logs : image Kubernetes config:

apiVersion: v1
kind: ConfigMap
metadata:
  name: kafka-security-manager-cm
  labels:
    app: kafka-security-manager
data:
  KSM_EXTRACT_FORMAT: yaml
  KSM_EXTRACT_ENABLE: "true"
  AUTHORIZER_ZOOKEEPER_CONNECT: kafka-cluster-cp-zookeeper.tenant1.svc.cluster.local:2181
  SOURCE_CLASS: io.conduktor.ksm.source.GitLabSourceAcl
  SOURCE_GITLAB_REPOID: "2261"
  SOURCE_GITLAB_FILEPATH: xxx.yml
  SOURCE_GITLAB_BRANCH: main
  SOURCE_GITLAB_HOSTNAME: https://xxx.com/
  SOURCE_GITLAB_ACCESSTOKEN: xxx
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kafka-security-manager
  labels:
    app: kafka-security-manager
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kafka-security-manager
  template:
    metadata:
      labels:
        app: kafka-security-manager
    spec:
      containers:
        - name: kafka-security-manager
          image: conduktor/kafka-security-manager:latest
          imagePullPolicy: Always
          envFrom:
            - configMapRef:
                name: kafka-security-manager-cm

Thanks :)

simplesteph commented 2 years ago

You ran the extract mode. Disable it

--- original message --- On May 16, 2022, 4:38 PM GMT+1 @.*** wrote:

``Hi everyone,

I want to connect KSM to my personal Gitlab but when i run ksm Docker image (with Kubernetes).

Nothing happened and the pod is complete.

Some logs :

Kubernetes config:

apiVersion: v1 kind: ConfigMap metadata: name: kafka-security-manager-cm labels: app: kafka-security-manager data: KSM_EXTRACT_FORMAT: yaml KSM_EXTRACT_ENABLE: "true" AUTHORIZER_ZOOKEEPER_CONNECT: kafka-cluster-cp-zookeeper.tenant1.svc.cluster.local:2181 SOURCE_CLASS: io.conduktor.ksm.source.GitLabSourceAcl SOURCE_GITLAB_REPOID: "2261" SOURCE_GITLAB_FILEPATH: xxx.yml SOURCE_GITLAB_BRANCH: main SOURCE_GITLAB_HOSTNAME: https://xxx.com/ SOURCE_GITLAB_ACCESSTOKEN: xxx

apiVersion: apps/v1 kind: Deployment metadata: name: kafka-security-manager labels: app: kafka-security-manager spec: replicas: 1 selector: matchLabels: app: kafka-security-manager template: metadata: labels: app: kafka-security-manager spec: containers:

Thanks :)

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: @.***> --- end of original message ---

Flooze-IT commented 2 years ago

Ok but nothing happened : image Acls are not retrieved from GItlab

Flooze-IT commented 2 years ago

Solved ! i needed to set KSM_READONLY to false