New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS: Document cookie usage in Etherpad - Waiting on Final Edits #3563
Comments
That's right. BTW, this table is going to be updated as soon as #3561 is implemented: we will need to explain that the secure flag is dependent whether or not Etherpad is accessed via TLS. |
@muxator Thanks for the quick response. I can PR the documentation change once the information has been collected but before that I would need the information to be correct. Can you comment on any of the cookies mentioned above? |
Hello, |
@tiblu, I finally had the time to work on #3561 and thus simplified & clarified the scope of the cookies. The |
Added another optional cookie, sessionID, that can be used with the HTTP API. Details are scattered throughout the http_api.md documentation and the source code, for example in |
Postponing the release of this documentation to a point release after 1.8.0. |
@muxator Thanks for the input on this, from our POV we have all the info on all the cookies we're using in our Etherpad deployment. One thought tho, as privacy is important and GDPR requires to have very granular cookie consents which describe to the User the use of cookies we should have a place in documentation that holds the up to date info about the cookies? I think this GH issue is a good start, but MAY be hard to find and get out of date. Thanks again for all your work on Etherpad. |
Now that I think about it, the |
TLDR; token is an abstraction of authorID so we don't have to always pass authorID? :)
Server side:
Most notable:
and
So My assumption would be.. If |
Thanks for the quick answer @JohnMcLear! If I understand correct there is 1:1 Sorry if I'm being slow here. Also, I think it's very important for us to to explain cookies in a way that a visitor of Etherpad can understand, be it technical or non-technical. Last is the case for privacy control panels and their cookie settings. |
That's afaik... |
Thanks alot! @muxator do you have anything to add to this? |
Small hint: If you are already there, you could also replace the domain |
@muxator Sure, I can PR this.
|
Yep. Not my design, but my conclusion is the same.
Give me some time to work out a feasible example of actually using |
@tiblu, this are my thoughts after re-reading the table above and the code:
p.s.: obviously, our aim here is only document what exists, without re-designing anything. |
Thanks again for quick and thorough response @muxator
I must admit I went down the rabbit hole and got lost in the layers. That said:
To validate my understanding of the whole authorization/authentication flow this is how I THINK it goes:
Q: Thing I did not have time to dig out was how an Author is created and how an author is tied to a |
@tiblu: I think we can open a PR and move on from there. It's better if you open the PR, because I can push on top of that. You wouldn't be allowed to push on top of something started by me. After it's done, I'll squash the modifications and pull in the PR. Thanks |
@muxator Created the PR for docs - #3921
|
"token" is a random token representing the author, of the form t.randomstring_of_lenght_20. The random string is generated by the client. The cookie is used for every pad in the web UI, and is not used for HTTP API. This comes from the discussion at #3563
This is a cosmetic fix for PR ether#3921 (109aa2d). Discussion on ether#3563
This is a cosmetic fix for PR ether#3921 (109aa2d). Discussion on ether#3563
Overview
It's important to the Users and the host of the Etherpad instance to know what cookies are used in Etherpad and what is their purpose.
List of known cookies issued by Ethepad
trustProxy: true
insettings.json
iouUrtV8P-cJF0IVDOAAAVexample.org/1969-12-31T23:59:59.000Ztruefalseen-GB
,it
)t.randomstring_of_lenght_20
. The random string is generated by the client, at (pad.js#L55-L66). This cookie is always set by the client (at pad.js#L153-L158) without any solicitation from the server. It is used for all the pads accessed via the web UI (not used for the HTTP API). On the server side, its value is accessed at SecurityManager.js#L33.|
TODO
The text was updated successfully, but these errors were encountered: