Skip to content

test/images with tailor [4]: validate and fingerprint signing credentials - #899

Draft
bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/tailor-fragment-dependenciesfrom
user/bfjelds/tailor-signing-fingerprints
Draft

bfjelds (bfjelds) wants to merge 1 commit into
user/bfjelds/tailor-fragment-dependenciesfrom
user/bfjelds/tailor-signing-fingerprints

Conversation

@bfjelds

@bfjelds bfjelds (bfjelds) commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Include effective signing settings and role-specific credential contents in cache fingerprints, follow key symlinks, and reject invalid signing configuration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6501a6e2-9ece-44f9-a91a-4d8e0c0e6d07
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@bfjelds bfjelds (bfjelds) changed the title tailor: validate and fingerprint signing credentials test/images with tailor [4]: validate and fingerprint signing credentials Oct 26, 2026
@bfjelds
bfjelds (bfjelds) requested a balanced review from Copilot October 26, 2026 19:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Credential path normalization can hash a different file from the signer, allowing credential rotation to reuse stale signed artifacts.

1 open issue
What changed in this PR

Part 4 of the Tailor migration adds signing-aware cache fingerprints so changes to signing profiles or local credentials invalidate cached image builds.

Changes:

  • Resolve signing profiles during planning and fingerprint their settings and credential contents.
  • Add uncached credential hashing and regression coverage for symlink rotation and fingerprint field separation.
  • Correct the output documentation to describe slug-based filenames.
File Description
tools/​tailor/​docs/​reference/​image-yaml.md Clarify output naming and remove the unsupported name override.
tools/​tailor/​crates/​tailor-core/​src/​orchestrator.rs Resolve signing profiles and hash credentials during planning.
tools/​tailor/​crates/​tailor-core/​src/​hashcache.rs Expose uncached file hashing within the crate.
tools/​tailor/​crates/​tailor-core/​src/​fingerprint.rs Include separate signing fields and credential hashes, with regression tests.
tools/​tailor/​crates/​tailor-core/​src/​deps.rs Add uncached dependency hashing and share hash composition.

Review effort: Balanced

let Some(path) = path else {
return Ok(None);
};
let absolute = tailor_config::absolutize(path, workspace_root);

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants