kubewarden / policy-server

Webhook server that evaluates WebAssembly policies to validate Kubernetes requests
https://kubewarden.io
Apache License 2.0
138 stars 18 forks source link

Policy Server crashes when receiving a request on arm64 #128

Closed ereslibre closed 2 years ago

ereslibre commented 2 years ago

https://github.com/kubewarden/docs/issues/75 describes how to make the Policy Server crash under arm64, but just trying to follow the quick start makes it crash on every request.

chrisns commented 2 years ago

temp workaround:

apiVersion: policies.kubewarden.io/v1alpha2
kind: PolicyServer
metadata:
  name: default
spec:
  image: ghcr.io/kubewarden/policy-server:latest@sha256:682b9f9c6f86b62b0673b695897ca834d415d9ad24736edcee8c4bfa7adf2dca

to force the use of the amd64 image

ereslibre commented 2 years ago

This is caused by how we are building the container images. I have to check more in detail in order to report the issue in case there is some binary compatibility issue. I will follow up about that here.

In terms of moving forward, I have taken the opportunity to move away from openssl to rustls. The following changes support this move in different parts of the project and dependencies:

ereslibre commented 2 years ago

I just verified that the new locally build with rustls works as expected and does not crash.

ereslibre commented 2 years ago

This is implemented.