GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PastureStack/flat-cni-ipam: Flat-network CNI IPAM plugin for PastureStack-compatible environments.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
LICENSES
LICENSES
 
 
ipfinder/metadata
ipfinder/metadata
 
 
scripts
scripts
 
 
testdata
testdata
 
 
.dockerignore
.dockerignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
COMPATIBILITY.md
COMPATIBILITY.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
ORIGIN.md
ORIGIN.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
config.go
config.go
 
 
config_test.go
config_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
main_test.go
main_test.go
 
 

Repository files navigation

Flat CNI IPAM

Current source builds use Go 1.27.3 while the Go language minimum remains 1.26.0. These source inputs take effect in newly built artifacts; existing published release coordinates below describe their original artifacts.

flat-cni-ipam is a Linux CNI IPAM plugin for assigning a control-plane-provided IPv4 address on a flat network and returning the route required to reach the platform metadata endpoint.

PastureStack is an independent community effort to preserve, audit, and modernize the Rancher 1.6 ecosystem. It is not affiliated with or endorsed by Rancher Labs or SUSE.

Upstream: rancher/rancher-flat-ipam. This GitHub fork retains the upstream Git history, authorship, dates, and license notices unchanged; PastureStack maintenance is consolidated into one commit after the preserved upstream boundary.

The current public compatibility release is v0.1.6, built with Go 1.27.3. Do not use the older v0.1.3 binary in new deployments: it was compiled with Go 1.26.5, which predates security fixes in Go 1.26.6. Verify the release SHA256SUMS after download. This repository does not publish a mutable latest tag.

POC scope

  • CNI versions 0.1.0 through 1.1.0;
  • an IPv4 address supplied through CNI_ARGS, with metadata lookup as a fallback;
  • a prefix supplied by the address, subnetPrefixSize, or bridgeSubnet;
  • deterministic bridge gateway selection within bridgeSubnet;
  • a configurable IPv4 metadata route, lookup timeout, and polling interval;
  • metadata requests limited to the reserved platform link-local addresses 169.254.169.250 and 169.254.169.251, the fixed /2015-12-19 endpoint, and standard HTTP or HTTPS ports;
  • an 8 MiB metadata response limit and an optional HTTPS CA bundle read only from /etc/pasturestack/certs.

The plugin has no user interface or language catalog, so localization is not applicable. IPv6 and privileged network-namespace behavior are outside this POC and remain explicit follow-up gates.

Build and test

go test ./...
go vet ./...
go mod verify
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -buildvcs=false -o bin/flat-cni-ipam .

Configuration

{
  "cniVersion": "1.1.0",
  "name": "pasture-flat-network",
  "bridge": "pasture0",
  "bridgeSubnet": "10.42.0.1/16",
  "ipam": {
    "type": "flat-cni-ipam",
    "metadataURL": "http://metadata/2015-12-19",
    "metadataAddress": "169.254.169.250",
    "lookupTimeout": "2m",
    "pollInterval": "500ms"
  }
}

CNI_ARGS may supply IPAddress and PlatformContainerUUID. When bridgeSubnet uses its network address, such as 192.0.2.0/24, the plugin prefers the conventional first usable bridge address if that address is present. This keeps metadata routing deterministic after a restart even when a preconfigured flat bridge also carries a separate host address. An explicitly configured host address in bridgeSubnet still takes precedence; otherwise an ambiguous multi-address bridge is rejected. PLATFORM_METADATA_URL, PLATFORM_METADATA_ADDRESS, and PLATFORM_CA_ROOT override their corresponding runtime settings, but they remain subject to the same destination and managed-certificate restrictions. Optional file logging is restricted to /var/log/pasturestack while the existing /var/log/pasturestack-cni.log deployment path remains supported.

License and provenance

The root Apache-2.0 license remains unchanged. Existing history and attribution are retained; see ORIGIN.md, THIRD_PARTY_NOTICES.md, and LICENSE.

About

Flat-network CNI IPAM plugin for PastureStack-compatible environments.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.