Skip to content

Support restricting kinds on insertion#2814

Merged
Hayden-IO merged 1 commit into
mainfrom
filter-insertion
May 21, 2026
Merged

Support restricting kinds on insertion#2814
Hayden-IO merged 1 commit into
mainfrom
filter-insertion

Conversation

@Hayden-IO

Copy link
Copy Markdown
Contributor

This adds a server flag to restrict the set of kinds that the server will support for insertion. Note that this does not affect the read path, meaning previously inserted entries are still readable.

This will be used in the public instance to limit the set of kinds to the ones that are actively used to minimize the API attack surface.

Summary

Release Note

Documentation

@Hayden-IO Hayden-IO requested a review from a team as a code owner May 3, 2026 17:08
@Hayden-IO Hayden-IO requested review from bobcallaway and removed request for a team May 3, 2026 17:08
Comment thread cmd/rekor-server/app/root.go Outdated

rootCmd.PersistentFlags().StringSlice("enabled_api_endpoints", operationIDs, "list of API endpoints to enable using operationId from openapi.yaml")

rootCmd.PersistentFlags().StringSlice("pluggable_types", []string{},

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.

Note I chose to not deal with version, because only the intoto kind has two versions.

@Hayden-IO Hayden-IO force-pushed the filter-insertion branch 2 times, most recently from 2ce3178 to ac067e1 Compare May 3, 2026 17:21
Comment thread pkg/types/entries.go Outdated
Comment thread cmd/rekor-server/app/root.go Outdated
@Hayden-IO Hayden-IO force-pushed the filter-insertion branch 3 times, most recently from 15605d5 to 7fcf4f4 Compare May 4, 2026 14:51
Comment thread cmd/rekor-server/app/serve.go Outdated
bobcallaway
bobcallaway previously approved these changes May 4, 2026
This adds a server flag to restrict the set of kinds that the server
will support for insertion. Note that this does not affect the read
path, meaning previously inserted entries are still readable.

This will be used in the public instance to limit the set of kinds to
the ones that are actively used to minimize the API attack surface.

Signed-off-by: Hayden <[email protected]>
@Hayden-IO Hayden-IO force-pushed the filter-insertion branch from 1839183 to eb44d1f Compare May 4, 2026 18:33
@Hayden-IO Hayden-IO requested a review from cpanato May 5, 2026 17:55
@Hayden-IO Hayden-IO merged commit c7e77ee into main May 21, 2026
16 checks passed
@Hayden-IO Hayden-IO deleted the filter-insertion branch May 21, 2026 21:50
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.

2 participants