Changelog
Version history and release notes for epack CLI and specification.
Every project gets a make check that runs what CI runs from a fresh clone, epack builds with Go 1.27.4 and runs govulncheck, and a tool that fails says so with its exit code.
Build
make checkin a project fromepack sdk new, and in epack itself, runs lint, the repository'sscripts/check-*.sh, the tests, govulncheck, conformance, and for a collector the trace map check. Every target runs against the epack versiongo.modpins rather than ago.work, and undergo.mod'stoolchainline, so a newer local Go release changes nothing.make lintruns golangci-lint withgo runinstead of an install script, andmake testtakesTEST_TIMEOUT.- Tools, remotes and utilities get a Makefile for the first time, and their CI a govulncheck job, pinned actions and no lint cache.
- epack's own tests run the components build only on the packages whose build differs under the tag, and fuzzing moves to a nightly workflow, so a cold
make checktakes about three minutes.
SDK
- A tool built on the SDK exits 1 when its handler fails or when it requires a pack and gets none, as C-021 says, and never runs its handler without the pack it requires.
Conformance
- The harness builds a fixture pack for a tool whose capabilities require one and hands it to every run. It checks the pack path and digest the tool echoes (TOOL-014, TOOL-015) and that the pack is unchanged afterwards (TOOL-060, TOOL-061), and a scaffolded tool passes its own conformance.
Toolchain
- epack and the projects
epack sdk newscaffolds are built with Go 1.27.4, which fixes GO-2026-6859 innet/http, and require Go 1.27. The move brings sigstore-go v1.4.0, rekor v1.5.5 and golang.org/x/crypto v0.59.0, which drop theopenpgppackage (GO-2026-5932), and golang.org/x/net v0.62.0 (GO-2026-6866, GO-2026-6860). Lint moves to golangci-lint v2.15.0, built with Go 1.27. Every component inherits the Go requirement at its next epack bump.
Every rule a collector follows names the check that enforces it, the test kit runs every check unless a dated waiver says otherwise, and a pack's build file says how the collector was tested.
Rules
docs/component-rules.mdgains an Enforced by column on the common and collector rules, naming the test kit check, conformance rule, or SDK behaviour behind each, or marking it backlog with one line on the check to build. Sections 2.8 to 2.11 give the kit's checks their rules, COL-081 to COL-114.TestRulesNameTheirChecksreads the document and fails when a MUST rule names no check and carries no backlog entry, when a kit check is named against no rule, or when a name matches nothing in the code.
SDK
Suite.WaiversreplacesSkipChecks,SkipFaults,Ignore,Insensitive,Capped,Ordered, andIgnoredFields. A waiver names the check or softening, its subject, a reason, and an expiry at most a year out; from that day the kit runs the check again and reports the waiver. A suite that still sets one of the old fields fails with the waiver to add.- The
field_faultscheck runs in every suite, and a suite that lists noOperationsfails the coverage check. - Each suite's trace carries the operations it declares, its scenario and recording counts, and its waivers.
epack sdk mapwrites them into the trace map'ssuites, the build file carries them, and--capabilitieslists them, so a reader learns how a collector was tested without running it.
Conformance
- The harness tests a collector's
--versionand--capabilities(COL-060 to COL-063) and reads the suites from the capabilities, so the checks run in CI with canary secrets. It fails a collector whose suites are not on record or declare no operations (COL-110), one no suite of which replays a recording of the test account (COL-113), and a waiver with no reason, no date, or a lapsed date (COL-114). - A collector with no sandbox yet waives the recording with
WaiveRecording, the sandbox it stands for, a reason, and an expiry. COL-113 then passes and reports the waiver until it lapses.
Fixes
- The scaffold's example collector read a factor with no status as MFA off. Its client now rejects such an answer as
invalid_response, so the value is left out with a gap, and its suite declares the users and factors lists as populations.
epack sdk surface fetches the vendor's API description itself, and collector CI runs the surface check.
SDK
- An entry of
docs/surface.yamlcan name the description'surl, pinned to a revision and checked against itssha256.epack sdk surfacefetches it into epack's cache, so CI needs no committed copy. Aurlending in/withfilesfetches a directory description. - The reusable collector CI workflow gains a
surfacejob that runs the check for a collector with adocs/surface.yaml, throughmake surfacewhen the Makefile has the target and at the go.mod epack version otherwise.
epack sdk surface checks a collector against several API descriptions at once, as Microsoft Graph and the Azure resource providers need.
SDK
--specgoes once per entry ofspecsindocs/surface.yaml, each pinned by its own digest, and a description may be a directory of files. A Swagger 2 description'shostandbasePathare read like an OpenAPI 3 server, and a request on a host the description does not name, or outside its base paths, matches nothing.- A spanning parameter such as Azure's
{resourceUri}or{scope}may sit anywhere in a template. A verdict item may select bypath_contains, be limited to named descriptions within, and carry aprioritythat wins over more specific items; a longer path prefix wins over a shorter one, and two items covering an operation equally is a problem. - The coverage reference lists each description and groups Azure operations by resource provider.
epack sdk surface checks what a collector reads against the vendor's API description, and renders the collector's Not Collected section and a coverage reference from reviewed verdicts.
SDK
epack sdk surfacematches each request in a collector's recordings to an operation of the vendor's OpenAPI description. Every read operation in scope that the recordings never call needs a verdict indocs/surface.yaml: not collected, with the sentence the documentation shows, or irrelevant, with the reason. An item covers operations by name, tag, category or path prefix, and a named operation wins over a broad selector.--writerenders two documents from the verdicts: the Not Collected section ofdocs/overview.md, kept to the headlines a buyer needs, anddocs/coverage.md, which leads with what the collector reads by area and holds every verdict.--checkfails when either is stale, when an operation has no verdict, when a verdict names an operation the recordings call or the description lacks, or when a recorded request is neither described nor acknowledged.spec.sha256pins the description, so a refreshed one fails the check until its new operations are reviewed.readsdeclares calls the collector makes only when the tenant has something the sandbox lacks, andunmatchedacknowledges recorded calls outside the description, such as a token endpoint or a GraphQL query.safeyaml.UnmarshalDocumentparses a large document a developer names on the command line, such as an API description, past the alias bomb guard's absolute cap while keeping the alias-to-anchor ratio check.
The recording scrubber replaces phone numbers and the account inside IAM unique IDs, and roster.Derive lists MX records by priority.
Fixes
- The scrubber replaces phone numbers in a recording with fakes such as
555-0100. It reads JSON members named likemobilePhone,primaryPhone,faxNumber,phoneorphoneNumber, and lists named likebusinessPhones,phonesorphoneNumbers. Values with the same digits get the same fake, and a null, an empty string and a list's length stay as they are. The scrub check flags a phone number left in those places, so a recording made before this release that holds one failsCheckuntil it is recorded again - An IAM unique ID, such as a role's
AROAID, encodes its account ID, so a recording whose account ID was scrubbed still held it in its role IDs. WhenScrubRules.Identifiersreplaces a 12-digit account ID with a 12-digit fake, the scrubber encodes each unique ID of that account again with the fake account and keeps the rest of the ID. The scrub check flags a unique ID that still encodes the account. Unique IDs of other accounts stay as they are roster.Derivelists a domain's MX records by priority, as a resolver answers them and the email-dns collector lists them. Records of equal priority keep the roster's order. They used to come in the roster's order
A roster can describe a hosted service's workspace, such as an organization on a compute platform or a database service.
SDK
- A roster's
workspaceblock holds the workspace's name and system type, whether SSO and its own MFA requirement are on, its SCIM provisioning, its IP allow list and its machine credentials.roster.Derivegivesaccess-posturevalues for it - The workspace's members are the roster's enabled people, and its admins are those whose roles map to admin in
terms.roles.terms.workspace_credential_permissionsmaps each credential's permissions to full, write or read
A scaffolded tool, remote or utility creates its GitHub release once, recordings keep OData's control information keys, and roster.Derive gives privileged_users_present when an admin signs in through another identity provider.
Fixes
- The release workflow
epack sdk newwrites for a tool, remote or utility creates the GitHub release once, in its release job. Each platform's SLSA build created it too, so builds that finished together failed withalready_existsor left two releases for one tag. The release still carries each.intoto.jsonlnext to its.sigstore.jsoncopy. Collector scaffolds already worked this way - A recording keeps OData's control information keys, such as
inheritsPermissionsFrom@odata.contextormembers@odata.nextLink. The scrubber read them as email addresses and replaced them with fakes, which broke the structure of Microsoft Graph recordings. An address at a domain such asodata.orgis still replaced roster.Derivesetsidp-posture'sprivileged_users_presentfrom the admin count. It used to come only with the admin MFA percentages, which v0.11.1 leaves out when an admin hassigns_in_through, so a roster with such an admin gave no value for it
Every field of the normalized schemas now has a written definition, and roster.Derive follows two of them. The Normalized Fields reference lists each definition with the code that computes it.
Schemas
- The
endpoint-posturedevice rows, thetlscertificate details, and every schema'sschema_versionandcollected_atsay what they hold. Theaccess-postureandvuln-scanningcounts that only repeated their label say what they count - The definitions state which roles make a user privileged or an admin, which accounts are members or credentials, that network ACLs don't change the SSH and RDP values, that a remembered device doesn't make a sign-in uncovered, and how an unknown device reading affects an endpoint percentage
SDK
- A roster account with
signs_in_throughsigns in through another identity provider, soroster.Deriveleaves out the MFA values over users, and over admins when one of them does - A
vcsblock'sbase_permissionis the permission every member gets. When it maps to admin interms.roles, every member but no outside collaborator is an admin
A roster now gives a value for every normalized field, and the test kit can check a collector against a simulator built from it and against missing fields in the service's answers.
SDK
roster.Derivegives every field of the eight normalized schemas. New roster blocks describe a directory, cloud accounts, devices, scanners, repositories, TLS endpoints and mail domains, and avcsblock gives a code host's wholeaccess-postureartifactroster.Uncoveredlists the fields an artifact writes that a roster gives no value for, androster.Alignmatches list entries by the fields that identify themcollectortest/simulatebuilds a simulator of a service from a roster. Each answer is a copy of one from the test account's recording, and the harness fails on an answer the recording doesn't hold unless the simulator says why. It compares the collector's normalized values with the derived ones, and runs a matrix of roster variants and rules over random rostersSuite.FieldFaultsturns on thefield_faultscheck. Each field the collector reads is set to null, dropped, and emptied, and every number and boolean must keep its value or be left out with a gap.Suite.PopulationsandSuite.Omissionsdeclare the lists and fields whose change is a real answer- A roster's sign-in policies can name a
first_matchset and apriority, for a service that applies the first policy that matches a sign-in
Agent skill
- The building-epack-collectors skill records the test account before the output contract, turns on field faults, and runs each candidate against the test account with
epack shadowbefore it is tagged
The normalized schemas say more precisely what each field counts, and a roster can check a collector against those definitions.
Schemas
cloud-posturestorage hasnetwork_restricted_pct: the storage resources that refuse traffic from the public internet. Encryption and public access say what each countsidp-postureusers are enabled people in the organization, and privileged users hold a role that can change access, credentials or sign-in settings.mfa_requiredholds when enforced policies together require MFA for or block every sign-inaccess-posturemembers hold a role anywhere in the system, and admins can change access or any resource. SSH and RDP count a security group open with its rules applied as the cloud applies them
SDK
collectortest/rosterreads a tenant roster and derives the normalized values the definitions imply, to check a collector's output againstcollectortest.CompareResponsesreports where a simulator's responses differ from a recording
A collector can say what each run was pointed at, and a field gated to a higher level can stay required in its schema.
SDK
Recorder.Targetsdeclares a run's container and the resources it assessed, with how they were chosen. The collector result writes them astargets- The schema check skips a required property the schema places above the run's level, so a collector can gate an ID to
auditand keep it required - The collect protocol says which identifiers each level may hold
Each deprecated field says why it moved, so a profile editor can explain it beside a test.
Schemas
x-epack-replaced-byhas areason, one sentence written for someone editing a profile. Each block v0.10.0 moved out ofcloud-postureandvcs-posturehas one, and so do thecloudtrail_enabledandcloudtrail_multiregionaliases. A field with no reason of its own takes its block's
Fixes
- The v0.10.3 notes said a profile test could move to a field marked
sameas it is. That holds only within one schema. A test moved to another schema reads that schema's artifacts from every system, such as every system'saccess-posture, so it checks more than the old test did
Each deprecated field in the normalized schemas names the field that holds its value now, so a profile editor can say what to test instead.
Schemas
- Each deprecated field in
cloud-postureandvcs-posturehasx-epack-replaced-by, naming the schema and field that hold its value now.samemarks a new field that holds the same value, so a profile test can move to it as it is. It covers the blocks v0.10.0 moved, andcloud-posture'scloudtrail_enabledandcloudtrail_multiregionaliases - An account's
iamfields aren't markedsame, since their new fields inaccess-posturespan every account. With several accounts, a test that every account meets a bar isn't the same test as one on the total
A deprecated block is left out of the pack when the collect config key leaves out the kind it moved to.
SDK
Recorder.Movedrecords a value that sits in a block epack moved to another kind, such as a deprecated block written beside its new fields. Whencollectleaves that kind out,Emitremoves the value with anot_sharedgap, and drops the gaps inside it
Fixes
- A value
Recorder.Mirrorcopied from a kindcollectleaves out is removed when the collector never passed that kind toEmit. A collector that checksSelectedskips building such a kind, so the copy stayed in the pack
The blocks v0.10.0 moved out of cloud-posture and vcs-posture are back as deprecated fields, so profiles that read them keep grading the same. Three CLI fixes are included.
Schemas
cloud-posturedeclaresiam,vuln_scanning, andworkforce_sign_inagain, andvcs-posturedeclaresorg_securityandsecurity_features. Each is marked deprecated. They keep their v0.9.9 definitions, so they are written at the trust level. A later release removes them
Fixes
- In plain progress output, which CI uses, each status line names the collector that sent it. With collectors running in parallel, a line could carry the name of whichever collector started last
epack runnumbered collectors from 2, so the first of five showed as(2/5). They are numbered from 1 nowepack shadowis in the command listepackprints with no command. Without a collector name, it prints its usage and examples
A pack can leave out kinds of evidence with the new collect key, and epack shadow previews what a collector upgrade would change. Access and scanning evidence moves to two new normalized types, access-posture and vuln-scanning.
Collection
- A new reserved config key,
collect, lists the kinds of evidence a collector collects, such as[cloud-posture], at every level. A collector's own detailed file is the kinddetails. Without the key, a collector collects every kind its level allows, and a key that is not a list of kinds fails the run withconfig_invalid - Each kind
collectleaves out gets a gap with the new codenot_shared. It needs no fix and does not make a run partial. The collector result's newcollectobject records what the key listed, what it left out, and any listed kind the run never wrote - Every data artifact sits at
artifacts/<collector>.<kind>.json, such asartifacts/aws.cloud-posture.jsonandartifacts/aws.details.json.collectlists the detailed file asdetailsfor every collector. A run configured under another name writes under that name, so two copies of one collector in a pack no longer collide - The new gap code
unsupportedmarks a value the service does not report at all, such as a normalized field it has no data for. It needs no fix and does not make a run partial. The new gap codetoo_largemarks a value the collector's own read limit cut short, such as an audit log longer than the collector reads - The new gap code
not_readmarks a value the service reports but the collector does not read, such as a value behind a call the collector does not make. The publisher can add the read. Likeunsupported, it does not make a run partial x-epack-levelat a schema's root marks a whole artifact. A run below that level leaves the file out, along with the gaps inside it- Below the audit level, the collector result leaves out what grows with the account's size or names it, such as the tenant ID, call and retry counts, step times, and a gap's call number. At every level, operations gain
retried,status_codes, anderror_codes, and steps gainany_failed, so a trust result still says which calls failed or were retried - A collector's config is checked against its config schema before the collector runs. A value that does not match fails the run with
config_invalid, and the error gives the value's JSON pointer - The collector result lists the permission each operation needs, and a
permission_deniedgap names the missing permission - A gap or a run warning can carry advice, which is a fix, a note that no action is needed, or a choice to make. Run warnings appear in the result's new
warningslist
CLI
epack shadow <collector>previews what a new version of a collector would change before you upgrade. It runs the locked version, the candidate, and the locked version again, and treats a field that also differs between the two locked runs as noise. The candidate is a release (--version) or a local build (--binary), locked and verified in a throwaway project, so your lockfile does not change- The shadow report names changed fields by pattern, gaps by code and missing permission, and call counts by range. With a validate tool in
epack.yaml, it also lists each control whose result would change. The report holds no value from the account, so it is safe to share. At a terminal outside CI, the report shows the values behind each change, and--no-valueshides them.--valueswrites them to a private file - When a collector's
collectlist names a kind the run never wrote,epack collectandepack runprint a warning epack verify --insecure-skip-tlog, with--public-key, accepts a key signature that has no transparency log entry, such as one made withepack sign --no-tlog. Certificate signatures still need their entry
Normalized schemas
cloud-postureno longer hasaccounts[*].iam,accounts[*].vuln_scanning, orworkforce_sign_in.vcs-postureno longer hasorg_securityorsecurity_features. Their values are inaccess-postureandvuln-scanning- The SDK has a normalized schema for
evidencepack/access-posture@v1. A collector writes one for each system it reads, such as GitHub, AWS, or ClickHouse. It hassign_in,members,admins,root,credentials, andconnected_appssections, and asystem_typesuch ascode_hostorsaas - The SDK has a normalized schema for
evidencepack/vuln-scanning@v1. Each entry in itsscannerslist has one scanner's coverage and its open findings by severity - In
access-postureandvuln-scanning, the counts and the per-accountscopesare audit-level. The*_presentflags are written at every level - In
access-posture, a member or admin is local when they can sign in without SSO, even if their account is linked to SSO. Local and SSO members can overlap when the system does not require SSO - An
access-posturecredential is unrestricted when it has neither an IP limit nor a scope narrower than full access.write_access_credential_counthas anx-epack-goaloflower - With
scopes, a top-levelaccess-posturesign_invalue is false when any scope's value is false. Otherwise it is null when any scope's value is null, and true when every scope's value is true - In
vuln-scanning, a scanner turned on per resource, such as per repository, isenabledwhen it is on for at least one resource. Itscoverage_pctgives the share it covers - The SDK has a normalized schema for
evidencepack/endpoint-posture@v1, covering device management and endpoint protection endpoint-posturehas nopolicies,threat_events,device_actions,history, orinventories, and a device row has noprohibited_apps. A collector keeps these in its own fileendpoint-posture'sscope.discovery_completemay be null, so a collector that can't tell writes null with a gapendpoint-posturecounts use the same names as the other normalized schemas, sofleet.devices_countis nowfleet.device_countandpassing_devices_countis nowpassing_device_count. The JumpCloud collector writes the old names until it updates to this SDKidp-posture,vcs-posture, andcloud-posturepoint every percentage to the counts it is taken from. The counts are audit-level, and a present flag at every level says whether a population has any memberscloud-postureadds adatabaseobject,threat_detection.enabled,accounts_expected, andall_accounts_collected. An account no longer requiresaccount_id, which is audit-level- The normalized schemas do not declare
collected_at_level, andendpoint-posturedoes not allow it. A new scaffolded collector does not write it - A reader takes the level from the collector result's
run.level. For a result from an older collector, it falls back tocollected_at_level idp-postureacceptsjumpcloudas a provider and marks its privileged and third-party app counts audit-levelemail-dnsfollows RFC 9989, which replaces RFC 7489 for DMARC. A domain counts as enforced when the policy that applies to it rejects failing mail, including a subdomain policy on a record the DNS tree walk finds above it- The
tlsandemail-dnssummary percentages, and their every-endpoint and every-domain booleans, point to their counts withx-epack-numeratorandx-epack-denominator.idp-posture's privileged MFA percentages point to the count they are taken over x-epack-presentnames the boolean that is true when a value's population has any members. At the trust level, the checks read the flag in place of the count- Every field in the normalized schemas has an
x-epack-label, and every number and true-or-false value has anx-epack-summary.x-epack-goalmarks the better value where one is better - Every percentage sets its rounding with
x-epack-rounding. A percentage where more is better rounds down and one where more is worse rounds up, so a value short of 100 never shows as 100. A percentage over an empty population is null
Collector SDK
componentsdk.ArtifactPath(collector, schemaID)gives a data artifact's path.RunPathgives the path a run configured under another name writes, for a path a collector puts inside an artifact's dataCollectorSpec.Writeslists the schema IDs a collector can write. SDK collectors publish it in--capabilitiesand the build fileCollectorSpec.ConfigSchemais a JSON Schema for the collector's config. A scaffolded collector declares it indocs/schema/config.jsonOperation.Permissiondeclares the permission a call needs, in the vendor's terms.HTTPOptions.NamesPermissionleaves it off a denial that granting it would not fixcomponentsdk.Selectedtells a collector whethercollectincludes a kind, so it can skip the work.Emitleaves out whatevercollectrules outNextLinkreads the next page from RFC 8288Linkheaders.Percentrounds a percentage the way the schemas do and returns nil when there is nothing to countVocabularyholds the values a vendor's field can take.Mustpanics at startup on a value it lacks, andSeenreports a value the vendor sent that it lacksRecorder.Warnrecords a warning about the whole run.Fix,NoAction,Decide, andScopeattach advice to a gap or warningHTTPOptions.ThrottleWaitsets the wait before retrying a throttled response that still has requests left in its limit. GitHub answers this way over a secondary rate limit and asks for a minute's waitCollectorSpec.Methodsgives a collector'sx-epack-methodsentences for a normalized artifact, keyed by schema ID and field. The SDK adds them to its own schema for the type, checks the artifact against it, and puts it in the build file, so no collector copies a normalized schemaCollectorSpec.ArtifactSchemasreturns the schemasEmitchecks against, andNormalizedSchemaWithMethodsreturns one normalized type's schema with method sentences addedRecorder.Warnings()returns the run warnings recorded so far, asGaps()does for gapsx-epack-rolluptakesamong, a list of conditions that pick the rows a rollup covers, such as apps whose status is notINACTIVE
Test kit
- The new
redactioncheck reports a run of letters and digits that redaction hid as a possible secret from a gap, its advice, a run warning, or a failure message. Such a run is almost always an identifier the reader needs, such as an API error code. A run inside a URL is left out methodsasks for anx-epack-method, one plain sentence on how the value is measured, on every number and true-or-false value in a normalized artifact and on each such value a trust run writes in a detailed artifactlabelsasks for anx-epack-labeland anx-epack-summaryon every number and true-or-false value the clean scenario writes. The label is a few words, such as "Disk encryption". The summary is one or two plain sentences on what the value counts or says. A normalized artifact passes with the SDK's own labelswritesfails a collector that writes a schema IDCollectorSpec.Writesdoes not listpathsreports a data artifact written anywhere butcomponentsdk.ArtifactPathpagesreports a next page the scenario offered and the run never requested, andorderreports a value that changes when the vendor lists things in another ordervariantsreruns the clean scenario as another deployment of the vendor would answer it, such as AWS GovCloud, and reports a value that does not followfieldsreports a state field whose change leaves every value the same, andresponseschecks canned answers against the vendor's published API schemavocabularyreports a vendor value the vocabulary lacks,guidancereports advice that names a resource or person, andpermissionsreports a gap whose missing permission differs from its operation's- The
populationandratioschecks use the counts and present flags the schemas now point to - epack-conformance COL-080 fails a trust result that holds the tenant, call or step counts and times, a gap's call number, scope, or unmeasured count, or a run warning's message or scope. A result from an older SDK still passes
normalizedreports a collector's own copy of a normalized schema, which replaces the SDK's and falls behind itcollectortest.CheckNames()returns the names of the checks.Suite.SkipCheckstakes these names, and each violation names its checkInProcessResult.Operationscounts each operation's calls at every level, so the fault matrix and credential checks work for a suite that runs at the trust level
Fixes
- Redaction no longer hides a long run that reads as words, such as the AWS error code
ServerSideEncryptionConfigurationNotFoundError. A gap's detail showed it as[REDACTED]. A run with digits,+, or=that does not read as words is still hidden tracemapreports a committed map whose source lines no longer match the code, and a gap line the map does not list, asepack sdk map --checkdoes- Two suites in one package that share a name no longer overwrite each other's output under
COLLECTORTEST_OUT. The second is anexportviolation that asks for aSuite.Nameof its own Recorder.Mirrorno longer copies thenot_sharedgap of an artifact thatcollectleft out onto the value it copiesCollectorSpec.Methodsplaces a sentence on a map's values with*or any key as the last token, such as/fleet/devices_by_os/*epack sdk mapfinds the code behind an artifact whose path comes fromcomponentsdk.ArtifactPath, so a detailed artifact named that way has code lines in its trace mapNextLinkand thepagescheck skip a next link markedresults="false", as Sentry marks its last page
Upgrade notes
- A collector fails
labelsuntil each number and true-or-false value in its own artifacts has anx-epack-labeland anx-epack-summary - A collector that writes a normalized artifact fails
methodsuntil each number and true-or-false value has anx-epack-method, and so does each such value a trust run writes in its detailed artifact. When the normalized artifact carries what profiles read, mark the detailed schemaauditat its root so trust runs leave that file out - A collector that writes an artifact with a schema ID fails
writesuntilCollectorSpec.Writeslists it - A collector that writes
cloud-posture,idp-posture, orendpoint-posturefails thelevelscheck at the trust level until it leaves out the fields those schemas now mark audit and writes the new present flags - A reader of collector results finds the gap code
not_sharedand thecollectobject. Anot_sharedgap does not count against a collector's health - A reader of trust-level results finds operations without
calls,attempts, orretries, and steps without times or counts. Readretried,status_codes,error_codes, andany_failedinstead - An email-dns collector changes its DMARC values to follow RFC 9989 and lists each changed value in its changelog
- A collector that leaves out a percentage over an empty population fails
populationuntil it writes null - A
Gapliteral that setsSchema,Path, orPointersets them in the embeddedLocation, as inGap{Location: Location{Path: p}} - A collector with its own copy of a normalized schema fails
normalized. Move its methods intoCollectorSpec.Methodsand drop the copy - Detailed files move from
artifacts/<collector>.jsontoartifacts/<collector>.details.json. A reader that finds artifacts by path should find them by kind, or follow the new paths - A reader of collector results finds the gap codes
unsupported,not_read, andtoo_large. A run whose only gaps areunsupportedornot_readiscollected - A
not_readgap names a value a later release of the collector could read, so a page that shows gaps can say so. Anunsupportedgap means the service doesn't report the value - A collector fails
pathsuntil each data artifact sits atcomponentsdk.ArtifactPath(collector, schemaID) - A collector writes sign-in, members, admins, root accounts, and machine credentials to
access-posture, and scanner coverage tovuln-scanning. A profile or field guide that reads an oldcloud-postureorvcs-posturefield reads its new one - A collector fails
pageswhen its scenarios offer a next page it never requests, andorderwhen its values depend on the order a vendor lists things in - A collector gets a
ratiosfinding when it rounds a normalized percentage differently from the schema'sx-epack-rounding - A profile that tests
super_admin_counton a trust-level stream shows Not collected once its collector updates, since the count is written from the audit level only componentsdk.GapOptionis nowcomponentsdk.AdviceOption, since run warnings take the same options.GapOptionremains as a deprecated alias
A scaffolded collector's make lint works with a newer Go installed, and conformance fails a collector that rejects its config.
Fixes
make lintin a project fromepack sdk new collectorruns golangci-lint under the Go release in thetoolchainline ofgo.mod, which is the one CI installs. With a newer Go installed, such as Go 1.27, golangci-lint v2.9.0 panicked with "file requires newer Go version"epack-conformance, whichepack sdk testruns, fails C-020 and COL-040 when a collector given--configand--secretexits 2 on the run that should collect, because the collector rejected a config it should collect with. The failure names the config file and quotes the last line of the collector's stderr. The output checks used to skip, and the run passed. Without--secret, exit 2 still skips them, since a collector with no credentials can exit 2 too
Upgrade notes
- A collector whose credential must parse before it is used, such as a JSON key, fails to parse the
--secretcanary. If it reports that as a config error (exit 2), it now fails conformance when--configis given. Reported as an authentication error (exit 3), the output checks skip and COL-043 passes
epack sdk new collector writes a collector that can be tagged and released without hand edits.
Scaffold
go.modhas atoolchainline matching epack's, so CI and release builds use that Go release instead of the older one thegoline names. Tools, remotes, and utilities get the same linerelease.yamlcreates a draft when the repository variableSANDBOX_RELEASE_CHECKistrue, and the newpublish.yamlpublishes the draft once a passingsandboxescommit status arrives from the account inSANDBOX_STATUS_SENDER. Without the variable, a tag publishes at onceTestRecord/<name>records the sandbox organization inSANDBOX_<NAME>_ORGANIZATIONtointernal/collector/testdata/recordings/<name>.json, and replaces eachSANDBOX_value and the names in the responses with fakes. The kit runs the recording once it exists, andTestRecordingsScrubbedchecks the committed fileTestConformanceListsEveryCredentialfails whenconformance-secretsinci.yamlorCONFORMANCE_SECRETSin the Makefile leaves out a credential the kit uses- The docs give the source as
<owner>/epack-collector-<name>@^0.1, taken from the module path, and link between pages by full GitHub URL, since registry.epack.dev resolves relative links from the repository root - The project includes
docs/levels.mdand epack's Apache 2.0LICENSE
Fixes
epack sdk new collectorputs the API client of a collector namedcollect,location, orpercentininternal/api. Its package used to share the name of a function ininternal/collector, so the scaffold did not compile
The normalized cloud-posture schema lists the counts behind its IAM percentages, and can record a central workforce sign-in service.
Collector SDK
- The normalized
cloud-postureschema lists the counts behind two of each account's IAM percentages:user_countformfa_coverage_pctandaccess_key_user_countforaccess_key_rotation_compliant_pct. When a count is 0, a collector leaves its percentage out.saml_provider_countcounts the SAML identity providers an account trusts directly for sign-in - An optional
workforce_sign_inobject records a central sign-in service such as AWS IAM Identity Center, within_use,user_count, andmfa_source(sign_in_service,external_idp, orunknown) access_key_rotation_compliant_pctis described as a share of the usersaccess_key_user_countcounts, which is how the AWS collector computes it. It used to be described as a share of credentials
collectortest records and replays gRPC and other binary APIs through a codec that turns their bodies into JSON and back.
Testing
RecordOptions.CodecandSuite.Codectake aBodyCodecthat turns bodies like a gRPC API's protobuf messages into JSON and back.Recordscrubs the JSON with the same rules as a JSON body, runs the scrub check on it, and writes it with"body_encoding": "codec". A body the codec cannot decode, or cannot encode after scrubbing, fails the recording- The kit's runs encode a recording's codec bodies with
Suite.Codec, so field lengths and gRPC framing match the scrubbed values.RequestBodymatches the JSON the codec decodes a request's body to, so calls that differ only in their gRPC request get their own answers.NewReplayreturns an error for a codec recording, since it has no codec - The sensitivity check changes the bodies
Suite.Codecdecodes the same way it changes JSON. It used to list their operations as unmutated
A failed DNS lookup or dial names its call, so the gap it leaves does too, and the normalized email-dns and tls schemas list the counts behind their percentages.
Collector SDK
- A failed dial returns an error that names its call, and so does a timeout or reset on a dialed connection. A gap recorded from either names the call too, so a collector that dials through the SDK can turn on collectortest's
GapOperationscheck - A failed DNS lookup returns an error that names its call, so a gap recorded from it names the call too. A name or record that does not exist still returns
net.Resolver's*net.DNSErroras it is - The normalized
email-dnsschema lists the summary counts behind its percentages:with_mx_count,with_spf_count,with_dmarc_count,with_dkim_count,with_all_three_count,enforced_count, andwith_reporting_count - The normalized
tlsschema lists the summary counts behind its percentages:reachable_count,certificate_valid_count,hostname_valid_count,modern_protocol_count,expiring_soon_count, andlegacy_protocol_supported_count
Upgrade notes
- A failed lookup or dial returns an error that wraps the
*net.DNSErroror*net.OpErrorinstead of returning it as is. Get it witherrors.Asrather than a type assertion
collectortest records and checks CBOR responses, and epack is built with a Go release that fixes a crypto/x509 vulnerability.
Testing
collectortest.Recordcan record CBOR responses, such as those from AWS services on the Smithy RPC v2 CBOR protocol. It decodes eachapplication/cborbody and scrubs its strings, map keys, and integers with the same rules as text bodies. The scrub check reads the decoded body too, and a body that does not decode fails the recording- Recordings store a body that is not UTF-8 as base64 with
"body_encoding": "base64", and replays return the same bytes - The sensitivity check changes CBOR responses the same way it changes JSON responses. It used to skip them and list the operation as unmutated
Security
- epack is built with Go 1.26.10, which fixes GO-2026-6809 in
crypto/x509
Upgrade notes
- collectortest imports
github.com/aws/smithy-go, so after bumping epack in a collector,go mod tidyadds it as an indirect requirement
epack sdk map follows one more common way of writing MarshalJSON.
Fixes
epack sdk mapfinds the code behind the fields of a type whoseMarshalJSONmarshals the value as a local type with the same fields, such astype entry Entryand thenjson.Marshal(entry(e)). This also works when the method deletes keys from the result, or embeds the value in a struct that overrides a field'sjsontag to dropomitempty
epack sdk map finds more of the code behind a collector's fields, and warns about each field it finds none for.
Fixes
epack sdk mapfinds the code behind a field whose type has aMarshalJSONof exactlyreturn json.Marshal(v.Field), such as a genericLookup[T]that encodes as its record, and behind the fields under it. It used to stop at any type with its ownMarshalJSONepack sdk mapfinds a write through a generic type that two of the collector's packages instantiate with the same type arguments
Changes
epack sdk mapprints a warning on stderr for each field that operations feed but that has no code. The warning does not change the exit code
epack verify --json writes the transparency log's ID in a form a reader can compare.
Fixes
epack verify --jsonwriteslog_idas the log's hex-encoded key ID, such as Rekor'sc0d23d6a..., instead of raw bytes
Collectors on the SDK record enough about each run to trace a value to the calls and code behind it, and each pack carries a build file with the collector's schemas and trace map. epack verify shows each signature's log entry, CI run, and source commit.
Run records
- Request rows in the collector result gain
call,step,start_ms,waited_ms, andvendor_code, which the newHTTPOptions.VendorCodehook reads. Past the first 1,000 rows, up to 1,000 more failed or retried rows are kept, andproblem_requests_droppedcounts the ones left out componentsdk.StartCollectorStepandcomponentsdk.StartStepname the steps of a run, and the result lists each step's timing, requests, retries, and operations at every level- Gaps gain
operation,call,source,missing_permission, andwarning, withcomponentsdk.ResponseError, theMissingPermissionandWarninggap options, andRecorder.Helper signed_in_asgainsauth_method,requested_scopes, andread_only- DNS lookups and dials get a call number, a start time, and a step
Build files and trace maps
- Each run adds
artifacts/<collector>.collector-build.json, with schemaevidencepack/collector-build@v1: the collector's schemas and trace map. Its bytes are the same for every run of one build epack sdk mapbuilds a collector's trace map from its collectortest suites and source: for each output field, the operations that feed it, the code lines that compute it, and the lines that record its gaps.epack sdk map --checkfails on a stale map, and collector CI gains atrace-mapjob that runs it- collectortest checks a committed trace map on every suite run,
Suite.GapOperationschecks that each fault's gaps name the faulted operation, andCOLLECTORTEST_MAPexports whatepack sdk mapreads epack-collector-diffleaves build files out, so moving a line of collector code is not an evidence changeepack sdk new collectorscaffolds steps, a whole-number percentage with its numerator and rounding, the vendor code hook, and a committed trace map
Output checks
- The
x-epack-numeratorandx-epack-rounding(floor,ceil, ornearest) schema keywords, and aratioscheck that each percentage matches its numerator and denominator - The rollups check skips rows the run's level leaves out
- The normalized
cloud-postureschema addsaudit_log_enabledandaudit_log_all_regions, and keepscloudtrail_enabledandcloudtrail_multiregionas deprecated aliases with the same values until v2. Its descriptions now cover AWS, Google Cloud, and Azure, andidp-posturedescribes each of its sections
Verification
epack verifyshows each signature's transparency log entry and, for a keyless signature, the CI run and source commit its certificate records.--jsonaddslog_index,log_id, andcertificate, offline too
Conformance
- COL-075 to COL-080: a collector result and build file match their schemas and agree with each other, and nothing audit-only appears at the trust level. Each check skips what a collector does not write, so results from older SDKs pass
Upgrade notes
- A collector on this SDK adds a build file to every pack. Tests that count its artifacts see one more, and tools that list evidence may want to skip it, as they skip the collector result
- Errors from the SDK's HTTP transport now wrap their cause, so find it with
errors.Asorerrors.Israther than a type assertion - A step prints its title as a status line, so drop status lines that repeat it
- Call
Recorder.Helper()in a collector's own gap-recording helpers, or a gap'ssourcenames the helper instead of its caller
The Component SDK gains what a collector needs to report only what it could read: an HTTP client that retries and guards credentials, a recorder for values left out, nine failure codes, and a result artifact. componentsdk/collectortest tests a collector against injected faults and recorded runs, and a shared CI workflow compares each change's evidence with the last release's.
Upgrade notes
- v0.8.1 follows v0.6.0, and there is no v0.7 or v0.8.0 release. The Go module proxy already serves an earlier build as v0.8.0, which
@latestpicked until this release. Pin the exact version, as ingo install ...@v0.8.1 - An SDK collector's errors that are not typed now exit with their code's exit code, such as 3 for a 401 and 4 for a 5xx or a timeout, where earlier releases exited 1. A collector stopped by SIGTERM or SIGINT exits 1
Runs
- Collectors get
EPACK_RUN_ID, the run's ID, the same for every collector in it, andEPACK_DEADLINE, the time the runner will stop the collector, in RFC 3339 and UTC - A collector can print an
epack_progressline of kindfailure, with a code, whose move it is, and the vendor's error code, before it exits non-zero. The failure then takes that code, withcode_sourceset tocollector. Runners skip progress kinds they do not know - A version range never resolves to a GitHub draft or prerelease, so a release candidate installs only when pinned by its exact version
- Redaction leaves an ordinary word after a credential keyword alone, as in "token endpoint returned 503", where earlier releases redacted it, and keeps 64-character hex digests readable inside paths and URLs
Collector SDK
componentsdk.NewHTTPClientretries safe requests on 429, 5xx, and connection errors with backoff, honorsRetry-Afterand vendors' rate-limit reset headers within the collector's deadline, and sends aUser-Agentwith the collector and run ID. It refuses to send credentials to a host outsideCredentialHosts, including on redirects and next-page links, or over plain http to anything but a loopback hostcomponentsdk.Recordsrecords each value a collector could not read as a gap, with one of nine codes, each with an owner and an exit code:auth_failed,permission_denied,config_invalid,not_licensed,rate_limited,vendor_error,timeout,invalid_response, andinternal. A collection with gaps succeeds and leaves those values out, never writing a default such as0orfalsein their place- SDK collectors emit
artifacts/<collector>.collector-result.json, with schemaevidencepack/collector-result@v1: the outcome, each gap, each API operation's calls, retries, and statuses, the identity the collector signed in as, and the run componentsdk.NewResolverandcomponentsdk.NewDialercount DNS lookups and connections the same way, and tell a record that does not exist from a lookup that failed- Every non-zero exit prints a failure line first, and an SDK collector stops collecting shortly before
EPACK_DEADLINE, so it can still emit what it has - Artifacts are checked when a collector emits, against the schemas in
CollectorSpec.Schemasor the SDK's normalized schemas foridp-posture,cloud-posture,vcs-posture,email-dns, andtls.x-epack-*keywords mark levels, denominators, meaningful nulls, and rollups. Findings go in the collector result and never fail the run
Testing
componentsdk/collectortestruns a collector in process against canned responses, DNS records, and TLS endpoints, then injects faults into each named operation: 401, 403, 404, 429, 500, a timeout, a reset connection, and truncated, malformed, or empty bodies. Each value must keep its clean value or be left out with a gap whose code matches the fault. It also checks that no secret reaches an artifact, that no credential reaches another host, and that each level's output follows the schemascollectortest.Recordrecords a real run as a scenario, scrubbing secrets, emails, addresses, and IDs, and refuses to write a recording that still holds a credential.collectortest.LoadScenarioreplays it- With
COLLECTORTEST_OUTset, each scenario writes what it emitted, andepack-collector-diffcompares two such trees, with control outcomes when given a profile - A collector on GitHub Actions can call
locktivity/epack/.github/workflows/collector-ci.yaml, which runs its tests, lint, release builds, conformance, and govulncheck, and on a pull request compares each scenario's evidence with the newest release's epack sdk new collectorscaffolds all of this: an API client, gap recording, acollectortestsuite, a recording test behind therecordbuild tag, the artifact's schema indocs/schema, and CI that calls the shared workflow
Conformance
- New rules: a collector MUST NOT write a default in place of a value it could not read (COL-035), and MAY read
EPACK_RUN_IDandEPACK_DEADLINE(COL-015, COL-016), print a failure line (COL-045), and emit a collector result (COL-074) - Secret canaries reach every run, and COL-020 and COL-021 accept exit 3 or 4 from a collector that reaches its API in them
A failed collector is reported with a code that says why, and its exit code reaches the job. A collector that exits 0 without evidence now fails. A new collector project is laid out and checked the way the epack collectors are.
Collector failures
epack collect,epack collector run, andepack runreport each failed collector with a code:config_invalidwhen it exited 2,auth_failedfor 3,network_errorfor 4,collector_errorfor any other exit or a signal,invalid_outputwhen it exited 0 without a result, andtimeoutwhen it ran past--timeout. A failure epack finds before the collector runs keeps its own code, such asbinary_not_foundordigest_mismatch- The command's error has the code
collect_failedand readsokta: exited with code 3: ...for one collector, or2 collectors failed: okta, githubfor several - When one collector failed, epack exits with that collector's exit code from 2 to 9, or with epack's own code for a failure it found, such as 13 for a timeout. Several failures exit 1. Earlier releases exited 1 for any collector failure
- With
EPACK_ERROR_FILEset, each failed collector adds a line after the summary, such ascollector=okta code=auth_failed exit=3 code_source=exit_code.code_sourceisexit_codewhen the code was inferred from the exit code andrunnerwhen epack observed the failure itself - A failed
epack runreports each collector'scode,exit, andcode_sourceundermetadata.collect.failures.epack remote report-lock --outcome failurelists the same collectors, without their errors, fromEPACK_ERROR_FILEwhen its last error has the code given as--failure-code
Upgrade notes
- A collector that exits 0 must print a result. Empty stdout, JSON
null, text that is not JSON, and an envelope whoseartifactslist is empty ornullnow fail the collector withinvalid_output. Earlier releases packed text that was not JSON as a JSON string - A script that reads
EPACK_ERROR_FILEby sourcing it should read the^code=,^exit=, and^summary=lines instead, since acollector=line would also setcodeandexit
Collector SDK
ConfigError,AuthError, andNetworkErrorkeep their exit codes when returned as a pointer or wrapped with%w, and an error that reachescontext.DeadlineExceededwithout one of them exits 4epack sdk new collectorlays a project out as the epack collectors are: its entrypoint incmd/epack-collector-<name>/main.go, collection logic and its test ininternal/collector, aMakefile, andtestdata/conformance.json.--modulesets the Go module path, and the project needs Go 1.26- A new project's CI runs conformance at the epack version
go.modpins. A collector's runsmake conformance, which passestestdata/conformance.jsonand the variables inCONFORMANCE_SECRETS epack sdk mock collectorwritesconfig.jsonandrun-collector.sh, a script that runs the collector as epack does
Conformance
epack sdk testandepack-conformancetake--config, a collector config to collect with, and--secret, a variable the collector reads a credential from. Every run sets each secret to a canary value. The checks fail when a canary shows up in output, files, or error messages, and when a collector reports a rejected credential without exiting 3epack sdk testbuildscmd/<directory name>, or the only package undercmd/, and passes a collector project'stestdata/conformance.jsonunless--confignames another.epack-conformance -vlists every result, including passes
Releases
- A tag with a prerelease suffix, such as
v0.7.0-rc.1, publishes a GitHub prerelease. Homebrew and thelatestimage tags stay on the newest stable release
epack says when a newer release is out, at most once a day. CI mode is detected on more CI systems, and epack secret set says when a folder may be behind its configuration.
New
- At a terminal, a command checks at most once a day for a newer epack release. When one is out, the command ends with
epack X.Y.Z is available (you have A.B.C)and how to upgrade:brew upgradewith the formula when Homebrew installed epack, or else the releases page - The check asks GitHub without credentials, never sends
GITHUB_TOKEN, gives up after two seconds, and never fails a command. Prereleases are not offered - There is no check in CI mode, with
--quiet, when stderr is not a terminal, for a local or prerelease build, or for bareepack,help,version,completion,hooks, andcontext. SetEPACK_NO_UPDATE_NOTIFIERto turn it off - When the last check ran and the release it found are kept in
~/.epack/update-check.json, readable only by you. The check is in the full build only
Changes
- CI mode is also detected from
GITLAB_CI,CODEBUILD_BUILD_ID,JENKINS_URL,BUILDKITE, andTF_BUILD, besidesCIandGITHUB_ACTIONS. A job on a system that sets only one of these now runs in CI mode: no spinners, timestamps on output, and no keychain - When
epack secret setrefuses a name no component lists, in a folder a clone created, it names the revision the folder holds and says to runepack remote cloneto update the folder before passing--unlisted
When the revision a run fetches needs something the runner lacks, the run names what is missing and runs the newest earlier revision that works here, or stops and reports it. A job with no folder can run a configuration by name, signed in for that configuration.
Runs
epack run <name>checks the revision it fetched before installing anything: each variable or keychain secret it reads, approval for stored secrets, trust in each publisher it installs from, and the epack release the remote says it needs- When something is missing, the run lists it with where to add it, as the remote says or as epack knows, and asks the remote for the newest earlier revision that runs without it. That revision is fetched into
.epack/fallbackinside the folder and runs instead, and the run names both revisions. The fetched revision stays in the folder for you to finish - With no earlier revision that runs here, the run stops before installing anything, prints the remote's reason, reports what is missing to the remote with the code
requirements_missing, and exits withrevision N needs ..., and no earlier revision runs here without it epack run --checkreports an epack release older than the revision needs, with the release to upgrade to- After a fetch, epack prints what the remote says changed since the revision this runner last ran
Jobs
- A job can run a configuration by name with no folder. With
EPACK_PIPELINE_IDset and the job's GitLab ID token or the runner's key,epack run <name>and its check sign in for that configuration at the credential broker and fetch through the adapter installed for the user - That adapter must come from a publisher the job trusts, named with
--trust-publisherorEPACK_TRUSTED_PUBLISHERS, and the check happens before the adapter is installed or run - When a run by name needs the adapter a folder pins and it is not installed yet, a run with nobody at the terminal installs it without asking if its publisher is trusted, and verifies it before it runs. Earlier releases installed it only after a prompt
Security
- Trust in a new publisher is offered only for the revision you fetched. Earlier revisions a run falls back to are checked without prompting
EPACK_INSECURE_REMOTE_ENDPOINTandEPACK_INSECURE_REMOTE_AUTH_ENDPOINTpoint an adapter installed for the user at another instance of its remote, asinsecure_endpointdoes for a project's adapter. epack warns about each use and records it, and strict production builds refuse it
Remote Protocol
config.pullrequests carryconfig.purpose:run,check, orclone. A remote can count a run or a check as contact from the runner; a clone sets up a folder and is never a run- A run that lacks what a revision needs sends
config.fallbackwith that revision and what it lacks, by kind and name and never by value:variable,secret_approval,publisher, orepack. The answer is the newest earlier revision that runs without it, orno_fallbackwith a reason - A
config.pull.resultcan carryrequirements, the oldest epack that runs the revision and where a runner adds each variable, andchangeswithchanges_since, what changed since the revision this runner last ran - Adapter commands run with
EPACK_WRAPPER_VERSIONset to the running epack release
Fixes
- Choosing the newest release in a version range, and
epack remote update, order prereleases by semver precedence: a release sorts after its prereleases, andrc.10afterrc.9
The lock drops what the configuration no longer lists, and epack lock --keep-pins resolves only what changed. Inside a folder a clone created, epack remote clone needs no name.
Lockfile
epack lock,epack install, andepack runremove lockfile entries for collectors, tools, remotes, profiles, overlays, and mappings the configuration no longer lists.epack lockandepack installprint each one, as inremoved okta@v0.2.0 (not in config). Earlier releases kept the entry, and a locked sync refused it withLOCK_STALEepack lock --keep-pinskeeps each pinned version its range still allows from the same source, and resolves only components that are new, out of range, or from another source. A pin it keeps prints askept. Without the flag, every range resolves to its newest release as before
Remotes
- Inside a folder a clone created,
epack remote clonewith no name refreshes the folder from the configuration and remote it was cloned from - A configuration renamed since it was cloned still refreshes in place: from inside its folder,
epack runorepack remote clonewith the new name matches the folder by the configuration's ID instead of nesting a copy - A folder cloned from another configuration is refused unless you pass
--force - When a revision carries a lock, it replaces an
epack.lock.yamlthat a run wrote in the folder, and the fetch says so. The JSON result gainsreplaced. Earlier releases refused the fetch as a local change unless you passed--force - After a clone of a configuration with a CI job file that arrives locked, the next step reads commit the folder, without
epack lock --all-platformsfirst
The variables a configuration lists under secrets can live in your keychain, scoped to one configuration on one remote and approved for the components that read them. A run reports each stage to a remote that can show it, and a failed run names the collector that failed.
New
epack secretkeeps a configuration's secrets in the operating system keychain:setupwalks through every missing and unapproved secret,setstores one value (hidden at a prompt, from a pipe with--stdin, or from a file with--from-file),approvereviews what changed and records approval,listshows names, readers, and approval state without values, andremoveerases one. Run them in the folderepack remote clonecreated- Each stored secret is approved for the components that read it as they are now. A revision that changes a reader's entry in
epack.yaml, or adds a reader, is shown and must be approved before the value is used again. Storing or approving one secret never approves another - The environment always wins: a variable set in the shell reaches its readers as before, and the keychain is read only for the rest. CI never reads the keychain
- Remote adapters can take
run.progressevents, one as each stage and each collector or tool starts, finishes, or fails, so the remote can show the run while it is going. Adapters opt in with therun_progressfeature; epack sends nothing to one that does not
Running
epack run --checkreports variables asN of M readyand lists each one with where its value comes from: the environment, your keychain, stored but awaiting approval, or not set. A variable that is not ready comes with the command that resolves it. The JSON report gainsvariablesandsecret_storeepack runstops before collecting when a required variable is not ready, naming each one and theepack secretcommand to run. Runs and checks never prompt; only theepack secretcommands do- The summary printed after a fetch counts a variable as set when your keychain holds it for that configuration
epack run <name>andepack remote clone <name>from inside the folder a clone created refresh that folder instead of nesting a second copy- A failure report from the collect stage names the failed collector and its error, or counts and names several, in place of a bare failure count
- Every run has an id, carried in its progress events, on the release it pushes, and on the failure it reports, so a remote can join them
Security
- What the keychain protects is encryption at rest and isolation from other user accounts, not isolation from code running as the same user. Every platform lets a same-user process read what epack stored, as it can read an exported variable
- What epack records about stored secrets, their names, readers, and times but never values, lives in
~/.epack/secrets.yaml, readable only by you - The keychain is consulted only after the publisher trust gate, and the lookup behind a fetch summary never prompts
Upgrade notes
- The
epack secretcommands are in the full build only;epack-coresays so and exits - On Linux the keychain is the Secret Service over D-Bus, so a desktop session with gnome-keyring or kwallet is needed. Without one, the check reports the store as unavailable and the environment still works
After cloning a configuration that runs in CI, epack says to lock and commit rather than run.
Changes
- When the configuration
epack remote clonefetched carries a CI job file, a.gitlab-ci.ymlor a workflow under.github/workflows/, the next step readsepack lock --all-platformsand commit the folder withepack.lock.yaml, since CI runs from a committed lock - A configuration that runs where it was cloned keeps the
epack runhint
A fetched configuration can carry the profile and mapping files the validate tool reads, so a pipeline with profile validation runs from a laptop or a GitLab job.
Fixes
epack remote cloneandepack run <name>write.epack/profiles/<name>.yamland.epack/mappings/<name>.yamlfrom a pulled configuration. Earlier releases refused them as hidden paths, so a configuration with the validate tool failed with "is not a path epack writes"- Every other hidden path is still refused, including
.epack/collectors/,.epack/remotes/, and.git/
A secrets entry can be optional: a variable the run may hold, passed through when set and never required. Reported collector output no longer carries the values of passed secrets, and a timed-out collector takes its background processes with it.
Configuration
- A
secretsentry is a bare name or{name: AWS_PROFILE, optional: true}. A bare name is required, andepack run --checkreports it when unset. An optional entry is passed through when set and is neither counted nor reported - The summary printed after a fetch marks optional entries as
(optional)or(optional, set), and the check's report lists them underenv_optional - Earlier releases parse the list strictly and refuse a configuration with an optional entry, so upgrade before fetching one
Security
- Collector and adapter stderr in error messages and streamed output has every passed secret value replaced with
[REDACTED], before truncation and pattern redaction. Values shorter than six characters are not matched - On Unix, collectors and remote adapters run in their own process group, and a timeout kills the whole group, so a process a collector started cannot outlive the run with its environment
- A collector that exits but leaves a process holding its output open no longer hangs the run; after five seconds the run fails with an error naming the cause
Toolchain and dependency refresh. No behavior changes.
Changes
- Built with Go 1.26.9, with the golang.org/x modules and gRPC updated to their current releases, so the binaries carry those projects' latest fixes
Installing from a lock no longer calls the GitHub API, so runs on shared runners without a GitHub token stop failing with a 403.
Fixes
- When the lock records a component's release asset,
epack run,epack run --check, andepack syncdownload it and its Sigstore bundle from the release's download link instead of looking the release up through the GitHub API. Unauthenticated runners on shared addresses, such as AWS CodeBuild and hosted CI runners, often had no API quota left and failed with "unexpected status 403 fetching release" - The download is verified the same way: it must match the lock's digest and its Sigstore signature
- A lock that doesn't record asset names still looks each release up
epack run --check now offers to register this machine's signing key for a configuration that does not hold it yet, as a run does.
Runs
- In a terminal,
epack run --checkasks to register this machine's key when the remote does not hold it for the configuration, then waits for the approval the remote asks for and reports the key as usable or waiting. Previously the check only reported the key as not registered, and registering it took a run orepack key create - Without a terminal, or with
--yes, the check still reports the unregistered key, and the finding now also names--browser, which signs in the browser instead
A run on a laptop now gets its collectors' managed credentials with your epack remote login sign-in, and a failed run prints its output cleanly.
Runs
- A run or
epack run --checkwith no CI identity, such as one on a laptop, resolves managed collector credentials through the remote's sign-in when the remote's adapter supports it. Previously a collector with managed credentials failed there with "locktivity-managed credentials require a runtime identity" - That error now lists a sign-in with
epack remote loginamong the identities a run can use
Remote Protocol
- Added
credentials.resolveand thecredentials_resolvecapability. An adapter resolves a configuration's managed credentials with the sign-in it holds, so the person's token stays in the adapter and only the resolved credentials reach epack
Fixes
- After a failed collect, the spinner no longer keeps running into the post-collect hook's output. The failed stage closes with its failure line first
- A stage's result clears the rest of the line, so a shorter message no longer keeps the end of the spinner text it replaced
- The line saying a failure was reported to the remote ends with a newline, so the next output starts on its own line
- Collector errors no longer end with an escaped newline from the collector's stderr
epack run --check now installs the locked components before it signs in, so it works on a fresh machine or CI runner.
Fixes
epack run --checkinstalls the locked collectors, tools, and remote adapter the way a run does before collecting. Previously, on a machine where they were not installed yet, a check with a current lock stopped at "verifying adapter binary: opening binary: no such file or directory"- This affected the first check of a configuration fetched from a remote and checks in CI on fresh runners, including GitLab jobs run with
EPACK_CHECK=1
epack run --check now works before the first run of a configuration fetched from a remote.
Fixes
- In a folder fetched from a remote,
epack run --checklocks the configuration the way the first run does. Previously it stopped at "no epack.lock.yaml", and without a lock it could not verify the remote's adapter or sign in - In your own project, such as a folder committed for CI, a missing or stale lock is still reported with the
epack lockcommand to run and commit
Run a configuration a remote generated in one command, sign in with your browser, and sign runs with a key registered for the machine.
Runs
- Added
epack run: install the locked components, run the hooks, collect, run tools, sign, and push in one command. Given a configuration name, it fetches the configuration from the remote first. When a stage fails, the failure is reported to the remote with a stable code - Added
epack run --check(orEPACK_CHECK=1): sign in and verify the lock, secrets, credentials, and publishers, report the result, and collect nothing - A configuration fetched from a remote may only run collectors, tools, and remote adapters from trusted publishers. epack asks once in a terminal and records the answer in
~/.epack/config.yaml; a job names publishers with--trust-publisherorEPACK_TRUSTED_PUBLISHERS
Remotes
- Added
epack remote login: sign in with your browser, which returns to epack at127.0.0.1.--no-browserand--portsupport sign-in over SSH - Added
epack remote clone: fetch a named configuration into a folder, and pick up newer revisions without overwriting files you edited - Added
epack remote update: move the adapter installed for you, pinned in~/.epack/remotes.lock, to its newest release - The remote adapter protocol gains
auth.complete,config.pull, andkey.register,key.list,key.retire, andkey.revoke
Signing keys
- Added
epack key create,epack key list, andepack key rotate: make a key for the machine, register it with the remote, and wait for approval when the remote asks for it. Runs from the machine sign with the key once it is approved - A runner without its own identity signs in to the credential broker with its key, using
EPACK_SIGNING_KEYandEPACK_PIPELINE_ID. A GitHub Actions OIDC token or a GitLab ID token is used first when present - Added
epack verify --public-keyto verify packs signed with a key, andverify.WithPublicKeysin the SDK
Upgrade notes
- Sign-in moved from a device code to the browser.
epack remote loginneeds an adapter that supports browser sign-in, such asepack-remote-locktivityv0.2.0 - Adapters report a
browserauth mode where they reporteddevice_code
Version updates now re-lock every platform in the lockfile, so a lockfile updated on one OS works in CI on another.
Fixes
- When
epack update,epack lock, orepack installmoves a component to a new version, every platform already inepack.lock.yamlis downloaded, Sigstore-verified, and re-digested from the new release. Previously only the current platform was re-locked, and other platforms kept the previous release's digests, which failed sync on those platforms - A previously locked platform that the new release does not publish is now a lock error instead of a stale entry
Control mappings seal publisher-authored links from evidence to profile requirements into packs, plus toolchain and dependency security updates.
Control mappings
- A
mappings:section inepack.yamldeclares local mapping files (evidencepack/control-mapping@v1) recording which evidence supports which profile requirement - Each mapping file is locked by digest in
epack.lock.yaml, drift-checked, and verified under--frozen epack collectandepack runseal each mapping into the pack asartifacts/<name>.json, andepack buildaccepts a repeatable--mappingflag- Malformed entries, citations of artifacts the pack does not carry, and profile digests matching no locked profile are build warnings, never failures. Mappings never affect verification or validation results
epack inspectshows a Control Mappings section, the collect summary reports sealed entries, and lock provenance summaries gain amappingssection
Security
- Release binaries are built with Go 1.26.8, picking up the standard library fix for CVE-2026-39821
google.golang.org/grpcupdated to 1.83.1 for GHSA-vp52-pcj8-j9qc
Windows support for pack operations, catalog search across all component kinds, and dependency security updates.
Windows
- New
epack-core-windows-amd64.exeandepack-core-windows-arm64.exerelease binaries carry the same SLSA Level 3 provenance as every other platform - Windows covers pack operations: build, sign, verify, inspect, list, extract, merge, and diff. Collector and tool execution stays on macOS and Linux and fails closed on Windows
- Merge, filtered listing and extraction, and recursive result globbing handle Windows paths correctly
Catalog and utilities
epack catalog searchsearches collectors, tools, remotes, and utilities with an optional--kindfilter, andepack catalog refreshfetches the latest registry catalog with caching- The new
epack utilitycommand installs, lists, and removes user-scoped utilities with Sigstore verification, tracked in a global utilities lock
Security
- Dependency updates for published advisories in sigstore-go and grpc-go
- Path validation rejects rooted paths on every platform
Lockfile verification metadata: every locked component records whether its signature was checked at lock time.
Lockfile
- Locked collectors, tools, and remotes gain a
verificationblock recording the outcome of lock-time signature verification - Components locked from GitHub releases record
status: verifiedwith averified_attimestamp after their Sigstore bundles are checked against the pinned digests - External binaries record
status: skipped: they run from a local path and have no bundle to verify - Lockfiles written by earlier versions carry no
verificationblock, so consumers can tell verified and skipped entries apart from locks that predate verification recording
Committed-lockfile CI: strict locked installs, lockfile provenance reporting, and machine-readable errors.
CLI
- Added
epack sync --locked: clean-machine CI install that fetches exactly the locked versions with full signature and digest verification, fails on any drift, and never rewrites the lockfile - Added
epack remote report-lock: report the currentepack.lock.yamlto a remote without pushing a pack, for CI bootstrap and refresh flows - Sync and frozen paths now validate range satisfaction: a pinned version outside its configured range fails with
lock_config_mismatchinstead of silently keeping the old pin - Added
EPACK_ERROR_FILE: failed commands append stablecode=,exit=, andsummary=lines for log-free CI error handling - Runner context gains
head_shaviaEPACK_HEAD_SHA, the branch head onpull_requestworkflows whereGITHUB_SHAis the merge commit
Remote Protocol
- Added the
lock.reportcommand andlock_reportcapability for lockfile provenance reports (conformance rule REM-090) push.prepareandpush.finalizecarry a structuredlock_provenanceenvelope alongside the existing string build context, so releases record the exact lock that produced the pack
Errors
- New stable codes for frozen and locked failures:
lock_config_mismatch,lock_stale, andlock_missing_pinned_artifactreplace generic lockfile errors at the affected call sites
Richer artifact metadata for generated collector evidence.
Protocol
- Collector artifacts can carry
display_name,description, andcontrolsmanifest metadata
Go SDK
- Added
JSONArtifact,FileArtifact, andArtifactMetahelpers for metadata-bearing collector artifacts
Collector file artifacts for binary evidence such as PDFs, screenshots, and archives.
Protocol
- Added
EPACK_COLLECTOR_OUTPUT_DIR, a per-collector staging directory for raw file artifacts - Collectors can emit
fileartifact entries whose bytes are packaged at the declaredpath - Staged file paths reject traversal, absolute paths, symlinks, and non-regular files before packaging
- Staged bytes count toward artifact and pack budgets without counting against stdout limits
Go SDK
- Added
componentsdk.Staging(ctx)for optional file-artifact staging helpers - Added
WriteStagedFileandStageFilehelpers for buffered and streaming collector output
Security fixes for transitive dependencies.
Dependencies
- Bumped
go-joseto v4.1.4 to fix a JWE decryption panic (GHSA-78h2-9frx-2jm8) - Bumped
sigstore/timestamp-authorityto v2.0.6 for improper certificate validation in the verifier (GHSA-xm5m-wgh2-rrg3) - Bumped
go.opentelemetry.io/otelto v1.42.0 to fix a baggage-header allocation amplification (GHSA-mh2q-q3fh-2475)
Collection levels for graduated evidence gathering.
Protocol
- Reserved a top-level
levelconfig key with valuestrust,audit,internal; defaults totrustwhen absent - Levels are cumulative:
auditis a superset oftrust;internalis a superset ofaudit - Unknown values downgrade to
trustwith a stderr warning so collectors never gather more than was asked for - Collectors honoring the field stamp
collected_at_levelon their top-level artifact for downstream interpretation
Go SDK
- Added
componentsdk.LevelwithLevelTrust/LevelAudit/LevelInternalconstants - Added
ctx.Level()reader andLevel.AtLeast(other)comparator for gating field collection
Locktivity-managed credentials, portable hooks, build-context emission, and smoother GitHub Actions signing.
Managed Workflows
- Added top-level
credential_setsfor Locktivity-managed workflow integrations - Collectors, tools, and remotes can request managed credentials by logical ref
- Locktivity remote auth docs now reflect
access_token,device_code, andclient_credentials
Runner UX
- Added
epack hooks runfor portable project hooks under.epack/hooks/ - Added
epack context buildto emit build metadata for runners - Project scaffolding now keeps
.epack/hooks/tracked while ignoring other runtime state
CI/CD Signing
epack signnow uses ambient GitHub Actions OIDC automatically whenid-token: writeis granted- Other CI systems can continue to provide
EPACK_OIDC_TOKENexplicitly
Profile and overlay support, multiple collector artifacts, and new top-level commands.
Profiles & Overlays
- Added
profilesandoverlaysconfiguration sections in epack.yaml - Support for registry-sourced profiles with version locking
- Profile/overlay digests tracked in manifest for reproducibility
Collector SDK
- Breaking:
Emit()now accepts[]CollectedArtifactfor multiple artifacts per collection - New
CollectedArtifactstruct with Schema and Path metadata - Collectors can emit multiple artifacts in a single call
New Commands
epack catalog search— unified search across collectors, tools, remotes, and utilitiesepack catalog refresh— update local catalog cacheepack utility install/list/remove— manage global utilities
Remote Protocol
- Added
runs.syncandauth.whoamifeature capabilities - Consistent sync behavior across collector, tool, and remote adapters
Bug Fixes
- Fixed offline verification mode to properly use embedded timestamps
- Fixed JSON output returning
nullinstead of[]for empty arrays
Verification improvements and remote protocol enhancements.
Verification
- Improved error messages for attestation verification failures
- Added support for sigstore-js provenance bundles
Remote Protocol
- Added sidecar push support for parallel attestation uploads
- Improved push workflow reliability
Initial public release of the Evidence Pack specification and epack CLI.
Specification
- Evidence Pack format specification v1.0
- Manifest schema with SHA-256 digests for all artifacts
- Sigstore attestation bundle format
- Pack digest and manifest digest algorithms
CLI (epack-core)
build— create packs from artifactssign— keyless signing via Sigstoreverify— integrity and signature verificationinspect— view pack contents and metadatadiff— compare two packsmerge— combine multiple packslist— list artifacts in a packextract— extract artifacts from a pack
CLI (Full)
new— scaffold a new epack projectinit— initialize epack in existing directorycollect— run collectors and build packpush/pull— remote registry operationslock/sync/install/update— dependency managementcollector/tool— plugin management
Go SDK
pack— core pack types and operationspack/builder— fluent API for building packspack/verify— verification with policy optionssign— Sigstore signing integration
Stay Updated
Watch the repository for new releases and subscribe to release notifications.
View ReleasesVersioning Policy
epack follows Semantic Versioning:
- Major versions (1.0, 2.0) may include breaking changes to the specification or CLI
- Minor versions (0.2, 0.3) add new features in a backwards-compatible manner
- Patch versions (0.1.1, 0.1.2) include backwards-compatible bug fixes
Specification vs CLI versions
The Evidence Pack specification version is independent of the CLI version. The specification
is versioned in the manifest ("spec_version": "1.0") and changes less frequently
than the CLI.
Backwards compatibility
The CLI will always be able to read packs created by older versions. New features that require pack format changes will use new specification versions, and the CLI will indicate when a pack requires a newer version.