Skip to content

Support otlp/json export in the SDK - #4823

Open
plengauer wants to merge 10 commits into
mainfrom
ccr-51cfecf3-f9m5wi
Open

plengauer wants to merge 10 commits into
mainfrom
ccr-51cfecf3-f9m5wi

Conversation

@plengauer

Copy link
Copy Markdown
Owner

Summary

  • Add opentelemetry-exporter-otlp-json-http==0.66b2 to src/opt/opentelemetry_shell/requirements.txt (only beta versions exist; it requires opentelemetry-sdk~=1.45.2, matching the current pin).
  • In sdk.py, choose the JSON exporter for traces, metrics and logs when OTEL_EXPORTER_OTLP_<SIGNAL>_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL is http/json. The default stays http/protobuf.
  • README: document the supported protocols.

Testing

Installed the packages and confirmed the JSON OTLPSpanExporter is selected and instantiates with http/json. I did not run the full test suite or the metrics and logs paths end to end.


Generated by Claude Code

Select the OTLP/HTTP JSON exporters when OTEL_EXPORTER_OTLP_PROTOCOL
(or the signal specific variant) is http/json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9
@plengauer plengauer self-assigned this Nov 28, 2026
@plengauer
plengauer marked this pull request as ready for review November 28, 2026 23:06
@plengauer
plengauer requested a review from moflwi as a code owner November 28, 2026 23:06
@plengauer
plengauer enabled auto-merge (squash) November 28, 2026 23:07
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

❌MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ ACTION actionlint 1 0 0 1.32s
❌ ACTION zizmor 1 3 70 8.73s
✅ BASH shellcheck 1 0 0 0.18s
✅ BASH shfmt 1 0 0 0.22s
✅ COPYPASTE jscpd yes no no 0.89s
✅ MARKDOWN markdownlint 1 0 0 0.43s
✅ MARKDOWN markdown-table-formatter 1 0 0 0.17s
✅ PYTHON bandit 1 0 0 3.14s
✅ PYTHON flake8 1 0 0 1.25s
✅ PYTHON mypy 1 0 0 11.47s
❌ PYTHON pylint 1 5 0 10.82s
✅ PYTHON ruff 1 0 0 0.09s
✅ REPOSITORY betterleaks yes no no 6.06s
✅ REPOSITORY checkov yes no no 17.84s
✅ REPOSITORY dustilock yes no no 18.16s
✅ REPOSITORY git_diff yes no no 0.15s
⚠️ REPOSITORY grype yes no 3 63.98s
✅ REPOSITORY kingfisher yes no no 5.26s
❌ REPOSITORY osv-scanner yes 1 11 20.66s
✅ REPOSITORY secretlint yes no no 1.84s
✅ REPOSITORY syft yes no no 3.74s
❌ REPOSITORY trivy yes 1 3 18.27s
✅ REPOSITORY trivy-sbom yes no no 0.58s
✅ REPOSITORY trufflehog yes no no 4.93s
✅ SPELL cspell 2 0 0 2.44s
✅ SPELL lychee 4 0 0 1.97s
✅ YAML yamllint 1 0 0 2.24s

Detailed Issues

❌ REPOSITORY / osv-scanner - 1 error
requests`, `urllib3` and `pip`, and the Python.org macOS installer.
   
   Certifi 2026.10.18 removed all emSign roots from the bundle. Certifi 2026.10.19 restored the emSign roots that are not affected. Upgrade to 2026.10.19 or later, and rebuild container images that vendor certifi.

warning: Package 'minimatch@10.2.6' is vulnerable to 'CVE-2026-118764' (also known as 'GHSA-g3hv-75wg-m249').
 = CVE-2026-118764: minimatch has potential denial of service via globparts amplification
 = minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.
   
   researcher: Reid Downing (b1nv0id)
   files: 
   
   - src/index.ts: 690-770
   - src/index.ts: 780-796
   
   issue:
   input-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.
   
   the **/../ transformation clones a globparts entry and appends the clone to the same globparts array:

parts.splice(gs, 1)
const other = parts.slice(0)
other[gs] = '**'
globParts.push(other)

this occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.

the expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons:

for (let i = 0; i < globParts.length - 1; i++) {
for (let j = i + 1; j < globParts.length; j++) {
this.partsMatch(...)
}
}

an attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.

warning: Package 'minimatch@9.0.9' is vulnerable to 'CVE-2026-118764' (also known as 'GHSA-g3hv-75wg-m249').
= CVE-2026-118764: minimatch has potential denial of service via globparts amplification
= minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.

researcher: Reid Downing (b1nv0id)
files: 

- src/index.ts: 690-770
- src/index.ts: 780-796

issue:
input-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.

the **/../ transformation clones a globparts entry and appends the clone to the same globparts array:

parts.splice(gs, 1)
const other = parts.slice(0)
other[gs] = '**'
globParts.push(other)

this occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.

the expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons:

for (let i = 0; i < globParts.length - 1; i++) {
for (let j = i + 1; j < globParts.length; j++) {
this.partsMatch(...)
}
}

an attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.

warning: Package 'idna@3.9.0' is vulnerable to 'CVE-2026-45409' (also known as 'PYSEC-2026-215', 'GHSA-65pc-fj4g-8rjx').
= CVE-2026-45409: Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
= This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. Payloads such as `"\u0660" * N` or `"\u30fb" * N + "\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process.

### Impact
A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service.

### Patches
Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support).

### Workarounds
Domain names cannot exceed 253 characters in length, if this length limit is enforced prior to passing the domain to the `idna.encode()` function it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

