Closed vince83110 closed 2 years ago
Hi,
I don't think you shared the Dockerfile
corresponding to the output, as with your Dockerfile
, I get an error on ssh
not existing.
Regardless, this works:
FROM varnish:7.0-alpine
RUN apk update && apk add --no-cache \
python3 \
py3-docutils \
py3-sphinx \
libtool \
make \
automake \
git \
autoconf \
libmhash-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
# install libvmod-digest
ENV LIBVMOD_DIGEST_BRANCH=master
RUN \
set -x && \
git clone -b ${LIBVMOD_DIGEST_BRANCH} https://github.com/varnish/libvmod-digest.git && \
cd libvmod-digest && \
./autogen.sh && \
./configure && \
make install && \
cd .. && \
rm -rf libvmod-digest && \
ldconfig
Note that varnish-dev
is already installed in the image, so there's no need to install it. And I'm not sure ldconfig
is needed here, but eh, probably doesn't hurt.
The set -x
will show each command as they are run, so that should help pinpoint the issue.
could you confirm it works for you please?
Removing the ldconfig did the trick, even with set -x it didn't show anything more.
Thank you really.. my bad, not an issue on the package can be closed & removed.
good to read! You can keep an eye on https://github.com/xcir/vmod-packager it should pick up the ability to package apk
soon™
Thanks, oh woaw... it would be amazing to manage Vmod easily.
And maybe Varnish will share some of their Varnish Plus packages....
Just to ask, we are thinking to use RS256 alg for our JWT tokens, can I test the signature using your package ? or do you have any feedback ? Thanks again
currently, this vmod doesn't support it (and probably won't as it is in maitenance mode), however, Varnish Enterprise has https://docs.varnish-software.com/varnish-cache-plus/vmods/jwt/ which seems to be exactly what you want
Yes, just for the joke I worked with it and created all my stack, then I realized it was in the Varnish Plus offer, which is priceless. We managed to test it with HMAC, but we prefer RS256 over H256.
This example relies on your vmod: https://feryn.eu/blog/validating-json-web-tokens-in-varnish/, and it works, now I am just trying to have kind of the same result with RS256.
I will share if we find. Thanks for your time!
Sorry for this issue, but I have to use an alpine version of Varnish, because I can't find have varnish-dev installed on M1, I have this error:
Package 'varnish-dev' has no installation candidate
I tried many things.... but no success. So I am trying to use an alpine version of varnish Docker image (7.0-alpine).
For now I have:
It seems to work, but it ends with this message:
I am not an expert in make files... is there a way to make it 'silent' ? to avoid any output ?