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
Archive repository #1477
Archive repository #1477
Conversation
3ce0a83
to
9bd881a
Compare
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.
The Heading for the repository action zone "Umbenennen und Löschen" doesn't match anymore. Seems like we should return to "Gefahrenzone".
scm-core/src/main/java/sonia/scm/repository/EventDrivenRepositoryArchiveCheck.java
Show resolved
Hide resolved
scm-core/src/main/java/sonia/scm/repository/PermissionProvider.java
Outdated
Show resolved
Hide resolved
scm-core/src/main/java/sonia/scm/repository/EventDrivenRepositoryArchiveCheck.java
Show resolved
Hide resolved
scm-core/src/main/java/sonia/scm/repository/RepositoryArchivedCheck.java
Show resolved
Hide resolved
scm-core/src/main/java/sonia/scm/repository/RepositoryManager.java
Outdated
Show resolved
Hide resolved
scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java
Outdated
Show resolved
Hide resolved
scm-webapp/src/main/java/sonia/scm/security/SystemRepositoryPermissionProvider.java
Outdated
Show resolved
Hide resolved
Please mind the sonarcloud findings |
…cm-manager into feature/archive_repository
Kudos, SonarCloud Quality Gate passed! 0 Bugs 68.0% Coverage The version of Java (1.8.0_275) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 11. |
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477) Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477) Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477) Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477) Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Proposed changes
This adds a flag "archived" to repositories. Repositories marked with this can no longer be modified in any way. To do this, we switch to a new version of Shiro Static Permissions (sdorra/shiro-static-permissions#4) and specify a permission guard to check for every permission request, whether the repository in question is archived or not. Further we implement checks in stores and other activies so that no writing request may be executed by mistake.
Your checklist for this pull request
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Checklist for branch merge request (not required for forks)