feat(artifacts): list and download pipeline-run artifacts#42
Open
arseniy-pplx wants to merge 1 commit into
Open
feat(artifacts): list and download pipeline-run artifacts#42arseniy-pplx wants to merge 1 commit into
arseniy-pplx wants to merge 1 commit into
Conversation
Extend tangle sdk artifacts get with list, out-dir, only and include-children modes. Inline values are JSON-encoded; signed-URL content streams to owner-only (POSIX 0o600) files with path, collision, symlink, redirect and internal-address checks. Signed URLs are redacted from errors. Query top-level and nested shapes are validated as clean errors, null per-entry output filters select all outputs (same as an empty list), and an explicit empty --query object stays distinct from an absent one. A public TangleApiClient.request_raw seam keeps artifact fetching independent of private client methods.
arseniy-pplx
marked this pull request as ready for review
July 20, 2026 18:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tangle sdk artifacts getwith--list,--out-dir,--onlyand--include-children<name>.json; stream signed-URL content to a file with owner-only permissions on POSIX (0o600; Windows ACLs are not adjusted) under a sanitized artifact name--querytop-level and nested shapes (tasks/executions/components/artifact_ids) as clean CLI errors;nullper-entry output filters mean all outputs (same as[]), and an explicit--query '{}'is a valid empty query rather than a missing oneTangleApiClient.request_rawseam so artifact fetching does not depend on private client methodsContext
The current CLI reports artifact metadata but cannot retrieve artifact contents. This completes the pipeline-run output workflow while keeping large files streaming and applying conservative filesystem, redirect and error-redaction safeguards. Self-hosted deployments with private-network object storage can opt out with
TANGLE_ALLOW_INTERNAL_ARTIFACT_HOSTS=1; the host-literal guard is a conservative default, not a DNS-rebinding defense.Testing
uv run pytest tests/test_artifacts.py tests/test_artifacts_cli.py tests/test_client.pyuvx ruff checkon the touched source filesuv lock --checkgit diff --check