Skip to content
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

Merged
merged 15 commits into from
Aug 20, 2024
Merged

Clean identity server #136

merged 15 commits into from
Aug 20, 2024

Conversation

h1ppox99
Copy link
Collaborator

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)

@h1ppox99 h1ppox99 marked this pull request as draft July 26, 2024 10:59
.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

Suspicious comment
@h1ppox99 h1ppox99 requested a review from guimard July 26, 2024 11:00
@h1ppox99 h1ppox99 marked this pull request as ready for review July 26, 2024 12:34
@@ -10,7 +10,7 @@
"database_ssl": false,
"database_user": "",
"database_vacuum_delay": 3600,
"federated_identity_services": null,
"federated_identity_services": ["-invalid.host.com"],
Copy link
Member

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

Copy link
Collaborator Author

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

Copy link
Member

@guimard guimard Aug 16, 2024

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)
Copy link
Member

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)

@guimard guimard merged commit 14f11fc into full-id-service Aug 20, 2024
8 checks passed
@h1ppox99 h1ppox99 deleted the clean-identity-server branch September 2, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants