dionysius / vaultwarden-deb Goto Github PK
View Code? Open in Web Editor NEWclean(er) debian packaging for vaultwarden
License: MIT License
clean(er) debian packaging for vaultwarden
License: MIT License
When starting vaultwarden the first time it throws an error, after trying to save the newly created key in /var/lib/vaultwarden/data.
It would help to change the owner of this folder to the vaultwarden user.
Right now this package ships the default upstream config file which uses sqlite since no database connection string is set. With dbconfig-common we could offer the selection of supported database servers at installation time and setup a database and credentials automatically. Check if any schema migration strategy needs also to be implemented.
riscv:
error: failed to run custom build command for `ring v0.16.20`
Caused by:
process didn't exit successfully: `/work/vaultwarden-1.27.0/target/release/build/ring-03adbee9b7db2dc2/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:358:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
armv7:
error: failed to compile `vaultwarden v1.0.0 (/work/vaultwarden-1.27.0)`, intermediate artifacts can be found at `/work/vaultwarden-1.27.0/target`
Caused by:
failed to load source for dependency `multer`
Caused by:
Unable to update https://github.com/BlackDex/multer-rs?rev=477d16b7fa0f361b5c2a5ba18a5b28bec6d26a8a
Caused by:
failed to clone into: /root/.cargo/git/db/multer-rs-4345aff1a2cb4345aff1a2cb7639
Caused by:
could not read directory '/root/.cargo/git/db/multer-rs-4345aff1a2cb7639/refs': Value too large for defined data type; class=Os (2)
aarch64:
error: could not compile `vaultwarden`
Caused by:
process didn't exit successfully: `rustc --crate-name vaultwarden --edition=2021 ... (signal: 9, SIGKILL: kill)
error: failed to compile `vaultwarden v1.0.0 (/work/vaultwarden-1.27.0)`, intermediate artifacts can be found at `/work/vaultwarden-1.27.0/target`
Since v1.28.0 vaultwarden added the option and recommendation to use argon2 as admin token instead of plaintext. For this they added both options as comments to their env template.
This sed currently appends the ADMIN_TOKEN_FILE
option after each # ADMIN_TOKEN=.*
pattern, which now exists twice.
Be my guest if someone has more knowledge in sed
or awk
as I'd like have a fairly safe and understandable replacement for it. It should append it only once after the whole comment block.
Since v1.28.0 vaultwarden added the option and recommendation to use argon2 as admin token instead of plaintext. Currently a plaintext token is generated using openssl and a notice is printed during installation.
debconf
option seems the one to be explored):Q: Hi, I can't find guidance on how to handle generated passwords for packages. There is no word about it in the policy manual. Mysql e.g. uses /etc/mysql/debian.cnf to store a root password for pkg use. So is placing such file in /etc still a viable solution?
A: for databases, there is dbconfig-common
A: more generally, ask for the password using debconf, then write the result to the config. the default should be loaded from the config file
Note that we can't load the existing password from the config as we only have the hash. I suggest we don't need to as we keep the current logic to only create a hash automatically (this time with user input) when missing. If a user wants to create a new hash afterwards he can use the vaultwarden hash
command.
hash
command for automatic purposes: (dani-garcia/vaultwarden#3411)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.