Skip to content

Commit

Permalink
Folders being mounted in containers will be precreated to avoid them …
Browse files Browse the repository at this point in the history
…being owned by root.
  • Loading branch information
Vincent Wilms committed Dec 20, 2024
1 parent 6cae656 commit e10e511
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v2.0.0-beta.37 - 2024-12-20
- Folders being mounted in containers will be precreated to avoid them being owned by root.

## v2.0.0-beta.36 - 2024-12-20
- Fixed incorrect delete pipeline API parameter

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ WORKDIR /app
COPY app .

USER app
RUN mkdir -p /home/app/.local/share
ENTRYPOINT ["./Nexus"]
4 changes: 2 additions & 2 deletions src/Nexus/API/v1/CatalogsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public async Task<ActionResult<CatalogInfo[]>> GetChildCatalogInfosAsync(
var isReleased = childContainer.Owner is null ||
childContainer.IsReleasable && Regex.IsMatch(id, childContainer.Pipeline.ReleasePattern ?? "");

var isVisible =
isReadable || Regex.IsMatch(id, childContainer.Pipeline.VisibilityPattern ?? "");
var isVisible = isReadable ||
Regex.IsMatch(id, childContainer.Pipeline.VisibilityPattern ?? "");

var isOwner = childContainer.Owner?.FindFirstValue(Claims.Subject) == User.FindFirstValue(Claims.Subject);
var packageReferenceIds = childContainer.PackageReferenceIds;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.0",
"suffix": "beta.36"
"suffix": "beta.37"
}

0 comments on commit e10e511

Please sign in to comment.