Daniel García
c0ba3406ef
Merge pull request #812 from swedishborgie/postgresql
...
Fixes #635 - Unique constraint violation when using U2F tokens on PostgreSQL
5 years ago
Michael Powers
e196ba6e86
Switch error handling to ? operator instead of explicit handling.
5 years ago
Michael Powers
76743aee48
Fixes #635 - Unique constraint violation when using U2F tokens on PostgreSQL
...
Because of differences in how .on_conflict() works compared to .replace_into() the PostgreSQL backend wasn't correctly ensuring the unique constraint on user_uuid and atype wasn't getting violated.
This change simply issues a DELETE on the unique constraint prior to the insert to ensure uniqueness. PostgreSQL does not support multiple constraints in ON CONFLICT clauses.
5 years ago
Daniel García
9ebca99290
Update dependencies
5 years ago
Daniel García
a734ad2d36
Add contributor
5 years ago
Daniel García
baf7d1be4e
Delete old workflow file and disable building binaries on pull requests, as we already have CI for that
5 years ago
Daniel García
31bcd1bf7c
Merge pull request #784 from ypid/docker/use-debian-base
...
Use Debian base image for all steps of the build process
5 years ago
Daniel García
a3b30ed65a
Add missing target armv7 and cross compile envs
5 years ago
Daniel García
59e50b03bd
Merge pull request #804 from publicarray/master
...
Improve Github Actions Workflow
5 years ago
Sebastian Schmidt
0a88f020e1
Disable Windows workflow
5 years ago
Daniel García
c058a1d63c
Make sure handlebars is not updated, as the next patch version has breaking changes
5 years ago
Daniel García
96a189deb9
Merge pull request #803 from aeolyus/master
...
Minor typo conect -> connect
5 years ago
Daniel García
8c229920ad
Protect websocket server against panics
5 years ago
Richard Huang
d592323e39
minor typo conect -> connect
5 years ago
Robin Schneider
402c857d17
Add hint to Dockerfile's that they are generated
5 years ago
Robin Schneider
def858854b
Readd missing cargo build for armv7. Thanks to @dani-garcia!
5 years ago
Robin Schneider
f6761ac30e
Remove debugging echo statement from Dockerfiles
5 years ago
Robin Schneider
f8e49ea3f4
Use apt-get instead of apt in Dockerfiles, also --no-install-recommends
...
apt is intended for humans, not scripts.
--no-install-recommends improves build time by avoiding to install
unneeded packages.
5 years ago
Robin Schneider
f6a4a2127b
Remove duplicate empty lines in generated Dockerfiles
...
Checked with:
```Shell
find . -type f -print0 | xargs -0 pcregrep -M '\n\n\n'
```
5 years ago
Robin Schneider
446fc3f1f8
Set build time options for dpkg and reproducible builds
...
Ref: https://github.com/moby/moby/issues/4032
Ref: https://sweetcode.io/using-docker-reproducible-build-environments/
Ref: https://github.com/hashbang/aosp-build/blob/master/config/container/Dockerfile
5 years ago
Robin Schneider
146525db91
Improve Jinja2 template logic a bit
5 years ago
Robin Schneider
1698b43f9b
Readd missing cargo setup for armv7. Thanks to @dani-garcia!
5 years ago
Robin Schneider
078b21db85
Fix armv6 build, thanks to @dani-garcia for the review!
5 years ago
Robin Schneider
43adcde094
Move `rustup target` before `cargo build`. Thanks to @dani-garcia!
...
Note from @dani-garcia:
> I don't think this is doing anything right now because the target is probably
> installed already.
5 years ago
Daniel García
7a0bb18dcf
Make `cargo new` independent of workdir to be exact
...
The muslrust images seem to have a workdir of /volume as opposed to / in the
others so doing cargo new like this would create the folder in /volume/app.
5 years ago
Robin Schneider
47a5a4e1fc
Fix package name for Ubuntu 16.04 based image. Thanks @dani-garcia!
5 years ago
Robin Schneider
0f0e5876ae
Move `dpkg --add-architecture` before the first apt call
...
Thanks to @dani-garcia for the review!
5 years ago
Robin Schneider
43aa75dc89
Fix cross platform build support, thanks to @dani-garcia for the review
5 years ago
Daniel García
95dd1cd7ad
Use rmp upstream version
5 years ago
Daniel García
36ae946655
Avoid some to_string in the request logging and include message to disable web vault when not found.
5 years ago
Sebastian Schmidt
24edc94f9d
try setting VCPKG_ROOT
5 years ago
Sebastian Schmidt
4deae76347
Update build workflow
5 years ago
Robin Schneider
8280d200ea
Generate Dockerfiles from one source for maintainability. Closes #785 .
5 years ago
Daniel García
8ee0c57224
Disable Windows build for now to avoid failing CI
5 years ago
Daniel García
cb6f392774
When receiving a comma separated list as IP, pick the first
5 years ago
Robin Schneider
f250c54813
WIP: Use Debian base image for all steps of the build process
...
No need to use two different base images. Debian buster is pulled later
anyway so we can just use it for the vault stage as well.
My reason for this change is partly to avoid redundancy and partly to
make it easier to build everything yourself. When all the build
environment is based on Debian than you just have to figure out how to
build a Debian Docker base image (ref:
https://github.com/ypid/docker-makefile ).
5 years ago
Daniel García
5c6081c4e2
Merge pull request #779 from publicarray/master
...
Add Github build Action
5 years ago
Daniel García
88c56de97b
Config option for client IP header
5 years ago
Daniel García
e274af6e3d
Print current server time when failing TOTP, and use chrono as the rest of the server
5 years ago
Daniel García
a0ece3754b
Formatting
5 years ago
Sebastian Schmidt
0bcc2ae7ab
Update rust-win.yml
5 years ago
Sebastian Schmidt
bdb90460c4
Update rust-win.yml
5 years ago
Sebastian Schmidt
824137a02c
update dependencies to build workflows
5 years ago
Sebastian Schmidt
2edc699eac
fix
5 years ago
Sebastian Schmidt
8e79366076
fix action
5 years ago
Sebastian Schmidt
c1e39b182f
update build actions
5 years ago
Sebastian Schmidt
13eb276085
Create Github build Actions
5 years ago
Daniel García
4cec502f7b
Update docker images to alpine 3.11 and rust 1.40
5 years ago
Daniel García
2545469713
Fix crash when page URL points to huge file
5 years ago
Daniel García
f09996a21d
Updated dependencies
5 years ago