Skip to content

Conversation

@fmunozs
Copy link
Contributor

@fmunozs fmunozs commented Sep 18, 2025

Summary

This PR adds support for detecting and validating OpenRouter API keys. OpenRouter is an AI model API aggregator and routing service [1]

Detection

Regex based matching sk-or-v1-[A-Za-z0-9_-]{20,} up to 80 characters.

Validation

Authentication endpoint: GET https://openrouter.ai/api/v1/auth/key

[1] https://openrouter.ai/

@fmunozs fmunozs changed the title PRP - Initial support for openrouter keys PRP - Support for openrouter keys Sep 18, 2025
- Resolved conflicts in protobuf schema (OpenRouter API key now field 32)
- Adapted to new Veles plugin architecture
- Integrated with latest secret scanning infrastructure
- Maintained OpenRouter implementation with updated field numbers
- Fixed FromMatch signature for new simpletoken.Detector interface
- Registered OpenRouter detector in extractor plugin list
- Registered OpenRouter validator in enricher plugin list
- Updated protobuf field number to 32 (avoiding conflicts)
- Verified end-to-end functionality with individual plugins

Available plugins:
- secrets/openrouter (detection)
- secrets/openroutervalidate (validation)
@fmunozs
Copy link
Contributor Author

fmunozs commented Sep 29, 2025

Updated branch with main and solved conflicts

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.

1 participant