Analytics: AMP and video events skip activity controls applied to auction events
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with src/main/java/org/prebid/server/analytics/reporter/AnalyticsReporterDelegator.java, especially isAllowedAdapter and updateEvent, then inspect the existing auction and AMP handling alongside the VideoEvent and AmpEvent context APIs. Run the reporter delegator tests and add coverage for activity controls, user/device masking, and reporter-specific analytics trimming on AMP and video events. Done means those events follow the same per-reporter controls as auction events.
索引モデルが issue の本文から書いたものです。
説明
🤖 This issue was written by an AI agent (Claude Code) on behalf of @patmmccann.
What happens
AnalyticsReporterDelegator applies account activity controls fully only to AuctionEvent. AMP and video events get less:
1. Video events: reportAnalytics is never checked. In isAllowedAdapter, the VideoEvent branch sets activityInfrastructure = null, even though videoEvent.getAuctionContext() has one. isAllowedActivity then falls back to ALLOW_ACTIVITY_BY_DEFAULT (true):
- https://github.com/prebid/prebid-server-java/blob/9ac33456c4d57336fdb2514fa15b792fdfb3d20d/src/main/java/org/prebid/server/analytics/reporter/AnalyticsReporterDelegator.java#L211-L217
- https://github.com/prebid/prebid-server-java/blob/9ac33456c4d57336fdb2514fa15b792fdfb3d20d/src/main/java/org/prebid/server/analytics/reporter/AnalyticsReporterDelegator.java#L315-L322
The auction and AMP branches just above (L179-L203) pass the context's ActivityInfrastructure and a BidRequestActivityInvocationPayload.
2. AMP and video events: no masking and no ext.prebid.analytics trimming. updateEvent handles only AuctionEvent:
For auction events, it masks user/device for each reporter according to transmitUfpd, transmitEids and transmitPreciseGeo (L285-L313), and trims ext.prebid.analytics to that reporter's own entry (L324-L350). AmpEvent and VideoEvent skip both steps, so every reporter gets the unmasked auctionContext.bidRequest along with all reporters' ext.prebid.analytics entries.
Why it matters
Privacy. A publisher who denies reportAnalytics to a reporter could still have that reporter receive video events. A publisher who denies transmitUfpd, transmitEids or transmitPreciseGeo to analytics could still have reporters receive user FPD, EIDs, and precise geo/IP on AMP and video traffic. Each reporter could also see the request-level analytics config meant for other reporters. PBS-Go applies reportAnalytics, transmitUfpd and transmitPreciseGeo to auction, AMP and video events alike, so the two servers behave differently here.
To reproduce
Account config:
{
"privacy": {
"allowactivities": {
"reportAnalytics": { "rules": [{ "condition": { "componentType": ["analytics"], "componentName": ["pubstack"] }, "allow": false }] },
"transmitUfpd": { "default": false }
}
}
}
with pubstack (or any reporter) enabled and listed in analytics.global.adapters.
/openrtb2/videofor this account:pubstackstill receives theVideoEvent./openrtb2/amp(or video) with a stored request that hasuser.eids,user.dataanddevice.geo: every allowed reporter receives them unmasked, while the same request on/openrtb2/auctionis masked.
Expected behaviour
AMP and video events go through the same per-reporter reportAnalytics check, user/device masking and ext.prebid.analytics trimming as auction events.
Suggested fix
- In
isAllowedAdapter, handleVideoEventthe same way asAmpEvent(take theActivityInfrastructureandBidRequestActivityInvocationPayloadfromvideoEvent.getAuctionContext()). - In
updateEvent, applyupdateAuctionContextAdaptertoAmpEventandVideoEventtoo (both havetoBuilder = true).
References
- Found while documenting PBS analytics events: https://github.com/prebid/prebid.github.io/pull/6997
- Related: https://github.com/prebid/prebid-server-java/issues/4716 (the shared
ext.prebid.analyticsnode is changed in place)
🤖 Generated with Claude Code
- 主要言語
- Java
- スター
- 108
- フォーク
- 258
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 12
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
prebid/prebid-server-java のほかの issue
-
auto
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
prebid/prebid-server-java#4721 ·
メンテナーはふだん 2 日以内に返信
-
Port PR from PBS-Go: Beachfront: Fix for Off-by-one comparison against length対応中かも @osulzhenko が 2 日前に担当しました。 オープンauto
難易度 2/5 1〜3時間 初心者へのやさしさ 53/100
prebid/prebid-server-java#4720 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
auto
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
prebid/prebid-server-java#4719 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
prebid/prebid-server-java#4718 ·
メンテナーはふだん 2 日以内に返信
-
Analytics: cookie_sync and setuid events ignore analytics.global.adapters and account enabled flagオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
prebid/prebid-server-java#4717 ·
メンテナーはふだん 2 日以内に返信
prebid/prebid-server-java の issue をすべて見る
似ている issue
-
good first issue java test
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checkedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
checkstyle/checkstyle#23007 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/logging-log4j2#4519 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100
endoflife-date/endoflife.date#11679 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug finsim-cli low
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信