Skip to content

feat(dir): refactor OASF validator config - #2158

Merged
csirmazbendeguz merged 1 commit into
mainfrom
feat/validators
Sep 23, 2026
Merged

csirmazbendeguz merged 1 commit into
mainfrom
feat/validators

Conversation

@csirmazbendeguz

@csirmazbendeguz csirmazbendeguz commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

this PR adds the validators config, and refactors the OASF validator to be defined in validators

later, we will define OPA validators in validators as well (and any other validator logic we want to implement)


so, instead of:

oasf_api_validation:
  schema_url: localhost:8092

we will have:

validators:
  - provider: oasf
    op: ["push", "autosync", "index"]
    config:
      schema_url: localhost:8092

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped✅ passedSep 23, 2026, 1:45 PM

@github-actions github-actions Bot added the size/M Denotes a PR that changes 200-999 lines label Sep 17, 2026
@csirmazbendeguz csirmazbendeguz changed the title feat(dir): refactor OASF validator feat(dir): refactor OASF validator config Sep 17, 2026
@csirmazbendeguz
csirmazbendeguz force-pushed the feat/validators branch 2 times, most recently from 9450271 to 1bc477d Compare September 23, 2026 13:15
@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.73469% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/validators/registry.go 85.3% 5 Missing ⚠️
reconciler/main.go 0.0% 4 Missing ⚠️
server/routing/autosync/autosync.go 90.9% 1 Missing ⚠️
server/routing/routing_remote.go 0.0% 1 Missing ⚠️
server/server.go 85.7% 1 Missing ⚠️
server/skill/publisher.go 66.7% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@csirmazbendeguz
csirmazbendeguz marked this pull request as ready for review September 23, 2026 13:54
@csirmazbendeguz
csirmazbendeguz requested a review from a team as a code owner September 23, 2026 13:54
@csirmazbendeguz
csirmazbendeguz merged commit 3d3fd74 into main Sep 23, 2026
41 checks passed
@csirmazbendeguz
csirmazbendeguz deleted the feat/validators branch September 23, 2026 16:26
tkircsi added a commit that referenced this pull request Sep 28, 2026
main refactored the OASF validator into a registry (#2158) and threaded it
through routing.New, newRemote and autosync.NewManager. This branch removed
that plumbing with autosync, so the routing side keeps its own signatures and
server.go keeps main's registry everywhere except the routing.New call.

Changelog entries for #1967 move to Unreleased, since v1.7.1 shipped meanwhile.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 200-999 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants