Skip to content

Include platform info in sign task payload packages - #1252

Open
anfimovdm wants to merge 1 commit into
masterfrom
issue-546-sign-task-platform
Open

Include platform info in sign task payload packages#1252
anfimovdm wants to merge 1 commit into
masterfrom
issue-546-sign-task-platform

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

Summary

Part 1 of AlmaLinux/build-system#546.

Adds platform_id and platform_name to each package entry returned by get_available_sign_task(), so sign nodes know which platform each package belongs to and can apply per-platform rules (e.g. requiring file/IMA signatures).

Changes

  • alws/crud/sign_task.py — extend the existing selectinload chains with BuildTask.platform and add platform_id/platform_name to source and binary RPM package entries.
  • alws/schemas/sign_schema.py — both fields added as optional on SignRpmInfo.

Compatibility

  • Older sign nodes read the payload with .get() and ignore unknown keys — no impact.
  • The keys round-trip back in the completion payload, where pydantic ignores unknown fields.
  • Nothing about this change alters behaviour on its own — it only makes the platform visible to the node.

Testing

New tests/test_crud/test_sign_task.py: builds a two-platform build with source and binary RPMs and asserts every package in the payload carries the correct platform_id/platform_name (covers the multi-platform case).

Related PRs

  • albs-sign-node: part 2 (config option + verification) — merge/deploy this web-server PR first.

🤖 Generated with Claude Code

Add platform_id and platform_name to each package entry returned by
get_available_sign_task() so sign nodes can apply per-platform rules
(e.g. requiring file/IMA signatures). Both fields are optional on
SignRpmInfo, so older sign nodes are unaffected.

Part 1 of AlmaLinux/build-system#546
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant