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/hosts-file-updater: Synchronizes managed host records into container hosts files

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
internal/metadata
internal/metadata
 
 
scripts
scripts
 
 
updater
updater
 
 
.dockerignore
.dockerignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.trivyignore
.trivyignore
 
 
COMPATIBILITY.md
COMPATIBILITY.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
NOTICE
NOTICE
 
 
ORIGIN.md
ORIGIN.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
UNOFFICIAL_MAINTENANCE_FORK.md
UNOFFICIAL_MAINTENANCE_FORK.md
 
 
go.mod
go.mod
 
 
main.go
main.go
 
 
main_test.go
main_test.go
 
 
ubuntu-security-packages.lock
ubuntu-security-packages.lock
 
 

Repository files navigation

PastureStack Hosts File Updater

Linux runtime v0.0.5 consumes verified Ubuntu security backports without adding packages or changing the existing coreutils provider.

The runtime recipe applies the qualified Ubuntu 26.04 backport bundle only to already-installed packages and preserves the selected coreutils provider. The published v0.0.5 image passed the immutable bundle and final-image checks; see the release evidence. Bundle manifests, qualification, exact-version OpenVEX, source inputs and install/verify receipts are retained under /usr/share/pasturestack/security/ubuntu-backports/; raw scan evidence and the existing full-severity release policy remain required.

hosts-file-updater populates a managed container's /etc/hosts file from a legacy metadata service. This repository is maintained by the PastureStack community as a compatibility project.

Independent Community Project

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/etc-host-updater. 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.

Third-party names and marks remain the property of their respective owners. See ORIGIN.md, COMPATIBILITY.md, and the unchanged NOTICE for provenance and compatibility details.

Names and Compatibility

The preferred executable is hosts-file-updater. Builds also provide an etc-host-updater executable alias because existing catalog templates invoke that exact legacy command.

The default metadata base URL remains:

http://metadata/2015-12-19

Use --metadata-url to point a development or isolated deployment at a mock service without changing the legacy default:

./bin/hosts-file-updater \
  --metadata-url http://127.0.0.1:18080/2015-12-19

The service polls /version, reads /hosts, validates hostnames and agent IP addresses, and writes the resulting host entries to /etc/hosts.

Build

Build the preferred executable and compatibility alias on Linux:

./scripts/build

The outputs are:

bin/hosts-file-updater
bin/etc-host-updater -> hosts-file-updater

The published container image coordinate is:

ghcr.io/pasturestack/hosts-file-updater:v0.0.5

Use the numeric image tag above; the metadata and compatibility-command contracts are unchanged.

Safe Quick Test

The test suite uses an in-process mock metadata server and a temporary hosts file. It does not write the development machine's /etc/hosts:

go test ./...

Production Runtime Warning

Normal service execution rewrites /etc/hosts and therefore intentionally runs as root in the legacy sidekick deployment model. Do not run the service directly on a development host. Test it in an isolated container or VM, and read SECURITY.md before deployment.

License and Original Attribution

The project remains licensed under the Apache License, Version 2.0. The existing LICENSE and NOTICE files are preserved.

PastureStack's later modifications do not remove or replace the original authors' copyright, attribution, or project history. Exact legal attribution is preserved in NOTICE and ORIGIN.md.

October 2026 security maintenance

Maintained Go builds select the patched Go 1.27.3 compiler without raising the existing Go language requirement. Ubuntu build/runtime stages apply the checksum-pinned ca-certificates 20260816ubuntu0.26.04.1 security package after their frozen APT baseline; the final trust store and installed version are verified. Release artifacts must pass the repository's existing checks before publication.

Full-severity release policy

Release verification retains the complete runtime vulnerability report. Every finding with an official fix blocks release, regardless of severity. Unknown findings block unless a separately reviewed, exact not-affected statement is proved by the actual product dependency graph. LOW/MEDIUM findings without an official fix require the repository's exact CVE/package/version/PURL review ledger; new or changed findings fail closed. Each candidate must pass this policy against its exact image and package versions.

About

Synchronizes managed host records into container hosts files

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.