lixmal / keepass4web Goto Github PK
View Code? Open in Web Editor NEW[deprecated] KeePass databases served on the web
License: GNU General Public License v3.0
[deprecated] KeePass databases served on the web
License: GNU General Public License v3.0
Hello, I have follow your topic and create my server. with package installation
It's works until master password request
I don't found how create the database Filesystem at the first launch . I have check the config_local.yml locate in /usr/share/keepass4web/
db.kdbx is locate in /etc/keepass4web like config information in yml file and I have grant to www-data for read and writ on this folder
I have imagine like standard keepass woftware that db will be create automatically, but something wrong and I don't found where or how create the db file
I have try to create a db with windows program and upload on my serveur (without success)
Thanks for your help
When I use the PPA install method on Ubuntu 16.04 it doesn't appear as if the configuration settings are getting loaded. I get the attached error. The error log just shows a break at line 7. So I loaded up perl and ran everything manually. Not sure if that is an effective way to get a better error message or not.
The most recent version on Docker Hub was released one year ago; would the author update the build there?
Hi, I tried installing keepass4web from Ubuntu PPA as described in the Readme on Ubuntu 18.04. Everything works fine, except that it does not find the installation candidate for "libdancer2-session-cookie-perl":
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libdancer2-session-cookie-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libdancer2-session-cookie-perl' has no installation candidate
I did make sure to add the PPA beforehand with this command:
sudo add-apt-repository ppa:lixmal/keepass4web
sudo apt-get update
Why is it not found?
I want to use it on "alien" PC
I fear keyloggers and aids. I propose to show the number and wait for answer is the correct PIN-code. Mathematical formula to calculate the Pin-code from the displayed number and know it'll just be me.
For example number=11, the formula = number*5-3, and waiting for response 52.
After the incorrect PIN, the service should be unavailable for 10 min.
what I doing wrong?
root@ubuntu:/usr/share/keepass4web# plackup bin/app.psgi --port 8080 --host localhost
String found where operator expected at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 529, near "request_header 'If-None-Match'"
(Do you need to predeclare request_header?)
String found where operator expected at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 556, near "response_header 'Cache-Control'"
(Do you need to predeclare response_header?)
String found where operator expected at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 557, near "response_header 'ETag'"
(Do you need to predeclare response_header?)
Error while loading /usr/share/keepass4web/bin/app.psgi: syntax error at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 529, near "request_header 'If-None-Match'"
Global symbol "$matchheader" requires explicit package name at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 530.
Global symbol "$matchheader" requires explicit package name at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 530.
syntax error at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 556, near "response_header 'Cache-Control'"
Compilation failed in require at /usr/share/keepass4web/bin/../lib/KeePass4Web.pm line 18.
BEGIN failed--compilation aborted at /usr/share/keepass4web/bin/../lib/KeePass4Web.pm line 18.
Compilation failed in require at /usr/share/keepass4web/bin/app.psgi line 7.
BEGIN failed--compilation aborted at /usr/share/keepass4web/bin/app.psgi line 7.
I thought unloaded modules
Hi,
I am stuck at the first screen, looking for the default/admin password.
I use ldap module .
Could-you provide this default password or tell how to get success at first authentication?
thx
Looking at the installation guide, this project could greatly benefit from having a Docker implementation. Such a complicated guide is just screaming for a Dockerfile. For those unfamiliar with Docker: basically it's a way to install an application, and have it work, always. Super easy to update as well. Works on any Docker-capable computer, which is practically every Linux box, even virtualized ones.
How can i install...
File::KeePass::Web
Auth::LDAP
Seafile::Client::REST
I have the docker file up and running.
I copied my kdbx file to the /conf/keepass4web folder using Filesystem.
But when I enter the master password for the db I get "DB decryption failed"
Is there something I need to do, does it need to have certain permissions?
Any help would be appreciated
root@ubuntu:/opt/keepass4web# npm run build
> [email protected] build /opt/keepass4web
> NODE_ENV=production ./node_modules/.bin/browserify -t browserify-css -p [ minifyify --no-map ] -t [ babelify --presets [ es2015 react ] ] src/scripts/app.js -o public/scripts/bundle.js; sed -i 's/node_modules\/bootstrap\/dist\///g' public/scripts/bundle.js
Error: Cannot find module 'history' from '/opt/keepass4web/src/scripts'
at /opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (/opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /opt/keepass4web/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at Object.oncomplete (fs.js:107:15)
Can you help me?
Comments are displayed on one line,
Multi-line text is displayed as one line
Hi lixmal,
are you aware of a bug, that crashes the app after pressing F5 or reloading the page?
This happens in my docker conatianer as well as on a freshly installed VM, with the ubuntu package, apache, ... in default configuration. after logging in with my user credentials and then unlocking the DB it can happen that the server crashes by pressing F5. Sometimes this occures after one press sometimes after spamming the key. the following error is shown.
By the way, auth_backend is LDAP and db_backend is Filesystem.
Undefined subroutine &Scope::Upper::unwind called at /usr/share/keepass4web/bin/../lib/Return/MultiLevel.pm line 34.
/usr/share/keepass4web/bin/../lib/Return/MultiLevel.pm around line 34
29 and confess
30 $canary[0] eq '-'
31 ? ""
32 : "Captured stack:\n$canary[0]\n",
33 "Attempt to re-enter dead call frame"
34 ;
35 Scope::Upper::unwind(@_, $ctx);
36 })
37 }
38 EOT
39
Stack
main in -e l. 0
main in -e l. 0
Plack::Handler::Apache2 in /usr/share/perl5/Plack/Handler/Apache2.pm l. 126
Plack::Handler::Apache2 in /usr/share/perl5/Plack/Handler/Apache2.pm l. 87
Dancer2::Core::Runner in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Runner.pm l. 214
Dancer2::Core::Dispatcher in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Dispatcher.pm l. 36
Plack::Component in /usr/share/keepass4web/bin/../lib/Plack/Component.pm l. 50
Plack::Middleware::Head in /usr/share/keepass4web/bin/../lib/Plack/Middleware/Head.pm l. 10
Plack::Component in /usr/share/keepass4web/bin/../lib/Plack/Component.pm l. 50
Plack::Middleware::Conditional in /usr/share/keepass4web/bin/../lib/Plack/Middleware/Conditional.pm l. 16
Plack::Component in /usr/share/keepass4web/bin/../lib/Plack/Component.pm l. 50
Plack::Middleware::FixMissingBodyInRedirect in /usr/share/keepass4web/bin/../lib/Plack/Middleware/FixMissingBodyInRedirect.pm l. 50
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1388
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1386
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 36
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1386
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1473
Return::MultiLevel in /usr/share/keepass4web/bin/../lib/Return/MultiLevel.pm l. 36
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1472
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1595
Dancer2::Core::App in /usr/share/keepass4web/bin/../lib/Dancer2/Core/App.pm l. 1627
Dancer2::Core::Error in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Error.pm l. 302
Method::Generate::Accessor::_Generated in (eval 159) l. 20
Dancer2::Core::Error in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Error.pm l. 289
Dancer2::Core::Error in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Error.pm l. 110
Dancer2::Core::Error in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Error.pm l. 159
Dancer2::Core::Error in /usr/share/keepass4web/bin/../lib/Dancer2/Core/Error.pm l. 385
Feature Request: Add Support for Writing to KeePass Databases
And it looks like the ghcr.io link 404's, at least to me when I try and hit it (specifically, it redirects to https://github.com/-/lixmal/packages/container/package/keepass4web, which itself 404's.)
I've tried just building the Dockerfile (on an Ubuntu 22.04.3 system, but that should not matter - I'm setting up a cluster of self-hosted applications using docker-compose, so building the Dockerfile is the first step), and it fails:
csjewell@csjewell-desktop:~/homelab/keepass4web$ docker build -t keepass4web .
[+] Building 517.3s (17/17) FINISHED docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 241B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.97kB 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 0.6s
=> CACHED [stage-1 1/8] FROM docker.io/library/alpine@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 605.23kB 0.0s
=> [build 2/6] WORKDIR /workspace 0.1s
=> [stage-1 2/8] WORKDIR /keepass4web 0.1s
=> [build 3/6] COPY src src 0.1s
=> [stage-1 3/8] COPY cpanfile . 0.0s
=> [stage-1 4/8] COPY bin bin 0.0s
=> [build 4/6] COPY package*.json config.yml ./ 0.1s
=> [stage-1 5/8] COPY lib lib 0.0s
=> [build 5/6] COPY public public 0.1s
=> [build 6/6] RUN apk add --no-cache npm && npm install && cp node_modules/bootstrap/fonts/* public/fonts/ && rm public/dispatch* && npm run build 13.2s
=> [stage-1 6/8] COPY --from=build /workspace/public /keepass4web/public 0.1s
=> [stage-1 7/8] COPY --from=build /workspace/config.yml /conf/ 0.0s
=> ERROR [stage-1 8/8] RUN apk add --no-cache --virtual .build-deps alpine-sdk
...
502.6 Successfully installed Dancer2-Session-Cookie-0.009
502.7 ! Installing the dependencies failed: Module 'WebService::Dropbox' is not installed, Module 'REST::Client' is not installed
502.7 ! Bailing out the installation for ..
502.7 269 distributions installed
------
Dockerfile:27
--------------------
26 |
27 | >>> RUN apk add --no-cache --virtual .build-deps \
28 | >>> # install build tools
29 | >>> alpine-sdk \
...
Hello,
would it be possible to implement ACLs for the entries?
So that one can delegate specific passwords to specific group memberships or users on the backend (ldap).
Also support for NTLM hashes and Kerberos tickets would be nice.
Keepass4web is the only KeePass variant, that runs server-side, so it's the only one that can implement a group based delegation system without adding additional cryptographic layers and complexity to the database.
Currently there is no free and open password manager that allows assigning permissions to separate entries. So I would be happy to see it implemented some day in an open source software.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.