Giter VIP home page Giter VIP logo

Comments (6)

gquintard avatar gquintard commented on August 20, 2024

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?

from libvmod-digest.

vince83110 avatar vince83110 commented on August 20, 2024

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.

from libvmod-digest.

gquintard avatar gquintard commented on August 20, 2024

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β„’

from libvmod-digest.

vince83110 avatar vince83110 commented on August 20, 2024

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

from libvmod-digest.

gquintard avatar gquintard commented on August 20, 2024

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

from libvmod-digest.

vince83110 avatar vince83110 commented on August 20, 2024

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!

from libvmod-digest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.