Repository navigation
Closed
Labels
priority: highHigh prioritytype: bugSomething isn't workingworkload: hoursLikely takes hours to resolve
Description
Why?
The pre-release review of v0.3.0 (changes since 98771b3) found no high or medium issues, but a few small code, chart and CI problems worth fixing before the release.
How?
.../permissions/groupswithout an entitlement:PUT/DELETE /services/{id}/permissions/groupsmatches{userId}=groups, grants or revokes a role of a user named "groups" with 200, and that stray owner then satisfies the last-owner check. Reject the user IDgroups(e.g.not: {enum: [groups]}on the parameter, or a 400/404 in the handler), with tests.- Kubernetes service links: a Service named
mongoin the namespace makes Kubernetes injectMONGO_PORT=tcp://…, which FOCA reads, so the app crash-loops with an invalid MongoDB URI. SetenableServiceLinks: falsein both pod specs of the chart. - Misleading
keep_group_subjectswarning in Docker Compose: FOCA warns on every start becauseconfig.dev.yamlhas nogroup_mapping. Setgroup_mapping: {}there (or otherwise silence it as intended). - Dependabot: it bumps the FOCA base image (
Dockerfile) and thefocapin (requirements.txt) separately, so a base image bump to a new FOCA minor would reinstall the old FOCA on top. Ignore minor and major updates ofelixircloud/focain the docker entry; FOCA minors are bumped by hand in both files. - Helm in CI and the release workflow: both use whatever Helm the runner image has. Install a pinned version (
azure/setup-helm, pinned by SHA, with an explicitversion:). - actionlint: add it to pre-commit (it would have caught workflow mistakes in ci: mark releases before 1.0.0 as prereleases #126's version logic).
Acceptance criteria
-
PUT/DELETE /services/{id}/permissions/groupsreturns an error and stores nothing; tests cover it. - The chart's pods don't get service-link variables.
- Docker Compose starts without the
keep_group_subjectswarning. - Dependabot no longer proposes FOCA minor/major base image bumps.
- CI and the release workflow use a pinned Helm version.
- pre-commit runs actionlint.
Metadata
Metadata
Assignees
Labels
priority: highHigh prioritytype: bugSomething isn't workingworkload: hoursLikely takes hours to resolve
Activity