Skip to content

fix: Use sha256 to hash arguments of background jobs - #47769

Merged
sorbaugh merged 2 commits into
masterfrom
artonge/fix/use_sha256_for_arguments_hash_forbg_jobs
Sep 5, 2024
Merged

fix: Use sha256 to hash arguments of background jobs#47769
sorbaugh merged 2 commits into
masterfrom
artonge/fix/use_sha256_for_arguments_hash_forbg_jobs

Conversation

@artonge

@artongeartonge commented Sep 5, 2024

Copy link
Copy Markdown
Collaborator

As we are using this hash as ID, it makes it more reliable than the current md5 hash we are using.

@artongeartonge added enhancement 3. to review Waiting for reviews php Pull requests that update Php code labels Sep 5, 2024
@artongeartonge added this to the Nextcloud 31 milestone Sep 5, 2024
@artongeartonge self-assigned this Sep 5, 2024
@artonge

Copy link
Copy Markdown
CollaboratorAuthor

/backport to stable30

@artonge

Copy link
Copy Markdown
CollaboratorAuthor

/backport to stable29

@artonge

Copy link
Copy Markdown
CollaboratorAuthor

/backport to stable28

@artonge
artongeforce-pushed the artonge/fix/use_sha256_for_arguments_hash_forbg_jobs branch from b09b8d1 to 0460f00CompareSeptember 5, 2024 11:41
@artonge
artongeforce-pushed the artonge/fix/use_sha256_for_arguments_hash_forbg_jobs branch from 0460f00 to dc2d4d6CompareSeptember 5, 2024 12:46
This is to prevent collision as we are sometime hashing user input, yet using that hash to target the background job in the database.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge
artongeforce-pushed the artonge/fix/use_sha256_for_arguments_hash_forbg_jobs branch from dc2d4d6 to dbf56b6CompareSeptember 5, 2024 13:37
@sorbaugh
sorbaugh merged commit a933ba1 into masterSep 5, 2024
@sorbaugh
sorbaugh deleted the artonge/fix/use_sha256_for_arguments_hash_forbg_jobs branch September 5, 2024 15:53
kesselb added a commit that referenced this pull request Sep 12, 2024
Follow-up for #47769
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@skjnldsvskjnldsv mentioned this pull request Jan 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancementphpPull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@artonge@AndyScherzinger@provokateurin@sorbaugh