Skip to content

Network policy response is rejected by fountain v0.21.0: a limited Environment cannot provision #26

Closed
INTENTIUS/fountain-ops
#124

Description

@lex00

Found while running fountain-ops#121's acceptance on k3d: fountain v0.21.0 (ghcr.io/managoat/fountain:v0.21.0) against spritzer 0.6.0 in container mode.

An Environment with networking_type: limited fails provisioning at fountain's network stage. It fails with an empty allowed_hosts, and it fails with allowed_hosts: ["registry.npmjs.org"]:

stage network  started  {"type":"limited","hosts":0}
stage network  failed   {"reason":"{:invalid, {:http, 200, %{\"rules\" => [%{\"action\" => \"deny\", \"domain\" => \"*\"}]}}}"}
stage provision failed  {"reason":"{:network_policy, {:invalid, {:http, 200, %{\"rules\" => [...]}}}}"}

spritzer answers the network policy call with 200 and a rules body, and fountain's Sprites client (managoat_sandbox ~> 0.5.0) classifies that response as :invalid. networking_type: unrestricted provisions, and a turn then completes on the sprite pod.

This matters for studio: chant's new Box composite (INTENTIUS/chant#2706) defaults to limited with an empty allowlist, so a Box cannot provision on spritzer until the two sides agree on the response shape. I have not checked which side is off from the real Sprites API.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions