Skip to content

Commit 000a7bb

Browse files
prepping for v1.0.8
1 parent cec4700 commit 000a7bb

File tree

9 files changed

+22
-19
lines changed

9 files changed

+22
-19
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@
1212
- refactored a lot of code around entropy matching and filtering. It is now built entirely into lib.rs and thus works with all hogs. It also uses normalized entropy instead of shannon entropy directly. So entropy thresholds are now on a scale of 0-1. The formula is essentially (shannon_entropy / log_base_2(keyspace)). Finding secrets based on entropy is also integrated into all hogs. If you are implementing a custom hog, you should switch from .matches() to .matches_entropy() to get these benefits.
1313
- changed whitelist to allowlist
1414
- factored the default ruleset into it's own JSON file in src/default_rules.json. This makes it easier for you to modify and customize.
15-
- After the v1.0.7 commits are made, I will upload them to DockerHub and update the README and build scripts in the repo accordingly. This first release will be done manually and future releases should be done via build_ghrelease.sh
15+
- After the v1.0.7 commits are made, I will upload them to DockerHub and update the README and build scripts in the repo accordingly. This first release will be done manually and future releases should be done via build_ghrelease.sh
16+
17+
## v1.0.8
18+
- reworked allow lists in a few ways:
19+
- now compiles the values into regular expressions rather than using string compare
20+
- includes a default allowlist when none is specified
21+
- if the pattern name "<GLOBAL>" is used it will be checked against all patterns
22+
- moved the allowlist code into lib.rs so that all hogs will use it by default
23+

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty_hogs"
3-
version = "1.0.7"
3+
version = "1.0.8"
44
authors = ["Scott Cutler <scutler@newrelic.com>"]
55
edition = "2018"
66
description = "This project provides a set of scanners that will use regular expressions to try and detect the presence of sensitive information such as API keys, passwords, and personal information. It includes a set of regular expressions by default, but will also accept a JSON object containing your custom regular expressions."

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Download and unzip the [latest ZIP](https://github.com/newrelic/rusty-hog/releas
4848
on the releases tab. Then, run each binary with `-h` to see the usage.
4949

5050
```shell script
51-
wget https://github.com/newrelic/rusty-hog/releases/download/1.0.7/rustyhogs-musl_darwin_1.0.7.zip
52-
unzip rustyhogs-musl_darwin_1.0.7.zip
51+
wget https://github.com/newrelic/rusty-hog/releases/download/1.0.8/rustyhogs-musl_darwin_1.0.8.zip
52+
unzip rustyhogs-musl_darwin_1.0.8.zip
5353
darwin_releases/choctaw_hog -h
5454
```
5555

@@ -58,8 +58,8 @@ Rusty Hog Docker images can be found at the authors personal DockerHub page [her
5858
A Docker Image is built for each Hog and for each release. So to use choctaw_hog you would run the following commands:
5959

6060
```shell script
61-
docker pull wetfeet2000/choctaw_hog:1.0.7
62-
docker run -it --rm wetfeet2000/choctaw_hog:1.0.7 --help
61+
docker pull wetfeet2000/choctaw_hog:1.0.8
62+
docker run -it --rm wetfeet2000/choctaw_hog:1.0.8 --help
6363
```
6464

6565
## How to build
@@ -288,7 +288,7 @@ properties output by the scanner.
288288
Each value should be a string containing a valid [https://docs.rs/regex/1.3.9/regex/#syntax](regular expression for Rust)
289289
that should match the type of secret described by its corresponding key.
290290

291-
As of version 1.0.7, the Rusty Hog engine also supports objects as values for each secret.
291+
As of version 1.0.8, the Rusty Hog engine also supports objects as values for each secret.
292292
The object can contain all of the following:
293293

294294
- a pattern property with the matching regex expression (mandatory)
@@ -443,12 +443,7 @@ Keep in mind that when you submit your pull request, you'll need to sign the CLA
443443

444444

445445
## Feature Roadmap
446-
- 1.0.7:
447-
- [x] Replace whitelist with allowlist
448-
- [x] Improve email regex to stop extraneous matches (https://github.com/newrelic/rusty-hog/issues/11)
449-
- [x] Add documentation around DockerHub and Docker usage
450-
- [x] Perform at-compile-time inclusion of the default ruleset which can sit in an external JSON file
451-
446+
452447
- 1.1: Enterprise features
453448
- [ ] Support config files (instead of command line args)
454449
- [ ] Support environment variables instead of CLI args

src/bin/ankamali_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use rusty_hogs::{SecretScanner, SecretScannerBuilder};
4545
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
4646
fn main() {
4747
let matches = clap_app!(ankamali_hog =>
48-
(version: "1.0.7")
48+
(version: "1.0.8")
4949
(author: "Scott Cutler <scutler@newrelic.com>")
5050
(about: "Google Drive secret scanner in Rust.")
5151
(@arg REGEX: --regex +takes_value "Sets a custom regex JSON file")

src/bin/berkshire_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use std::iter::FromIterator;
4646
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
4747
fn main() {
4848
let matches = clap_app!(berkshire_hog =>
49-
(version: "1.0.7")
49+
(version: "1.0.8")
5050
(author: "Scott Cutler <scutler@newrelic.com>")
5151
(about: "S3 secret hunter in Rust. Avoid bandwidth costs, run this within a VPC!")
5252
(@arg REGEX: --regex +takes_value "Sets a custom regex JSON file")

src/bin/choctaw_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use rusty_hogs::{SecretScanner, SecretScannerBuilder};
5252
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
5353
fn main() {
5454
let matches = clap_app!(choctaw_hog =>
55-
(version: "1.0.7")
55+
(version: "1.0.8")
5656
(author: "Scott Cutler <scutler@newrelic.com>")
5757
(about: "Git secret scanner in Rust")
5858
(@arg REGEX: -r --regex +takes_value "Sets a custom regex JSON file")

src/bin/duroc_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const GZEXTENSIONS: &[&str] = &["gz", "tgz"];
6969
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
7070
fn main() {
7171
let matches = clap_app!(duroc_hog =>
72-
(version: "1.0.7")
72+
(version: "1.0.8")
7373
(author: "Scott Cutler <scutler@newrelic.com>")
7474
(about: "File system secret scanner in Rust")
7575
(@arg REGEX: -r --regex +takes_value "Sets a custom regex JSON file")

src/bin/essex_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct ConfluencePage {
6868
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
6969
fn main() {
7070
let matches = clap_app!(gottingen_hog =>
71-
(version: "1.0.7")
71+
(version: "1.0.8")
7272
(author: "Emily Cain <ecain@newrelic.com>, Scott Cutler")
7373
(about: "Confluence secret scanner in Rust.")
7474
(@arg REGEX: --regex +takes_value "Sets a custom regex JSON file")

src/bin/gottingen_hog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct JiraFinding {
6060
/// Main entry function that uses the [clap crate](https://docs.rs/clap/2.33.0/clap/)
6161
fn main() {
6262
let matches = clap_app!(gottingen_hog =>
63-
(version: "1.0.7")
63+
(version: "1.0.8")
6464
(author: "Emily Cain <ecain@newrelic.com>")
6565
(about: "Jira secret scanner in Rust.")
6666
(@arg REGEX: --regex +takes_value "Sets a custom regex JSON file")

0 commit comments

Comments
 (0)