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

Add migration to populate new AUTHENTICATIONREQUIRED column #3247

Merged

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Nov 28, 2023

Description

Adds migration to populate new AUTHENTICATIONREQUIRED column.

Only affects internal projects with credentials. This is a follow-up to #2870, which originally added the new column in order to support authentication for non-internal repositories.

Addressed Issue

#2870

Additional Details

N/A

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@nscuro nscuro added this to the 4.10 milestone Nov 28, 2023
Only affects internal projects with credentials. This is a follow-up to DependencyTrack#2870, which originally added the new column in order to support authentication for non-internal repositories.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro force-pushed the authenticationrequired-migration branch from 4659302 to 0e06041 Compare November 28, 2023 22:36
The migration now takes care of marking previously-internal repos with credentials as "authentication required".

Migration tested with H2, MSSQL, and PostgreSQL.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro marked this pull request as ready for review November 30, 2023 18:48
@nscuro nscuro merged commit 47edbd7 into DependencyTrack:master Nov 30, 2023
7 checks passed
@nscuro nscuro deleted the authenticationrequired-migration branch November 30, 2023 19:38
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant