-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reporter plugins need access to secrets #7833
Comments
Hmm, I think we might gave a design issue here: Is it really a good idea to generally give any reporter that's available in the classpath access to the secrets e.g. used by my private scanner? Could we instead find a way for e.g. scanners to expose their secrets only to specific reporters? |
It is not the case, that a reporter plugin can access all secrets. It is rather passed its specific |
Ah, I though you're suggesting e.g. the FossId reporter to have access to the secrets of the FossId scanner. But if reporters just should have the new options / secrets themselves, this issue pretty much related to #6507 for the reporters, right? |
True, if reporter plugins implemented the I can open a draft PR with what I have currently. Then we can decide if this is a valid intermediate step or if the full refactoring should be done. |
Here is the PR: #7837 |
Not only that, but reporter-specific options should also get moved from "first-class" CLI options to |
Hm, not sure whether I fully understand this. Currently, the reporter command already reads options from the configuration, but those can be overridden via the command line IIUC. I guess you mean something different? |
Actually, I meant quite that: Any ort/plugins/commands/reporter/src/main/kotlin/ReporterCommand.kt Lines 184 to 195 in 1534d39
|
In FossIdReporter, read the FossID user and API key from the secrets of the `PluginConfiguration` rather than from the plain options. Fixes oss-review-toolkit#7833. Signed-off-by: Oliver Heger <[email protected]>
Thank you for explaining. |
Recently, the classes
ScannerConfiguration
andAdvisorConfiguration
were changed to split the plugin-specific configuration into (plain) options and secrets, to make sure that secrets are not serialized into ORT results.There are also some reporter plugins - namely
FossIdReporter
that require secret credentials to obtain the required data. Therefore, theReporterConfiguration
class and the plugin interface for reporters should be changed accordingly.The text was updated successfully, but these errors were encountered: