Skip to content

report: Fetching latest OPA release version from GH#7756

Merged
johanfylling merged 5 commits intoopen-policy-agent:mainfrom
johanfylling:gh_version_check
Jul 8, 2025
Merged

report: Fetching latest OPA release version from GH#7756
johanfylling merged 5 commits intoopen-policy-agent:mainfrom
johanfylling:gh_version_check

Conversation

@johanfylling
Copy link
Copy Markdown
Contributor

instead of telemetry server.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 7, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 0653d39
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/686cedd00f03d300073bc428
😎 Deploy Preview https://deploy-preview-7756--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


gatherers map[string]Gatherer
gatherersMtx sync.Mutex
type Reporter interface {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making Reporter an interface might be overkill as it's pretty unlikely someone relies on this, but this way it's possible to swap in a bespoke reporter for posting meta.

The type change is however a breaking change to report.New(), but as said above: very unlikely someone is using this today.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
Copy link
Copy Markdown
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll never know if someone implemented their own telemetry endpoint... but if so, they can use the old report package's code in their project, I suppose...so it's probably OK.

LGTM 🚀

"id": id,
"version": version.Version,
}
func New(_ string, opts Options) (Reporter, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're breaking back-compat anyways, why not drop the first parameter? 😉

body map[string]any
client rest.Client

gatherers map[string]Gatherer
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some more gatherer-related code we can get rid off now? 🤔

@srenatus
Copy link
Copy Markdown
Contributor

srenatus commented Jul 7, 2025

if so, they can use the old report package's code in their project, I suppose...

Thought about it again, it'll be a hassle if someone did that.... Let's hope nobody did 🙃

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
@johanfylling johanfylling merged commit 9a423ec into open-policy-agent:main Jul 8, 2025
31 checks passed
@johanfylling johanfylling deleted the gh_version_check branch July 8, 2025 11:19
@charlieegan3
Copy link
Copy Markdown
Contributor

Fixes #7739

charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 7, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 8, 2026
Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
charlieegan3 added a commit that referenced this pull request Jan 8, 2026
* runtime: Correct naming of version checking code

Rename telemetry functionality to version checking to accurately reflect
current behavior following
#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Make WithTelemetryGatherers a no-op

Deprecate WithTelemetryGatherers since telemetry gathering has been removed.
The function now returns a no-op to maintain API compatibility without
breaking existing code that might uses it.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

---------

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
alex60217101990 pushed a commit to alex60217101990/opa that referenced this pull request Jan 10, 2026
…t#8191)

* runtime: Correct naming of version checking code

Rename telemetry functionality to version checking to accurately reflect
current behavior following
open-policy-agent#7756.

The system only checks GitHub releases for version updates without sending
any data about the OPA instance and so the privacy docs have been updated too.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Make WithTelemetryGatherers a no-op

Deprecate WithTelemetryGatherers since telemetry gathering has been removed.
The function now returns a no-op to maintain API compatibility without
breaking existing code that might uses it.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

---------

Signed-off-by: Charlie Egan <charlie_egan@apple.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.

3 participants