This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Jfrog rule for preventing plain text passwords.
* add jfrog template * add content to rule * add jfrog template * add content to rule * add rule scema for github * add rule scema for github * add password in step level * move to examples dir * separate bugfix brunch * separate bugfix brunch * add jfrog pipeline example * add jfrog pipeline example * fix schema * add recursive jfrog rule * add recursive jfrog rule * add filter out errors * add filter out errors * cr fixes
- Loading branch information
Showing
3 changed files
with
76 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"description": "Prevent use of password as plain text", | ||
"failureMessage": "a password key is used without obfuscation. We recommend using github secrets manager or gitlab-vault instead", | ||
"uniqueId": 13, | ||
"enabledByDefault": true, | ||
"inCodeImplementation": false, | ||
"schema": { | ||
"definitions": { | ||
"passwordPattern": { | ||
"type": "string", | ||
"pattern": "\\${{.*}}( *|$)|DYNAMIC_VALUE" | ||
}, | ||
"lookup": { | ||
"properties": { | ||
"configuration": { | ||
"type": "object", | ||
"patternProperties": { | ||
".*password.*": { | ||
"$ref": "#/definitions/passwordPattern" | ||
}, | ||
"inputResources": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"patternProperties": { | ||
".*password.*": { | ||
"$ref": "#/definitions/passwordPattern" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/lookup" | ||
} | ||
], | ||
"additionalProperties": { | ||
"$ref": "#" | ||
}, | ||
"items": { | ||
"$ref": "#" | ||
} | ||
} | ||
} | ||
|
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