Git Product home page Git Product logo

Comments (3)

jsupun avatar jsupun commented on July 30, 2024 1

The KSM CLI is compiled with GLIBC, which has been replaced by MUSL in Alpine. This seems to be a common problem with running binaries within Alpine.

Until we release a binary version for Alpine linux, you can always try to install GLIBC into the docker image.

An attempt to use the a compatibility layer will still not work.

/ # ./ksm
sh: ./ksm: not found
/ # apk add gcompat
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/3) Installing musl-obstack (1.2.2-r0)
(2/3) Installing libucontext (1.1-r0)
(3/3) Installing gcompat (1.0.0-r4)
OK: 6 MiB in 17 packages
/ # ./ksm
[20] Error loading Python lib '/tmp/_MEInKJhHK/libpython3.6m.so.1.0': dlopen: Error relocating /tmp/_MEInKJhHK/libpython3.6m.so.1.0: __wcscat_chk: symbol not found

https://github.com/jeanblanchard/docker-alpine-glibc/blob/main/Dockerfile will get you closer, however there is a problem with locale. Even installing the glibc-i18n.apk from their release doesn't help. And this solution still needs gcompat installed, which will complain about "ib/ld-linux-x86-64.so.2 " being owned by "glibc-*" during the package install.

ksm will run, but it can't find any locale information, even if set the LANG and LC_* variables.

/ # ./ksm
ksm had a problem: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.

Additional information: on this system no suitable UTF-8 locales were discovered. This most likely requires resolving by reconfiguring the locale system.

Click discovered that you exported a UTF-8 locale but the locale system could not pick up from it because it does not exist. The exported locale is 'C.UTF-8' but it is not supported.

from secrets-manager.

jsupun avatar jsupun commented on July 30, 2024

I've added a binary for Alpine called keeper-secrets-manager-cli-alpine-linux-1.0.8.tar.gz, https://github.com/Keeper-Security/secrets-manager/releases/download/ksm-cli-1.0.8/keeper-secrets-manager-cli-alpine-linux-1.0.8.tar.gz. Give that a try.

ksm should use the musl library instead libc.

/home/me # ldd ksm
	/lib/ld-musl-x86_64.so.1 (0x7fbcfe1b3000)
	libz.so.1 => /lib/libz.so.1 (0x7fbcfe176000)
	libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fbcfe1b3000)

from secrets-manager.

jgiovaresco avatar jgiovaresco commented on July 30, 2024

Thanks @jsupun the binary works well 🙌

from secrets-manager.

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.