Comments (3)
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.
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.
Thanks @jsupun the binary works well
from secrets-manager.
Related Issues (20)
- `ksm profile init --token ...` produces a world readable `keeper.ini` HOT 1
- keeper ansible keeper_create does not use custom record types HOT 1
- KSM and ansible plugin can create records only on the root of shared folder HOT 1
- (Python) TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' HOT 2
- Unable to use python ksm cli tool if keeper record id starts with '-' HOT 5
- ksm sdk python returns errors HOT 2
- Unable to deploy plugin in vault HOT 2
- Feature request : integrate ksm as a provider for external secrets HOT 4
- How to add folders? HOT 2
- .NET SDK is not strong named. HOT 5
- Python SDK - get a list of records from a shared folder based on folder name HOT 3
- Problems with Keeper SDK initialization HOT 2
- Python SDK - General Record Type Secrets are not retrieved HOT 2
- ansible integration error HOT 2
- Bug caused by space in username HOT 2
- Ansible - lookup plugin hitting rate limits very quickly HOT 2
- References to common libraries are using "Use specific version" HOT 2
- Credentials Stored in Plaintext in Memory HOT 6
- Publish Windows `exe` to the `winget` package manager
- Cyclical dependency in Python SDK HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secrets-manager.