-
Notifications
You must be signed in to change notification settings - Fork 5
Automatic session refresh and expiry information & Sessions Domain Refactoring According to Review #211
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
Comments
Try to structure it with the new issue templates. |
See if some of this might be done in Nodes CLI MR @joshuakarp |
Before working on this, please address these review points. Some review notes for https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/189:
|
Also added @tegefaulkes on this issue as these changes some of them can be placed directly into client-refactoring, and some can go into the nodes CLI. |
On 16. the |
Another point to address: There still exists several instances of
|
I thought these were addressed ages ago lol.
…On 27 July 2021 11:47:09 am AEST, DrFacepalm ***@***.***> wrote:
Another point to address:
There still exists several instances of `@/` aliases in `src`.
* [ ] Replace them with relative referencing.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#211 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
|
More things:
|
Things left for this issue:
|
Has this been updated with the fact that Keys now uses DB?
…On 8/2/21 4:47 PM, DrFacepalm wrote:
There is currently an issue with this test:
image
<https://user-images.githubusercontent.com/31267481/127816128-f5093c0e-3cda-44cc-943c-f15dbbb9d5e7.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#211 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE4OHNBYWXICHY5YLYU5ELT2Y5R5ANCNFSM5AIJYN4A>.
|
I believe so. All the other keys tests works |
I made a comment on Slack re this a week or so ago, when
https://matrixai.slack.com/archives/CEAUUV5QX/p1626841840454900 |
@tegefaulkes you should take over this issue and consider the timing issues for all domains as the final polish. |
Remaining unticked testing issues here go to #178. My post-merge review copied here:
|
@DrFacepalm commentary on?:
|
MR 202 merged. |
We DO read the token during the async start.
We DO allow the token to be passed during start, and if it is not passed, it attempts to read it.
I believe I've removed all the references to JWT in the function names.. |
Uh oh!
There was an error while loading. Please reload this page.
(I created this issue using the 'reference in new issue' feature)
Currently being handled in: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/202
Expiry Date / Time
When unlocking the agent and creating a session, you should show the information about the session. In particular show that the session has an expiry date.
Automatic session refresh
The session should refresh every time a command is done.
(The below is from a previous issue)
One question do you refresh the session on each command. So if you do:
Is each
pk vault list
refreshing the session? Ideally it should be, that way the more you use the client, you don't expire it inadvertently.However if you are refreshing the session each time, you have you write the session file onto the disk.
Note that when you do this, you may clobber the file or be writing at the same time as some other command.
The above will run the command twice at the same time. We would want to avoid refreshing the session file and clobbering each other.
One way to resolve this is to acquire a lock on the session file. This very similar to the lockfile being used by the agent to ensure that one node state has one agent instance.
You can have a procedure like:
You will also need to resolve how to lock the file if the file doesn't exist.
Perhaps you can use the same lockfile mechanism and abstract it for this usecase?
Originally posted by @CMCDragonkai in #204 (comment)
The text was updated successfully, but these errors were encountered: