-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #927 Look for the presence of `api_key` as a key when loading config files, raise a warning to the user if the file is readable by group or others. ## Verification List the steps needed to make sure this thing works ``` yaml --- run: seed: eval_threshold: 0.5 generations: 1 probe_tags: plugins: model_type: test model_name: Lipsum detector_spec: auto api_key: test probe_spec: test.Test reporting: report_prefix: test ``` run `garak --config config.yaml` NOTE: The warning does not get surfaced to the user directly, which shouldn't be the case when we warn, but it is written to the log. This is an artifact of our default verbosity and it may make sense to `print` the warning here.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters