-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clean identity server #136
Conversation
.get('longTermKeypairs', ['public'], { | ||
public: publicKey | ||
}) | ||
.then((rows) => { | ||
if (rows.length === 0) { | ||
send(res, 200, { valid: false }) | ||
} else { | ||
// TO DO : ensure that the pubkey only appears one time | ||
// TODO : ensure that the pubkey only appears one time |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -10,7 +10,7 @@ | |||
"database_ssl": false, | |||
"database_user": "", | |||
"database_vacuum_delay": 3600, | |||
"federated_identity_services": null, | |||
"federated_identity_services": ["-invalid.host.com"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change ? null means no fd service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i made this change to have a better test coverage - invalid host names are filtered out from the config when creating the MatrixIdentityServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the good file. Here is the default config, change this into a test config file
if (err) { | ||
reject(err) | ||
} | ||
reject(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More short version : stmt.finalize(reject)
711ea7d
to
1ff0e76
Compare
Conclusion of the cleaning :
1 - it is necessary to tackle #61 - key management is not good for the moment
2 - maybe a deep review of cron tasks will be needed (not enough test coverage for the moment)