Daniel García
70f3ab8ec3
Migrate lazy_static to once_cell, less macro magic and slightly faster
5 years ago
Daniel García
ebb36235a7
Cache icons in the clients
5 years ago
Daniel García
a0ece3754b
Formatting
5 years ago
Daniel García
2545469713
Fix crash when page URL points to huge file
5 years ago
BlackDex
b209c1bc4d
Add an option to fetch and parse href="data:image"
Some sites are using base64 encoded inline images for favicons.
This will try to match those with some sane checks and return that.
These icons will have lower prio then the icons with a normal URL.
5 years ago
BlackDex
2ffc3eac4d
Clippy fix
5 years ago
BlackDex
0ff7fd939e
Next attempt for issue #709 fix
Now creates icon cache directory at startup.
And it also creates the directory if it went missing during runtime.
Also modified the icon_save/mark_negcache to be one.
5 years ago
BlackDex
ca7c5129b2
Fixed issue #709 creating icon_cache directory.
When the icon_cache directory doesn't exists yet, and the first icon
catched is a miss this .miss file was not able to be created since the
directory was only created during a valid icon download.
5 years ago
Daniel García
d29b6bee28
Remove unnecessary clones and other clippy fixes
5 years ago
BlackDex
ee550be80c
Added http favicon url when response failed
5 years ago
Daniel García
d292269ea0
Make the blacklist logic be cached
5 years ago
BlackDex
be2916333b
Fixed issue #565
Issue fixed by omitting the cookie header when cookie_str is empty
5 years ago
BlackDex
9124d8a3fb
Updated icon blacklisting.
- Blacklisting was not effective for redirects and rel href
- Able to blacklist non global IP's like RFC1918, multicast etc...
5 years ago
BlackDex
e7b6238f43
Added reqwest proxy support
6 years ago
Daniel García
c9c3f07171
Updated dependencies and fixed panic getting icons
6 years ago
Daniel García
4b40cda910
Added domain blacklist regex for icons service and improved valid domain check.
Reorganized the icons code a bit.
6 years ago
Daniel García
04922f6aa0
Some formatting and dependency updates
6 years ago
BlackDex
3b27dbb0aa
Added config option for icon download timeout
6 years ago
Daniel García
877408b808
Implement basic config loading and updating. No save to file yet.
6 years ago
BlackDex
9026cc8d42
Fixed issue when the iconlist is smaller then 5
When the iconlist was smaller then 5 items, it would cause a panic.
Solved by using .truncate() on the iconlist.
6 years ago
BlackDex
574b040142
Loop through the iconlist until an icon is found
Loop for a maximum of 5 times through the iconlist or until a
successful download of an icon.
6 years ago
BlackDex
c13f115473
Fixed issue #380
- Created a separate function for parsing the sizes attribute
- Parsing sizes now with regex
- Should work with any non-digit separator
6 years ago
BlackDex
bc461d9baa
Some small changes on the iter of the cookies
6 years ago
BlackDex
5016e30cf2
Added cookies to the icon download request.
Some sites use XSRF Tokens, or other Tokens to verify a subseqense
response. The cookies which are sent during the page request are now
used when downloading the favicon.
A site which uses this is mijn.ing.nl.
6 years ago
Daniel García
2a60414031
Reuse the client between requests, and use the client when downloading the icons themselves
6 years ago
BlackDex
feb74a5e86
Changed the way to fix the href
- Using url from reqwest to fix href, this fixes:
+ "//domain.com/icon.png"
+ "relative/path/to/icon.png"
+ "/absolute/path/to/icon.png"
- Removed fix_href function
- Some variable changes
6 years ago
Daniel García
c0e350b734
Disable icon downloads, accept optional query after icon href, format and clippy fixes
6 years ago
BlackDex
4de16b2d17
Removed unwrap and added ?
6 years ago
BlackDex
da068a43c1
Moved function call to get_icon_url to prevent error bubbeling
6 years ago
BlackDex
9657463717
Added better favicon downloader.
6 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
6 years ago
Daniel García
a797459560
Implement HIBP check [WIP].
Add extra security attributes to admin cookie.
Error handling.
6 years ago
Daniel García
172f1770cf
Embed the icon in the binary, no need to download when it's not going to change
6 years ago
Steven Noonan
a55c048a62
icons: implement positive/negative cache TTLs
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
6 years ago
Daniel García
94810c106a
Migrate to rust 2018 edition
6 years ago
Daniel García
2fde4e6933
Implemented proper logging, with support for file logging, timestamp and syslog (this last one is untested)
6 years ago
Daniel García
8651df8c2a
Fixed some lint issues
7 years ago
Daniel García
ea600ab2b8
Don't ignore errors while downloading icons
7 years ago
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
7 years ago
Daniel García
483066b9a0
Some style changes, removed useless matches and formats
7 years ago
Daniel García
0e644d2711
Fixed icons and updated web-vault
7 years ago
Daniel García
84a75c871b
Improved error messagees, implemented delete ciphers, attachments and account, implemented two factor recovery.
Known missing:
- import ciphers, create ciphers types other than login and card, update ciphers
- clear and put device_tokens
- Equivalent domains
- Organizations
7 years ago
Daniel García
31bf2bc2b1
Solved some warnings
7 years ago
Daniel García
5cd40c63ed
First working version
7 years ago