Skip to content

chore: bump Go to 1.26.4 - #11

Merged
scttfrdmn merged 1 commit into
mainfrom
chore/go-1.26.4
Jun 8, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
chore/go-1.26.4

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Aligns ground's toolchain (was 1.26.2) with the patched stdlib go1.26.4, which fixes the GO-2026-* standard-library advisories (attest#101 hit these in its govulncheck scan). Keeps the suite's toolchain consistent and pre-empts the same advisories surfacing here.

Verified locally on go1.26.4: govulncheck 0 vulns, build ok, tests ok.

Aligns the toolchain with the patched stdlib (go1.26.4 / go1.25.11) that
fixes the GO-2026-* advisories. ground was on 1.26.2, below the fix line,
so a future govulncheck scan would flag the same stdlib issues attest hit.

  govulncheck ./...  ->  0 vulnerabilities
  go build ./...     ->  ok
  go test ./...      ->  ok
@scttfrdmn
scttfrdmn merged commit cdcd6c4 into main Jun 8, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the chore/go-1.26.4 branch June 8, 2026 19:58
scttfrdmn added a commit that referenced this pull request Jun 12, 2026
…nd#10) (#22)

The coarse network/posture half of compute-to-data (#11 Tier 2, ADR 0002
Decision 3; pairs with attest#100's dataset-scoped Cedar gate).

- config NetworkConfig.data_endpoints: declare external research-data endpoints
  (name, url, data_class, sre_types, authorized_ous) the SRE may reach in-place.
- policies/data_endpoint_access_scp.json: deny the in-place data-access actions
  (s3:GetObject/ListBucket, sagemaker:Create{Training,Processing}Job) unless the
  principal carries an attest:data-classes posture tag. Null check, not
  StringNotEquals — attest:data-classes is multi-valued (e.g. 'CUI,GENOMIC'), so
  an equality test would wrongly deny a legitimately multi-class principal.
- export-metadata: emit declared endpoints in ground-meta.json for attest init.
- tests: TestDataEndpointAccessSCPRequiresDataClassPosture (Deny-only, posture
  condition present, egress actions covered); ground.example.yaml shows dbGaP.

Two layers mirror AMI gating (#13): coarse SCP outer gate + fine
dataset-scoped Cedar PDP (attest#100). HONEST SCOPE: the VPC-routing half —
internal/stack/network is still a stub — is a follow-up; this is the policy +
config + metadata surface, not the routing implementation.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 12, 2026
Designs the internal/stack/network stub before building it (the routing half of
ground#10 deferred from ground#22). Decides:

- hub-and-spoke: shared hub holds centralized org-conditioned interface endpoints
  (cost: one set shared via TGW, not per-spoke); per-tier spoke VPCs; segregated
  TGW route tables make ground:tier / attest:data-classes isolation a routing fact
  (a SensitiveResearch spoke physically can't route to Research).
- deterministic CIDR carve from NetworkConfig.CIDRBlock (pure, unit-testable; never
  renumbers an existing spoke).
- compute-to-data egress per DataEndpoint: S3 gateway endpoint for dbGaP, PrivateLink/
  peering for AnVIL/Terra, NEVER a public IGW for controlled data (declaration+warning
  instead). The network path is the third gate beside the SCP and Cedar.

Establishes ground's own docs/adr (distinct from the umbrella's suite-wide ADRs).
Status: Proposed; 4-step build order, each its own PR. Pairs with attest#100 +
suite ADR 0002.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 12, 2026
…10) (#24)

Build step 1 of ground's network foundation (docs/adr/0001-network-foundation.md):
a pure function from the supernet + ordered tier list to a hub /16 (index 0) plus
one /16 per spoke tier, each split into per-AZ /20 subnets.

- Allocation is a stable function of (supernet, tier index) — no time, no
  randomness, no AWS. Re-running ground deploy never renumbers an existing spoke
  (renumbering is destructive); guarded by TestAllocate_AppendTierDoesNotRenumber.
- net/netip-based subnet carving (nthSubnet); /16 VPCs, /20 per-AZ subnets (16
  AZs max per /16).
- validates supernet size (holds 1 hub + N spokes), AZ count (1..16), rejects
  empty/duplicate tier names, malformed/oversized supernet.
- unit-tested like the SCPs (pure, no live calls): exact carve, determinism,
  no-renumber, small /14 supernet, hub-only, all error paths.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 12, 2026
…0) (#25)

Build step 2 of docs/adr/0001-network-foundation.md: the TransitGateway:false
single-VPC template the hub-and-spoke expansion (step 3) builds on.

- network.Stack.Template(): private-only VPC (no IGW) on the deterministic hub
  /16; one private /20 subnet per AZ (3 default, region-portable via Fn::GetAZs);
  gateway VPC endpoints for S3/DynamoDB (route-table, no hourly cost); interface
  endpoints for the rest of NetworkConfig.VPCEndpoints, each with an org-conditioned
  policy (allow same-org aws:PrincipalOrgID vs a deploy-time OrgId param, deny
  external — mirrors policies/vpc_endpoint_policy.json; OrgId resolved like the
  accounts stack's OrgRootId).
- New(cfg, org): org supplies region (endpoint service names are region-qualified)
  + the org-id anchor. Wired into ground deploy --dry-run.
- Built as cfn.Template (Go maps -> JSON -> CloudFormation SDK) like the other four
  stacks. Native CloudFormation is ground's deploy path; CDK stays an optional
  --output cdk export, not a per-stack dependency.
- template-as-data tests: VPC CIDR (hub /16), private subnets + no-IGW, gateway-vs-
  interface split, org-scoped policy (Ref OrgId, Allow+Deny), determinism, default
  CIDR, OrgId param, outputs.

Live-deploy numbered-phase wiring + hub-and-spoke/TGW (step 3) are follow-ups.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 13, 2026
…tep 3) (#26)

Build step 3 of docs/adr/0001-network-foundation.md: the topology where tier
isolation becomes a routing fact.

When network.transit_gateway is set and org.workload_ous lists tiers, Template()
builds a shared hub VPC (centralized gateway + org-conditioned interface
endpoints), one private spoke VPC per tier, and a Transit Gateway joining them
with SEGREGATED per-tier route tables: a spoke's TGW route table routes to the hub
(for shared endpoints) but NOT to sibling spokes — cross-tier traffic has no path.
The TGW disables default route-table association/propagation so a new attachment
can't silently join a shared table and defeat the isolation.

- singleVPCTemplate (step 2) unchanged + still the degrade path (TGW off or no
  tiers); Template() dispatches on config.
- addVPC/addTGWAttachment/tgwRouteTable/tgwAssociation helpers; spoke tiers from
  org.WorkloadOUs (config-driven, deterministic via the step-1 allocator).
- tests: topology shape (hub+3 spokes, 4 attachments, 4 route tables, no IGW),
  default-table-disable guard, EndpointsOnlyOnHub, Deterministic, degrade-without-
  tiers, and the load-bearing NoCrossSpokeRoutes invariant.

Endpoints centralize on the hub (shared via TGW) — cost decision per the ADR.
Verified via ground deploy --dry-run.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 13, 2026
… 4, ground#10) (#27)

The final piece of ground#10 and the compute-to-data chain. For each declared
network.data_endpoints entry, the hub-and-spoke template renders a hub-side scoped
egress path; the mechanism is inferred from the URL:

- S3 host (dbGaP) -> S3 gateway endpoint on the hub route table, reusing the
  foundation S3 endpoint if one exists (a route table allows only one).
- com.amazonaws.* PrivateLink (AnVIL/Terra) -> interface endpoint.
- any other (public) host -> NO route, only a ground-meta/output declaration +
  warning. ground refuses to route controlled data over a public IGW.

This is the network gate that joins the SCP (data_endpoint_access_scp) and attest's
dataset-scoped Cedar policy (attest#100): who-may-call, who-may-read-which-dataset,
and now is-there-a-scoped-backbone-path.

Tests: classifyEndpoint (S3 / PrivateLink / public), all three render paths, and
the foundation-S3-reuse dedup. Verified via ground deploy --dry-run.

Refs: #11, #10
scttfrdmn added a commit that referenced this pull request Jun 13, 2026
…ses (#28)

The deploy-wiring follow-up from ADR 0001. The network foundation was dry-run-
visible only, and the live deploy hardcoded brittle phase numbering ([1/2] then
[3/4]/[4/4] across an ad-hoc block + a loop).

- All five stacks (logging -> security -> accounts -> identity -> network) now
  deploy through one ordered loop with consistent [i/5] numbering. Order matters:
  network rides on the org structure (its endpoint policy needs the discovered
  OrgId).
- fetchOrgID (organizations:DescribeOrganization) fills the network stack's OrgId
  parameter at deploy time, mirroring how the accounts stack fills OrgRootId — so
  the org-conditioned VPC endpoints deploy without a manual parameter.

No behavior change to the templates; this is the orchestration that makes the
network stack actually deploy. Full suite green; dry-run lists all five stacks.

Refs: #11, #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant