![]() |
#31 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and just by the way, if you are storing hashed passwords for digest auth, that means you have to hash them with md5, without a salt, which means they can be pretty trivially brute-forced.
|
![]() |
![]() |
![]() |
#32 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
The problem is this, gui apps might crash, killed etc due to memory etc and the user might not know about it or might not have a way to fix the issue remotely. But the services can be restarted automatically. That is why I personally like the separate server app.
I liked having the gui for manipulating "when needed" and let the server running at all times. Last edited by loviedovie; 06-26-2017 at 04:50 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
You proposed to sync LDAP Users to calibre DB for what I had to know the users passwords. I said I don't know them, so I can't do such a sync. Because of that and the fact, that the passwords really are saved in cleartext(!!) in the sqlite DB (just verified by looking at the calibre userdb right now) I only would use a few technical users with passwords I nowhere else use just for this one and only purpose. Using critical passwords in a system which stores them in cleartext is very risky and insecure! |
|
![]() |
![]() |
![]() |
#34 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
What I'm wondering, too, is, why a seperate server-process (which seems nothing more than a WebServer) is neccessary at all. Wouldn't it be enogh to write some sort of WebApp (in PHP or whatever language) that deals with the calibre content, offers an OPDS Feed in a completely read-only way and let Apache or NGinx serve it? Then one could use all the features of a "real" WebServer with all its modules (Basic Auth in many different ways is the first that comes to my mind), so concentrate on the plain "Business Logic" and don't have to deal with how to implement all the HTTP(S) - Protocol / Auth / Security stuff... But I think, there will be some good reasons, why calibre-server exists.. Last edited by snoopy_1978; 06-26-2017 at 07:21 PM. |
|
![]() |
![]() |
![]() |
#35 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
(see also: https://security.stackexchange.com/q...dered-insecure or this: "As of 2010, the CMU Software Engineering Institute considers MD5 "cryptographically broken and unsuitable for further use",[29] and most U.S. government applications now require the SHA-2 family of hash functions.[30] In 2012, the Flame malware exploited the weaknesses in MD5 to fake a Microsoft digital signature." (from: https://en.wikipedia.org/wiki/MD5)) Last edited by snoopy_1978; 06-26-2017 at 07:32 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
He recently posted a link to his TODO list somewhere, in which some these things were mentioned [. . .] Ah-ha, here 'tis ==>> https://www.mobileread.com/forums/sh...53#post3541853. BR |
|
![]() |
![]() |
![]() |
#37 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sigh, I am going to try this one last time, just because I am eternal optimist.
1) You sync user accounts from LDAP to calibre with default passwords. i.e. the same dummy password for all user accounts. 2) You get Apache to re-write the Authorization header so it contains the username and this default password instead of the actual password. 3) The web server uses digest authentication. Digest authentication requires unhashed passwords (or at best passwords hashed without a salt and with MD5). You dont like it, take it up with the IETF. 4) You cannot run the server and the GUI at the same time because they both can make changes to the calibre library. Pick one. I am done with this thread. It seems to be filled with people asking the same questions over and over again, despite my having them answered already. |
![]() |
![]() |
![]() |
#38 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
kovid
Please take it easy. We all love Calibre but we are trying to understand why the certain decisions were made such that they changed the previous behaviors drastically. Sure, I understand that multiple sources modifying the database is a no no. I get that. But what I do not understand is that why the new tangent was a choice of design compared to the previous behaviour? I already tried to give you an example where the gui or the server approach just make it sound just like highway or my way thing instead of user friendliness. Please do not get me wrong. I am pretty sure that you have a much better grasp of these things compared to most of us but from the user perspective, certain changes are just "too much" to adapt right away if you will, when it comes to the server/client thing. I am personally not upgrading( not mad or anything) because I need to figure out first how I can fit this new model into my user space. thanks Last edited by loviedovie; 06-27-2017 at 01:46 AM. |
![]() |
![]() |
![]() |
#39 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
But I don't understand the need of wrapping the WebFrontend with a self implemented webserver and not just take standard technologies (Nginx/Apache + PHP/OtherLanguage + some DB like in thousands of other Desktop like WebApps nowadays) and just concentrate on the WebApps core functionalities... |
|
![]() |
![]() |
![]() |
#40 | |||
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
Code:
#NonAdult RequestHeader set Authorization "Basic <NonAdultUserPassString>" expr=(%{REMOTE_USER}in{"Sarah"}) #All RequestHeader set Authorization "Basic <AllUserPassString>" expr=(%{REMOTE_USER}in{"John","Jane"}) This complicates things a little compaired to V2 but it generally woks. Quote:
Quote:
We just all want to help make this good software even better.. a single developer can't think of (and less test) each and every use case that could came up in a larger community like this one of calibre, just quite normal. So shouldn't you be a little more thankful of the communities contribution? |
|||
![]() |
![]() |
![]() |
#41 | |||
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#42 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I don't know how many users took advantage of the beta test period, but it didn't seem to be very many, and few of them appeared to use the old server in a very sophisticated manner. Perhaps Kovid needs a better way of calling for beta testers. A once a week notice on calibre startup - "Hey, there's a new version in beta testing - please help" with a link to a thread here. BR |
|
![]() |
![]() |
![]() |
#43 |
Serpent Rider
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,123
Karma: 10219804
Join Date: Jun 2009
Device: Sony 350; Nook STR; Oasis
|
Or just release a "new" version and watch the people who have never showed up before or commented before come out of the woodwork and act like they own the place...
|
![]() |
![]() |
![]() |
#44 | ||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
And it also needs to implement auth, protocol, etc. because not everyone wants to set up an apache instance in order to use calibre's Content Server. Quote:
![]() |
||
![]() |
![]() |
![]() |
#45 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
FWIW I quite want calibre to be able to connect to a running server instance, and I hope Kovid eventually gets that working.
![]() In the meantime, I have updated my calibre wrapper script to accommodate the server: Code:
#!/bin/bash eval $(systemctl --user show calibre-server -q -p ActiveState) toggle-server() { local action=$1 if [[ $ActiveState = active ]]; then systemctl --user $action calibre-server fi } toggle-server stop if [ $# -eq 0 ] || [[ "$1" = "--detach" ]]; then echo -e "\n\n\nStarting calibre at $(date).\n\n\n" >> "/tmp/calibre-debug-$USER.log" 2>&1 # FIXME: Once calibre supports running the GUI with a server database, we can stop doing this. if [[ $ActiveState = active ]]; then echo -e "Pausing the systemd-managed server due to calibre v3 restraints.\n" >> "/tmp/calibre-debug-$USER.log" 2>&1 echo -e "FIXME: Once calibre supports running the GUI with a server database, we can stop doing this.\n\n\n" >> "/tmp/calibre-debug-$USER.log" 2>&1 fi calibre-debug -g 2>&1 | tee -a "/tmp/calibre-debug-$USER.log" else /usr/bin/calibre "$@" fi toggle-server start |
![]() |
![]() |
![]() |
Tags |
calibre 3.0, content server, read-only, standalone |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre-sync: Automatically download books from your Calibre Content Server onto Kobo | mishagale | Related Tools | 14 | 05-13-2019 05:18 PM |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
Standalone content-server and Calibre Companion issues | duckpuppy | Devices | 2 | 11-08-2012 07:54 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
calibre content server only. | nesvarbu | Calibre | 5 | 02-18-2011 03:40 AM |