Skip to content

Support security-insight v2#1891

Open
Kielek wants to merge 1 commit intocncf:mainfrom
Kielek:security-insight-v2
Open

Support security-insight v2#1891
Kielek wants to merge 1 commit intocncf:mainfrom
Kielek:security-insight-v2

Conversation

@Kielek
Copy link
Copy Markdown
Contributor

@Kielek Kielek commented Mar 30, 2026

Fixes: #1779

It is needed mostly to be able to work together with other cncf scanning/status tool: https://insights.linuxfoundation.org/project/opentelemetry/repository/open-telemetry_opentelemetry-dotnet/security?timeRange=past365days&start=2025-03-30&end=2026-03-30 (the source of this is under https://github.com/ossf/pvtr-github-repo-scanner).

The new tools is supporting v2.

To make both tools happy, it is better to bring support for new versions here.

@Kielek Kielek force-pushed the security-insight-v2 branch from 31f3841 to 129e740 Compare March 30, 2026 11:44
@Kielek
Copy link
Copy Markdown
Contributor Author

Kielek commented Mar 30, 2026

@martincostello, you might be interested in this PR.

@martincostello
Copy link
Copy Markdown

Ah nice. If this works we'd be able to revert open-telemetry/opentelemetry-dotnet#6898.

- A valid OpenSSF Security Insights *manifest file* is found. The following locations are searched in order (first match wins):

```sh
"security-insights.yml" # v2 (root)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does the file name case need to change?

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.

Yes, that's what stated in the documentation. Technically, we could detect the version only based on the name, but I think that it could be errorprone.

@Kielek Kielek force-pushed the security-insight-v2 branch from 129e740 to e891503 Compare March 31, 2026 06:34
Signed-off-by: Piotr Kiełkowicz <pkielkow@cisco.com>
@Kielek Kielek force-pushed the security-insight-v2 branch from e891503 to cd13561 Compare March 31, 2026 09:17
@tegioz
Copy link
Copy Markdown
Contributor

tegioz commented Apr 2, 2026

Hi @Kielek 👋

Thank you for your PR 🙂

There are some problems with this implementation.

The security insights datasource module is now mixing v1 and v2 types with suffixes. These are not fully consistent, as many types are not version suffixed and, when v2 is extended (we should, as v2 manifests validation is too permissive at the moment, and can easily mark invalid manifests as valid), there can be conflicts/collisions (or confusion, not knowing what types belong to what version). This would probably be better handled using a separate submodule for each version, plus a shared small facade. There are some other minor issues as well.

We appreciate your effort, but we'd rather take care of this ourselves.

I understand you filed the related issue some time ago and that this work is needed. We'll try to prioritize it and work on it as soon as possible. We (the maintainers of this project) have been focused on some other projects (specially https://github.com/cncf/open-community-groups) for the last few months, and have postponed some non-urgent requests a bit. But we'll get back to this soon 😇

@Kielek
Copy link
Copy Markdown
Contributor Author

Kielek commented Apr 7, 2026

@tegioz, looking forward for any progress here. Feel free to close this PR when/if needed.

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.

support security insgiths v2

3 participants