Skip to content

fix: pre-release findings in code, chart and CI #133

Closed

Description

@uniqueg

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?

  1. .../permissions/groups without an entitlement: PUT/DELETE /services/{id}/permissions/groups matches {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 ID groups (e.g. not: {enum: [groups]} on the parameter, or a 400/404 in the handler), with tests.
  2. Kubernetes service links: a Service named mongo in the namespace makes Kubernetes inject MONGO_PORT=tcp://…, which FOCA reads, so the app crash-loops with an invalid MongoDB URI. Set enableServiceLinks: false in both pod specs of the chart.
  3. Misleading keep_group_subjects warning in Docker Compose: FOCA warns on every start because config.dev.yaml has no group_mapping. Set group_mapping: {} there (or otherwise silence it as intended).
  4. Dependabot: it bumps the FOCA base image (Dockerfile) and the foca pin (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 of elixircloud/foca in the docker entry; FOCA minors are bumped by hand in both files.
  5. 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 explicit version:).
  6. 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/groups returns 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_subjects warning.
  • Dependabot no longer proposes FOCA minor/major base image bumps.
  • CI and the release workflow use a pinned Helm version.
  • pre-commit runs actionlint.

Activity

  1. added
    priority: high
    status: in progress
    type: bug
    workload: hours
    on Oct 21, 2026
  2. removed
    status: in progress
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions