GMN: Add tag in User Agent for when accessing proxied objects in response to CN or other system requests
@rogerdahl がすでに取り組んでいます。
2024年1月26日 から。
評価
この issue はまだ評価されていません。
説明
Conditionally add a "user" or "system" tag with originating User Agent to the User Agent that GMN uses when reading object bytes from a 3rd party service.
When GMN is in proxy mode, it reads object bytes from a 3rd party service when handling MN API requests. It's currently not possible for the 3rd party service to determine if the request on the DataONE side was user or system (CN or MN) initiated, and so the service cannot filter system requests, such as checksum requests, from actual user downloads in order to create data usage metrics.
After this change, the 3rd party service data usage metrics can separate object downloads initiated by users from object reads caused by automated processing on the DataONE side.
Example of User Agent as seen on the 3rd party service for a download as public initiated from a browser after this change:
DataONE-Python/3.5.2 +http://dataone.org/ (user: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36)
The addition is the (user/system: originating-user-agent) section after the default User Agent.
- 主要言語
- Python
- スター
- 18
- フォーク
- 10
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataONEorg/d1_python のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
DataONEorg/d1_python#108 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DataONEorg/d1_python#105 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
DataONEorg/d1_python#103 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DataONEorg/d1_python#101 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
DataONEorg/d1_python#100 ·
DataONEorg/d1_python の issue をすべて見る
似ている issue
-
Make the "%" unit spacing the same in the web and in A10対応中かも @kragent66-glitch が今日担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
maiychrus25/OpenTea-DX-OS#226 · コメント 1 件 ·
-
ci severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TMHSDigital/Spackle#205 ·
メンテナーはふだん 1 日以内に返信
-
pkg:lgm type:chore upstream-gaussx
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jejjohnson/pyrox#610 ·
メンテナーはふだん 1 日以内に返信
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ramnes/notion-sdk-py#523 ·
-
feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
open-telemetry/opentelemetry-python#5994 ·
メンテナーはふだん 2 日以内に返信