warning: Package 'idna@3.9.0' is vulnerable to 'CVE-2026-45409' (also known as 'PYSEC-2026-215', 'GHSA-65pc-fj4g-8rjx').
= CVE-2026-45409: Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
= This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. Payloads such as `"\u0660" * N` or `"\u30fb" * N + "\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process.

### Impact
A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service.

### Patches
Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support).

### Workarounds
Domain names cannot exceed 253 characters in length, if this length limit is enforced prior to passing the domain to the `idna.encode()` function it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

warning: Package 'certifi@2026.7.22' is vulnerable to 'PYSEC-2026-4320' (also known as 'GHSA-6q48-6c7w-9gw2').
= PYSEC-2026-4320: certifi bundles emSign root CAs with compromised intermediate CA keys
= Certifi versions before 2026.10.18 include the `emSign ECC Root CA - G3` root certificate in their bundled CA store. Eight eMudhra intermediate CA certificates that chain to this root have compromised private keys and the CA has revoked them. 

An attacker with one of the compromised keys can issue valid-looking certificates for any hostname. If the attacker is also on-path, they can intercept or modify TLS traffic from clients that trust the certifi bundle. Examples include `requests`, `urllib3` and `pip`, and the Python.org macOS installer.

Certifi 2026.10.18 removed all emSign roots from the bundle. Certifi 2026.10.19 restored the emSign roots that are not affected. Upgrade to 2026.10.19 or later, and rebuild container images that vendor certifi.

warning: Package 'certifi@2026.7.22' is vulnerable to 'PYSEC-2026-4320' (also known as 'GHSA-6q48-6c7w-9gw2').
= PYSEC-2026-4320: certifi bundles emSign root CAs with compromised intermediate CA keys
= Certifi versions before 2026.10.18 include the `emSign ECC Root CA - G3` root certificate in their bundled CA store. Eight eMudhra intermediate CA certificates that chain to this root have compromised private keys and the CA has revoked them. 

An attacker with one of the compromised keys can issue valid-looking certificates for any hostname. If the attacker is also on-path, they can intercept or modify TLS traffic from clients that trust the certifi bundle. Examples include `requests`, `urllib3` and `pip`, and the Python.org macOS installer.

Certifi 2026.10.18 removed all emSign roots from the bundle. Certifi 2026.10.19 restored the emSign roots that are not affected. Upgrade to 2026.10.19 or later, and rebuild container images that vendor certifi.

warning: 11 warnings emitted

(Truncated to last 8000 characters out of 15893)
❌ PYTHON / pylint - 5 errors
umentation.python/3.14/site-packages/opentelemetry/instrumentation/grpc/__init__.py", line 267, in <module>
    import grpc  # pylint:disable=import-self
    ^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/__init__.py", line 24, in <module>
    from grpc import _compression
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_compression.py", line 20, in <module>
    from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_cython/__init__.py)
Importing of grpc_aio_server failed, skipping it
Traceback (most recent call last):
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 97, in _load_instrumentors
    distro.load_instrumentor(entry_point, skip_dep_check=True)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/distro.py", line 50, in load_instrumentor
    instrumentor: BaseInstrumentor = entry_point.load()
                                     ~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 763, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/grpc/__init__.py", line 267, in <module>
    import grpc  # pylint:disable=import-self
    ^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/__init__.py", line 24, in <module>
    from grpc import _compression
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_compression.py", line 20, in <module>
    from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_cython/__init__.py)
Importing of grpc_client failed, skipping it
Traceback (most recent call last):
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 97, in _load_instrumentors
    distro.load_instrumentor(entry_point, skip_dep_check=True)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/distro.py", line 50, in load_instrumentor
    instrumentor: BaseInstrumentor = entry_point.load()
                                     ~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 763, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/grpc/__init__.py", line 267, in <module>
    import grpc  # pylint:disable=import-self
    ^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/__init__.py", line 24, in <module>
    from grpc import _compression
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_compression.py", line 20, in <module>
    from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_cython/__init__.py)
Importing of grpc_server failed, skipping it
Traceback (most recent call last):
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 97, in _load_instrumentors
    distro.load_instrumentor(entry_point, skip_dep_check=True)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/distro.py", line 50, in load_instrumentor
    instrumentor: BaseInstrumentor = entry_point.load()
                                     ~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 763, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/opentelemetry/instrumentation/grpc/__init__.py", line 267, in <module>
    import grpc  # pylint:disable=import-self
    ^^^^^^^^^^^
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/__init__.py", line 24, in <module>
    from grpc import _compression
  File "/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_compression.py", line 20, in <module>
    from grpc._cython import cygrpc
ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/usr/share/opentelemetry_shell/agent.instrumentation.python/3.14/site-packages/grpc/_cython/__init__.py)
/venvs/pylint/lib/python3.14/site-packages/pylint/config/callback_actions.py:446: ReporterWarning: FORCE_COLOR is set; ignoring `text` at stdout
  self.linter._load_reporters(reporter_names)
************* Module /action/lib/.automation/.pylintrc
/action/lib/.automation/.pylintrc:1:0: E0015: Unrecognized option found: suggestion-mode (unrecognized-option)
************* Module sdk
src/usr/share/opentelemetry_shell/sdk.py:206:4: E0401: Unable to import 'opentelemetry.propagators.b3' (import-error)
src/usr/share/opentelemetry_shell/sdk.py:206:4: E0611: No name 'b3' in module 'opentelemetry.propagators' (no-name-in-module)
src/usr/share/opentelemetry_shell/sdk.py:439:8: E0401: Unable to import 'opentelemetry.propagators.b3' (import-error)
src/usr/share/opentelemetry_shell/sdk.py:439:8: E0611: No name 'b3' in module 'opentelemetry.propagators' (no-name-in-module)

(Truncated to last 8000 characters out of 9493)
❌ REPOSITORY / trivy - 1 error
warning: Package: glob
Installed Version: 10.5.0
Vulnerability CVE-2026-118773
Severity: MEDIUM
Fixed Version: 14.0.2
Link: [CVE-2026-118773](https://avd.aquasec.com/nvd/cve-2026-118773)
     ┌─ actions/instrument/job/package-lock.json:1675:1
     │  
1675 │ ╭     "node_modules/glob": {
1676 │ │       "version": "10.5.0",
1677 │ │       "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
1678 │ │       "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
     · │
1694 │ │       }
1695 │ │     },
     │ ╰^
     │  
     = glob: glob: Denial of Service (DoS) via incomplete traversal cancellation
     = Glob matches files using patterns the shell uses. From 9.0.0 until 14.0.2, abort branches in src/walker.ts, including GlobUtil.walkCB(), GlobUtil.walkCB2(), GlobUtil.walkCBSync(), and GlobUtil.walkCB2Sync(), invoke the callbacks without returning. After AbortSignal or AbortSignal.timeout() rejects or emits an error, execution can continue into processor.processPatterns(), readdirCB(), and recursive traversal. The issue affects glob() and globStream() when applications expose attacker-influenced patterns or directory trees and rely on cancellation as a traversal budget. Repeated timed-out requests can stack background filesystem operations and CPU work, degrading worker throughput or service availability; no confidentiality or integrity impact was observed. This issue is fixed in 14.0.2.

warning: Package: minimatch
Installed Version: 10.2.6
Vulnerability CVE-2026-118764
Severity: MEDIUM
Fixed Version: 11.0.1
Link: [CVE-2026-118764](https://avd.aquasec.com/nvd/cve-2026-118764)
     ┌─ actions/instrument/job/package-lock.json:2385:1
     │  
2385 │ ╭     "node_modules/minimatch": {
2386 │ │       "version": "10.2.6",
2387 │ │       "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
2388 │ │       "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
     · │
2398 │ │       }
2399 │ │     },
     │ ╰^
     │  
     = minimatch: minimatch: Denial of Service via crafted glob pattern expansion
     = minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Starting in 7.0.0 and prior to 11.0.1, src/index.ts implements firstPhasePreProcess() so that, at optimizationLevel 2 or higher, it repeatedly expands attacker-controlled **/.. pattern segments inside a fixpoint loop, allowing generated globParts entries to be processed and expanded again. secondPhasePreProcess() then compares the expanded entries pairwise, so a short malicious glob can cause excessive CPU and memory consumption during pattern compilation. This issue is fixed in version 11.0.1.

warning: Package: minimatch
Installed Version: 9.0.9
Vulnerability CVE-2026-118764
Severity: MEDIUM
Fixed Version: 11.0.1
Link: [CVE-2026-118764](https://avd.aquasec.com/nvd/cve-2026-118764)
     ┌─ actions/instrument/job/package-lock.json:1711:1
     │  
1711 │ ╭     "node_modules/glob/node_modules/minimatch": {
1712 │ │       "version": "9.0.9",
1713 │ │       "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",
1714 │ │       "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",
     · │
1724 │ │       }
1725 │ │     },
     │ ╰^
     │  
     = minimatch: minimatch: Denial of Service via crafted glob pattern expansion
     = minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Starting in 7.0.0 and prior to 11.0.1, src/index.ts implements firstPhasePreProcess() so that, at optimizationLevel 2 or higher, it repeatedly expands attacker-controlled **/.. pattern segments inside a fixpoint loop, allowing generated globParts entries to be processed and expanded again. secondPhasePreProcess() then compares the expanded entries pairwise, so a short malicious glob can cause excessive CPU and memory consumption during pattern compilation. This issue is fixed in version 11.0.1.

warning: 3 warnings emitted
❌ ACTION / zizmor - 3 errors
n_${{ steps.workflow_run.outputs.run_attempt }}' .
     │                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1000:123
     │
1000 │           INPUT_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} gh_artifact_download '${{ steps.workflow_run.outputs.id }}' '${{ steps.workflow_run.outputs.run_attempt }}' 'opentelemetry_workflow_run_${{ steps.workflow_run.outputs.run_attempt }}' .
     │                                                                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1000:198
     │
1000 │           INPUT_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} gh_artifact_download '${{ steps.workflow_run.outputs.id }}' '${{ steps.workflow_run.outputs.run_attempt }}' 'opentelemetry_workflow_run_${{ steps.workflow_run.outputs.run_attempt }}' .
     │                                                                                                                                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1038:21
     │
1038 │           [ -n "${{ steps.check_suite.outputs.id }}" ]
     │                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1306:40
     │
1306 │           echo "repository=$(echo "${{ env.REPOSITORY_TEMPLATE }}-${{ github.workflow }}-${{ github.ref_name }}" | tr / - | cut -c -100)" >> "$GITHUB_OUTPUT"
     │                                        ^^^^^^^^^^^^^^^^^^^^^^^

error: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1306:71
     │
1306 │           echo "repository=$(echo "${{ env.REPOSITORY_TEMPLATE }}-${{ github.workflow }}-${{ github.ref_name }}" | tr / - | cut -c -100)" >> "$GITHUB_OUTPUT"
     │                                                                       ^^^^^^^^^^^^^^^

error: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1306:94
     │
1306 │           echo "repository=$(echo "${{ env.REPOSITORY_TEMPLATE }}-${{ github.workflow }}-${{ github.ref_name }}" | tr / - | cut -c -100)" >> "$GITHUB_OUTPUT"
     │                                                                                              ^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1308:143
     │
1308 │           curl -L -H "Authorization: Bearer ${{ secrets.TEST_GITHUB_TOKEN }}" -X DELETE "${GITHUB_API_URL:-https://api.github.com}"/repos/${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }} || true
     │                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1308:176
     │
1308 │           curl -L -H "Authorization: Bearer ${{ secrets.TEST_GITHUB_TOKEN }}" -X DELETE "${GITHUB_API_URL:-https://api.github.com}"/repos/${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }} || true
     │                                                                                                                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1310:151
     │
1310 │           curl -L -H "Authorization: Bearer ${{ secrets.TEST_GITHUB_TOKEN }}" "${GITHUB_API_URL:-https://api.github.com}"/user/repos -d '{"name":"${{ steps.config.outputs.repository }}","private":${{ matrix.private }},"auto_init":true}'
     │                                                                                                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1316:46
     │
1316 │           git config --global user.email ${{ steps.config.outputs.user }}@github.com
     │                                              ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1317:45
     │
1317 │           git config --global user.name ${{ steps.config.outputs.user }}
     │                                             ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1338:156
     │
1338 │           printf '%s' '${{ secrets.TEST_GITHUB_TOKEN }}' | GH_TOKEN='${{ secrets.TEST_GITHUB_TOKEN }}' gh secret set DEPLOY_OBSERVABILITY_TOKEN --repo ${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }}
     │                                                                                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1338:189
     │
1338 │           printf '%s' '${{ secrets.TEST_GITHUB_TOKEN }}' | GH_TOKEN='${{ secrets.TEST_GITHUB_TOKEN }}' gh secret set DEPLOY_OBSERVABILITY_TOKEN --repo ${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }}
     │                                                                                                                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1345:103
     │
1345 │           yq -i '.jobs.deploy.steps[0].uses = "${{ github.repository }}/actions/instrument/deploy@${{ inputs.ref }}"' .github/workflows/deploy_otel.yml
     │                                                                                                       ^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1366:142
     │
1366 │           curl -L -H "Authorization: Bearer ${{ secrets.TEST_GITHUB_TOKEN }}" -X DELETE "${GITHUB_API_URL:-https://api.github.com}/repos/${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }}" || true
     │                                                                                                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: code injection via template expansion: may expand into attacker-controllable code
     ┌─ .github/workflows/test_github.yml:1366:175
     │
1366 │           curl -L -H "Authorization: Bearer ${{ secrets.TEST_GITHUB_TOKEN }}" -X DELETE "${GITHUB_API_URL:-https://api.github.com}/repos/${{ steps.config.outputs.user }}/${{ steps.config.outputs.repository }}" || true
     │                                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: 22 warnings emitted
error: 3 errors emitted

(Truncated to last 8000 characters out of 28806)
⚠️ REPOSITORY / grype - 3 warnings
warning: A medium vulnerability in npm package: glob, version 10.5.0 was found at: /actions/instrument/job/package-lock.json

warning: A medium vulnerability in npm package: minimatch, version 10.2.6 was found at: /actions/instrument/job/package-lock.json

warning: A medium vulnerability in npm package: minimatch, version 9.0.9 was found at: /actions/instrument/job/package-lock.json

warning: 3 warnings emitted

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

claude and others added 3 commits November 28, 2026 23:13
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9
The Python SDK maps the otlp exporter only to grpc and http/protobuf and
rejects http/json. Add the JSON exporter to the python requirements and
select it explicitly when the protocol is http/json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9
plengauer and others added 6 commits November 29, 2026 10:44
Co-authored-by: Claude <noreply@anthropic.com>
…detector names

- Import the otlp exporter only when the otlp exporter is selected, so that
  console or none do not fail when the grpc exporter is unavailable.
- Keep an empty OTEL_*_EXPORTER variable empty for deep python injection.
- List the resource detectors that are registered by the installed packages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9
The http/protobuf protocol mapped to the non-existent package
opentelemetry.exporter.otlp.protobuf.http. Since that is the default
protocol, lazy provider initialization failed on the first SPAN_START,
no response was written to the response pipe, and the shell blocked
forever reading it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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