metal-stack / mini-lab

a small, virtual setup to locally run the metal-stack
MIT License
55 stars 13 forks source link

Auditing with Meilisearch #132

Closed vknabel closed 1 year ago

vknabel commented 1 year ago

Implements auditing with Meilisearch https://github.com/metal-stack-cloud/docs/issues/33. More details can be found in MEP11. Does not implement the sidecar for the s3 sync.

Consists of multiple PRs:

  1. Clone all of these and check out feature/auditing to get started testing.
  2. in mini-lab/docker-compose.yaml add volumes to control-plane and partition.
      # adjust the paths to your actual repo locations
      - ${HOME}/dev/ms/helm-charts:/helm-charts:ro
      - ${HOME}/dev/ms/metal-roles:/root/.ansible/roles/metal-roles:ro
  1. in mini-lab/inventories/group_vars/control-plane/metal.yml uncomment metal_helm_chart_local_path: /helm-charts/charts/metal-control-plane
  2. in mini-lab, run make up and wait
  3. in metal-api, run make mini-lab-push and wait
  4. Run kubectl get pods -n metal-control-plane --watch and wait for all pods to be running or completed
  5. in mini-lab run make firewall
  6. in mini-lab run make machine
  7. open http://mtl-auditing.172.17.0.1.nip.io:8080/ and enter the secret from mini-lab (default metal_auditing_secret: "secret")
  8. You should see some logs from GRPC and Rest calls

If a request fails, copy the rqid from your logs and paste them in qoutes into meilisearch. You should now see exactly two results!

vknabel commented 1 year ago

Currently the CI-jobs fail as https://github.com/metal-stack/metal-roles/pull/113 and https://github.com/metal-stack/helm-charts/pull/53 need to be merged before!