Commits on Source 5

  • Arran Walker's avatar
    Coalesce masker output per Write to preserve write boundaries · 584822aa
    Arran Walker authored
    The phrase matcher emits output in several pieces (plaintext flushed
    ahead of a candidate prefix, single bytes replayed after a failed match,
    mask callbacks). Passing each straight through split one caller Write
    into many downstream writes, which a \r-flushing timestamper turned into
    separate, mis-stamped entries — e.g. fragmenting a progress meter's
    "\rUploading cache ..." frame into "Uploading cach" / "e ...".
    
    Buffer a single top-level Write's output and flush it once, preserving
    the caller's write boundary. The bytes and masking decisions are
    unchanged.
    584822aa
  • Arran Walker's avatar
    Keep token prefix visible when masking · 2e4cdf4a
    Arran Walker authored
    Token prefixes were masked whole (glpat-XXX -> [MASKED]). Mask only the
    token body and keep the prefix, matching GitLab Runner's masker
    (glpat-XXX -> glpat-[MASKED]). Reuse the callback already used for URL
    parameter masking, which keeps the matched key in place.
    2e4cdf4a
  • Arran Walker's avatar
    Report short write when masker flush fails · 0b9a9621
    Arran Walker authored
    coalesce buffers a Write's output and flushes it to the underlying
    writer in one call. write() targets the in-memory buffer and can't
    fail, so on a flush error Write now returns 0 rather than len(p),
    signalling a short write per the io.Writer contract instead of
    claiming every byte reached the writer.
    0b9a9621
  • Arran Walker's avatar
    Add CHANGELOG entry · 9ae2fd12
    Arran Walker authored
    9ae2fd12
  • Georgi N. Georgiev | GitLab's avatar
    Merge branch 'ajwalker/fix-masking' into 'main' · eace8fa2
    Georgi N. Georgiev | GitLab authored
    Fix log masking: preserve atomic writes and keep token prefixes visible
    
    See merge request !545
    eace8fa2
Loading
Loading