Commit Graph
100 Commits
Author SHA1 Message Date
Daniel García d70864ac73 Initial version of websockets notification support.
For now only folder notifications are sent (create, rename, delete).
The notifications are only tested between two web-vault sessions in different browsers, mobile apps and browser extensions are untested.

The websocket server is exposed in port 3012, while the rocket server is exposed in another port (8000 by default). To make notifications work, both should be accessible in the same port, which requires a reverse proxy.

My testing is done with Caddy server, and the following config:

```
localhost {

    # The negotiation endpoint is also proxied to Rocket
    proxy /notifications/hub/negotiate 0.0.0.0:8000 {
        transparent
    }

    # Notifications redirected to the websockets server
    proxy /notifications/hub 0.0.0.0:3012 {
        websocket
    }

    # Proxy the Root directory to Rocket
    proxy / 0.0.0.0:8000 {
        transparent
    }
}
```

This exposes the service in port 2015.
2018-08-30 17:58:53 +02:00
Daniel GarcíaandGitHub f94e626021 Merge pull request #166 from mprasil/alpine
Alpine
2018-08-30 16:47:58 +02:00
Daniel GarcíaandGitHub 0a3b84b815 Merge pull request #165 from mprasil/shared_edit_fix
Fix editing shared cipher (fixes #164)
2018-08-30 16:47:08 +02:00
Daniel García 761a0a3393 Removed accidental change to Dockerfile 2018-08-28 12:54:57 +02:00
Daniel García 6660b0aef3 Updated web vault to version 2.2 2018-08-28 03:22:13 +02:00
Daniel GarcíaandGitHub b82710eecf Merge pull request #152 from Baelyk/master
Add ip and username to failed login attempts
2018-08-26 17:43:50 +02:00
Daniel García 8d1ee859f2 Implemented basic support for prelogin and notification negotiation 2018-08-24 19:02:34 +02:00
Daniel García c91f80c456 Fixed rust toolchain date 2018-08-24 17:12:04 +02:00
Daniel García 39891e86a0 Updated dependencies, added Travis CI integration and some badges 2018-08-24 17:07:11 +02:00
Daniel GarcíaandGitHub 335099cd30 Merge pull request #150 from mprasil/build_instructions
Update the build instruction for new Vault
2018-08-23 16:05:24 +02:00
Daniel GarcíaandGitHub 1c57c9d8e0 Merge pull request #148 from mprasil/beta
Merge Beta to master
2018-08-21 22:41:50 +02:00
Daniel GarcíaandGitHub bd20d8724b Merge pull request #147 from mprasil/master
Bump version to 0.13.0 - latest Vault v1
2018-08-21 22:32:54 +02:00
Daniel GarcíaandGitHub ee10d278a7 Merge pull request #146 from mprasil/cipher_folder_revision
Update affected users revision on cipher and folder change
2018-08-21 21:44:33 +02:00
Daniel GarcíaandGitHub 4f58d07c83 Merge pull request #145 from mprasil/org_user_revision
Organization update improvements
2018-08-21 16:27:19 +02:00
Daniel GarcíaandGitHub d332e87655 Merge pull request #144 from mprasil/collection_revision
Update affected users revision when there are collection changes
2018-08-21 13:47:19 +02:00
Daniel GarcíaandGitHub 0fa48a749f Merge pull request #143 from mprasil/update_revision_fix
Actually update the revision date for user struct, not just in DB
2018-08-21 13:46:05 +02:00
Daniel GarcíaandGitHub 6fdeeb56ce Merge pull request #140 from mprasil/error_format
Update the error format to show message in new Vault
2018-08-16 00:52:46 +02:00
Daniel GarcíaandGitHub b002d34cd4 Merge pull request #139 from mprasil/edit_shared_fix
Add PUT alias for editing cipher
2018-08-15 23:02:59 +02:00
Daniel GarcíaandGitHub e46fc62b78 Merge pull request #141 from mprasil/profile_update
Add PUT alias for profile update
2018-08-15 23:02:34 +02:00
Daniel GarcíaandGitHub b6312340b6 Merge pull request #138 from mprasil/readme_updates
Cleaned up HTTPS example
2018-08-15 15:12:01 +02:00
Daniel GarcíaandGitHub 3d1fc0f2e8 Merge pull request #136 from mprasil/disable_analytics
Remove analytics from Vault
2018-08-15 15:11:45 +02:00
Daniel GarcíaandGitHub f1ade62638 Merge pull request #135 from mprasil/empty_collection
Deserialize "null" to empty Vec for Collections
2018-08-14 16:43:03 +02:00
Daniel GarcíaandGitHub eb5641b863 Merge pull request #134 from mprasil/put_collections_admin
Add aliases for PUTs and DELETEs on collections, organizations and org users
2018-08-13 20:16:34 +02:00
Daniel García d3f357b708 Implemented PUT for u2f registration 2018-08-13 15:26:01 +02:00
Daniel GarcíaandGitHub 5a55dd1d4b Merge pull request #133 from mprasil/document_differences
Extend documentation
2018-08-13 14:38:54 +02:00
Daniel GarcíaandGitHub 16056626b0 Merge pull request #131 from mprasil/revision_date
Implement update_revision trigger
2018-08-13 14:38:30 +02:00
Daniel GarcíaandGitHub e7e0717f5b Merge pull request #129 from krankur/beta
Implemented PUT for /two-factor/authenticator and /two-factor/disable #124
2018-08-10 22:20:44 +02:00
Daniel GarcíaandGitHub c6256e1455 Merge pull request #128 from mprasil/revision_date
Return revision date in miliseconds (fixes #127)
2018-08-10 19:40:56 +02:00
Daniel GarcíaandGitHub 0cd3053fcb Merge pull request #125 from stammw/master
Make password hints available in the error message #85
2018-08-10 19:40:31 +02:00
Daniel GarcíaandGitHub 672e3273cd Merge pull request #123 from mprasil/beta_patch
Fix patch file for v2.1.1
2018-08-09 16:40:29 +02:00
Daniel GarcíaandGitHub 9511456ded Merge pull request #116 from krankur/beta
Implemented bulk cipher share (share selected) #100
2018-08-09 01:44:16 +02:00
Daniel GarcíaandGitHub 04b198a7e2 Merge pull request #120 from mprasil/vault_2.1.1
Update vault to latest version
2018-08-09 01:43:22 +02:00
Daniel GarcíaandGitHub 8ffa7ebb6a Merge pull request #115 from krankur/beta
Implmeneted DELETE on 'api/ciphers' to delete selected ciphers (#98)
2018-08-03 16:29:23 +02:00
Daniel GarcíaandGitHub 54afe0671e Merge pull request #111 from krankur/beta
Implemented PUT for single cipher sharing (#97)
2018-08-01 21:12:48 +02:00
Daniel GarcíaandGitHub d6fadb52ff Merge pull request #109 from mprasil/beta_merge
Merge changes from master to beta
2018-08-01 12:57:32 +02:00
Daniel GarcíaandGitHub fcb479a457 Merge pull request #108 from krankur/beta
Implementing PUT for 'api/ciphers/move' (#99)
2018-08-01 11:49:14 +02:00
Daniel GarcíaandGitHub 56b3afa77c Merge pull request #107 from shauder/bug/attachments_for_orgs
Bug/attachments for orgs
2018-07-31 20:08:05 +02:00
Daniel GarcíaandGitHub 07a30c8334 Merge pull request #106 from mprasil/beta_stable
Use stable release of v2.0.0
2018-07-30 15:43:41 +02:00
Daniel GarcíaandGitHub 3726da9c14 Merge pull request #103 from mprasil/https_doc_fix
Fixed the documentation for https (resolves #101)
2018-07-24 15:28:23 +02:00
Daniel García 659f677897 Add missing slash, to put it like it was at first 2018-07-21 18:50:54 +02:00
Daniel García a291dea16f Updated dependencies and Docker image to new web-vault 2018-07-21 17:27:00 +02:00
Daniel GarcíaandGitHub 48e69cebab Merge pull request #92 from mprasil/not_found
Return 404 in case the path doesn't match instead of 500
2018-07-18 14:07:28 +02:00
Daniel GarcíaandGitHub 798a3b6a43 Merge pull request #91 from mprasil/worker_threads
Change number of workers in image, document the setting (fixes #90)
2018-07-18 14:06:53 +02:00
Daniel GarcíaandGitHub 458a238c38 Merge pull request #89 from mprasil/unconfirmed_guard
Add confirmed check to the OrgHeaders request guard
2018-07-17 11:54:13 +02:00
Daniel GarcíaandGitHub 4a2350891a Merge pull request #84 from mqus/patch-2
Reflect changes in Archlinux packaging
2018-07-15 12:04:28 +02:00
Daniel GarcíaandGitHub 55b7a3e4d1 Merge pull request #82 from mprasil/not_accepted_user
Do not show organization stuff to not accepted user
2018-07-13 18:42:38 +02:00
Daniel García 03172a6cd7 Bump version to 0.10.0 2018-07-13 16:06:01 +02:00
Daniel García 819622e310 Documented U2F, removed debug prints, and documented missing features 2018-07-13 15:58:50 +02:00
Daniel García 970863ffb1 Set facets contentType 2018-07-13 15:05:00 +02:00
Daniel García e876d3077a Merge remote-tracking branch 'origin/master' into u2f 2018-07-13 13:59:45 +02:00
Daniel GarcíaandGitHub 99d6742fac Merge pull request #81 from mprasil/readme_update
Readme updates (chat, arch, TOC)
2018-07-13 13:58:50 +02:00
Daniel García 75615bb5c8 Ignore U2F challenge if not provided. Also checked that error_code has to be 0 for a successfull registration 2018-07-13 12:37:46 +02:00
Daniel García 6378d96d1a Add some extra debug prints 2018-07-13 11:07:20 +02:00
Daniel García c722256cbd Remove debug print 2018-07-13 00:40:59 +02:00
Daniel García 8ff50481e5 Use X-Forwarded-Host if available 2018-07-13 00:33:28 +02:00
Daniel García be4e6c6f0c Merge branch 'master' into u2f 2018-07-12 23:54:56 +02:00
Daniel García 2f892cb866 Hide org ciphers from unconfirmed users (Showed deciption error) 2018-07-12 23:45:41 +02:00
Daniel García 4f6f510bd4 Improve domain detection, should fix attachment problems. Otherwise, set the DOMAIN env variable to the correct domain 2018-07-12 23:28:16 +02:00
Daniel García dae92b9018 Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device. 2018-07-12 22:22:10 +02:00
Daniel GarcíaandGitHub 869352c361 Merge pull request #70 from dustyrip/dustyrip-patch-1
Enable user to change ROCKET_ENV for container
2018-07-11 21:17:45 +02:00
Daniel García 1cb67eee69 Implement leave organization (accessed from the bottom of the user's settings page) 2018-07-11 16:30:03 +02:00
Daniel García e88d8c856d Change host url to https when it's enabled, should fix some problems downloading attachments 2018-07-11 16:23:39 +02:00
Daniel GarcíaandGitHub ec37004dfe Merge pull request #68 from mprasil/unprivileged
Document running container with lower privileges (fixes #66)
2018-07-11 16:20:56 +02:00
Daniel GarcíaandGitHub 3f56730b8a Merge pull request #65 from laxmanpradhan/master
updated README to include backup information
2018-07-10 13:41:06 +02:00
Daniel García b1d1926249 Reorganized build instructions 2018-07-09 15:09:30 +02:00
Daniel GarcíaandGitHub c5dd1a03be Merge pull request #64 from mprasil/master
Update readme for docker hub
2018-07-08 16:19:34 +02:00
Daniel García df598d7208 Log posible errors when attaching file 2018-07-06 17:23:12 +02:00
Daniel García 35b4ad69bd Remove unused warnings 2018-07-04 14:27:47 +02:00
Daniel García dfb348d630 Install CA certificates to make HTTPS connections work 2018-07-01 17:40:02 +02:00
Daniel GarcíaandGitHub 22786c8c9d Merge pull request #55 from mprasil/debug_prints
Remove some extra debug prints
2018-07-01 16:02:18 +02:00
Daniel García a1ffa4c28d Allow TOTP generation in organizations (Fixes #50) 2018-07-01 15:49:52 +02:00
Daniel García ea600ab2b8 Don't ignore errors while downloading icons 2018-07-01 15:27:42 +02:00
Daniel GarcíaandGitHub 83da757dfb Merge pull request #54 from mprasil/delete-admin
Implement delete-admin call
2018-07-01 14:45:48 +02:00
Daniel GarcíaandGitHub 4fcdf33621 Merge pull request #47 from mprasil/limits
Add limits configuration to the readme
2018-06-30 17:48:34 +02:00
Daniel García 15833e8d95 Added Rocket.toml to the final docker image 2018-06-30 01:51:53 +02:00
Daniel García 7d01947173 Updated dependencies and rust version 2018-06-29 23:18:19 +02:00
Daniel García 6aab2ae6c8 Document configuration a bit and increase JSON size limit to 10MB 2018-06-29 23:11:15 +02:00
Daniel García 64ac81b9ee Added unofficial note and better organized the README file 2018-06-29 14:47:23 +02:00
Daniel García 7c316fc19a Added security headers to web-vault (fixes #44) 2018-06-25 20:35:36 +02:00
Daniel García 1c45c2ec3a Implemented API endpoints to modify profile name and hint, and to change email address, fixes #43 2018-06-17 00:08:05 +02:00
Daniel García 0905355629 Fix wrong case in import struct, invite collections and user Uri back-compat 2018-06-13 14:39:29 +02:00
Daniel GarcíaandGitHub f24e754ff7 Merge pull request #41 from mprasil/toolchain_build
Use proper toolchain in Dockerfile
2018-06-13 12:08:06 +02:00
Daniel García 7983ce4f13 Updated global domains file 2018-06-12 23:24:49 +02:00
Daniel García 5fc0472d88 Removed unneeded cipher code for changing case (fixed by last commit) 2018-06-12 23:15:27 +02:00
Daniel García 410ee9f1f7 Fixed case problems, hopefully this time for real 2018-06-12 23:01:14 +02:00
Daniel García 538dc00234 Improved configuration and documented options. Implemented option to disable web vault and to disable the use of bitwarden's official icon servers 2018-06-12 21:09:42 +02:00
Daniel García 515c84d74d Fixed casing issue 2018-06-12 18:01:11 +02:00
Daniel García f72efa899e Updated dependencies and created 'rust-toolchain', to mark a working nightly to rustup users, and hopefully avoid some nightly breakage. 2018-06-12 17:30:36 +02:00
Daniel García 483066b9a0 Some style changes, removed useless matches and formats 2018-06-11 15:44:37 +02:00
Daniel García 57850a3379 Fix SSN field in Identity cipher not loading correctly
It needs to be all uppercase otherwise the web vault doesn't load it
2018-06-01 23:16:10 +02:00
Daniel GarcíaandGitHub 3b09750b76 Merge pull request #39 from mprasil/vault_update
Update Vault to 1.27.0
2018-06-01 23:11:10 +02:00
Daniel García f1b4a146ae Updated version 2018-06-01 16:06:25 +02:00
Daniel García b46e9c936d Updated dependencies and removed some warnings from jsonwebtoken 2018-06-01 15:34:26 +02:00
Daniel García b0ee5f6570 Improved two factor auth 2018-06-01 15:08:03 +02:00
Daniel GarcíaandGitHub dc188211d8 Merge pull request #38 from mprasil/rocket_update
Update rocket to 0.3.12
2018-06-01 15:01:49 +02:00
Daniel GarcíaandGitHub 513f857672 Merge pull request #36 from mprasil/cipher_access
Better check for cipher access
2018-06-01 15:01:37 +02:00
Daniel García 4cf9f83866 Fixed sync 2018-06-01 00:50:22 +02:00
Daniel García 2be1dafe80 Missed some 2018-06-01 00:35:30 +02:00
Daniel García a71a2c2f48 Added missing collections to /api/sync 2018-06-01 00:20:09 +02:00
Daniel García 5ec728683e Make sure the inputs are always in the same case (PascalCase, which is what upstream seems to prefer most of the time) 2018-06-01 00:18:50 +02:00