Skip to content
Snippets Groups Projects
  1. Dec 01, 2022
    • BlackDex's avatar
      Update Vaultwarden Logo's · 7d506f36
      BlackDex authored
      Updated the logo's so the `V` is better visible.
      Also the cog it self is better now, the previous version wasn't fully round.
      These versions also are used with the PR to update the web-vault and use these logo's.
      
      Also updated the images in the static folder.
      Unverified
      7d506f36
    • BlackDex's avatar
      Add Organizational event logging feature · b1868130
      BlackDex authored
      This PR adds event/audit logging support for organizations.
      By default this feature is disabled, since it does log a lot and adds
      extra database transactions.
      
      All events are touched except a few, since we do not support those
      features (yet), like SSO for example.
      
      This feature is tested with multiple clients and all database types.
      
      Fixes #229
      Unverified
      b1868130
  2. Nov 28, 2022
  3. Nov 27, 2022
  4. Nov 23, 2022
  5. Nov 22, 2022
  6. Nov 14, 2022
    • BlackDex's avatar
      Prevent DNS leak when icon regex is configured · 0d2399d4
      BlackDex authored
      When a icon blacklist regex was configured to not check for a domain, it
      still did a DNS lookup first. This could cause a DNS leakage for these
      regex blocked domains.
      
      This PR resolves this issue by first checking the regex, and afterwards
      the other checks.
      
      Fixes #2909
      Unverified
      0d2399d4
    • BlackDex's avatar
      Added missing `register` endpoint to `identity` · 5bfc7cfd
      BlackDex authored
      In the upcomming web-vault and other clients they changed the register
      endpoint from `/api/accounts/register` to `/identity/register`.
      
      This PR adds the new endpoint to already be compatible with the new
      clients.
      
      Fixes #2889
      Unverified
      5bfc7cfd
    • BlackDex's avatar
      Fully remove DuckDuckGo email service. · 723f0cbc
      BlackDex authored
      The DuckDuckGo email service is not supported for self-hosted servers.
      This option is already hidden via the latest web-vault.
      
      This PR also removes some server side headers.
      
      Fixes #2828
      Unverified
      723f0cbc
    • BlackDex's avatar
      Set "Bypass admin page security" as read-only · b141f789
      BlackDex authored
      It was possible to disable the admin security via the admin interface.
      This is kinda insecure as mentioned in #2761.
      
      This PR set this value as read-only and admin's need to set the correct ENV variable.
      Currently saved settings which do override this are still valid though.
      If an admin want's this removed, they either need to reset the config,
      or change the value in the `config.json` file.
      
      Fixes #2761
      Unverified
      b141f789
  7. Nov 13, 2022
  8. Nov 12, 2022
  9. Nov 11, 2022
    • Samuel Tardieu's avatar
      Use constant size generic parameter for random bytes generation · d0baa23f
      Samuel Tardieu authored
      All uses of `get_random()` were in the form of:
      
        `&get_random(vec![0u8; SIZE])`
      
      with `SIZE` being a constant.
      
      Building a `Vec` is unnecessary for two reasons. First, it uses a
      very short-lived dynamic memory allocation. Second, a `Vec` is a
      resizable object, which is useless in those context when random
      data have a fixed size and will only be read.
      
      `get_random_bytes()` takes a constant as a generic parameter and
      returns an array with the requested number of random bytes.
      
      Stack safety analysis: the random bytes will be allocated on the
      caller stack for a very short time (until the encoding function has
      been called on the data). In some cases, the random bytes take
      less room than the `Vec` did (a `Vec` is 24 bytes on a 64 bit
      computer). The maximum used size is 180 bytes, which makes it
      for 0.008% of the default stack size for a Rust thread (2MiB),
      so this is a non-issue.
      
      Also, most of the uses of those random bytes are to encode them
      using an `Encoding`. The function `crypto::encode_random_bytes()`
      generates random bytes and encode them with the provided
      `Encoding`, leading to code deduplication.
      
      `generate_id()` has also been converted to use a constant generic
      parameter as well since the length of the requested String is always
      a constant.
      d0baa23f
  10. Nov 09, 2022
  11. Nov 08, 2022
  12. Nov 07, 2022
  13. Nov 06, 2022
    • BlackDex's avatar
      Add `/devices/knowndevice` endpoint · 6af5c860
      BlackDex authored
      Added a new endpoint which the currently beta client for at least
      Android v2022.10.1 seems to be calling, and crashes with the response we
      currently provide
      
      Fixes #2890
      Fixes #2891
      Fixes #2892
      Unverified
      6af5c860
  14. Oct 26, 2022
Loading