Repository navigation
fix(orchestration): keep the ingest token out of the job directory - #3911
Merged
Merged
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
The collector stamped the ingest token as an `Authorization` resource attribute
(the routing proxy needs it) on every batch, and the same pipelines fed the file
exporters, so `otel/{metrics,traces,logs}.jsonl` in the job directory carried the
token in plaintext. The collector also logged at debug, which prints each batch's
resource attributes, token included, into `logs/otel_collector.log`.
Every signal now has two pipelines over the same receivers: `<signal>` stamps the
token and ships to the managed backend, `<signal>/local` stamps everything but and
writes the job-directory copy. The span_metrics connector hangs off the local
traces pipeline and its series enter both metrics pipelines. Log level is info.
Tests pin that no file-writing pipeline carries the token attribute and that the
log level stays off debug; the fern page says what the copies contain.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Ingo Guehring <[email protected]>
iguehring-nvidia
force-pushed
the
iguehring/otel-token-out-of-job-dir
branch
from
October 2, 2026 17:01
ff7c7d2 to
2ba8050
Compare
iguehring-nvidia
marked this pull request as ready for review
October 2, 2026 17:16
iguehring-nvidia
enabled auto-merge
October 2, 2026 17:18
Contributor
oyilmaz-nvidia
approved these changes
Oct 2, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37050579275 |
This branch was previously deployed
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.
What
The job collector (#3610) stamps the ingest token as an
Authorizationresource attribute on every batch, because the routing proxy in front of the managed backend resolves the tenant from it. The same pipelines also fed the file exporters, so the job-directory copiesotel/{metrics,traces,logs}.jsonlcarried the token in plaintext. The collector also logged atdebug, which prints each batch's resource attributes, token included, intologs/otel_collector.log. Both files are created with the user's default umask on shared storage.Fix: two pipelines per signal over the same receivers.
<signal>stamps the token (resource/managed) and ships to the managed backend;<signal>/localstamps everything but (resource/local) and writes the job-directory copy. Thespan_metricsconnector hangs off the local traces pipeline and its series enter both metrics pipelines like any other metric. Collector log level isinfo(export failures still log at error).Why it matters
Every run since #3610 merged wrote a team write-credential into world-readable files in the job directory. Found while checking the EFB fragments MR end to end (jobs 7601272 and 7602043 on oci-hsg). Affected directories on that cluster have been chmod'ed; the token should be rotated once this lands.
Validation
pytest tests/unit_tests/test_orchestration_otel.py tests/unit_tests/test_slurm_script.py tests/unit_tests/test_slurm_executor.py tests/unit_tests/test_orchestration_api.py tests/unit_tests/test_fern_docs_links.py: 386 passed. New tests:test_the_token_never_reaches_the_job_directory_copies(no file-writing pipeline carries the attribute; managed and local processors differ by exactlyAuthorization) andtest_collector_log_level_does_not_print_batches.otelcol-contrib 0.152.1 validate(the binary the clusters run).otel/metrics.jsonl,traces.jsonl,logs.jsonlcarry 567/559/68 resources withrun_id,userandservice.name.overrideon every one and noAuthorization; the collector log has 39 lines, none at debug, and no export errors. The same check on a pre-fix run finds the token in all four files.Compatibility
Pipeline names change (
metrics/localetc.); nothing outside the collector config refers to them. The managed export is unchanged: same attributes, same header. Dashboards unaffected.