-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from jfrog/add-block-release-bundle-actions-t…
…o-policy Add block release bundle promotion attribute to policy
- Loading branch information
Showing
11 changed files
with
73 additions
and
25 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 |
---|---|---|
|
@@ -37,6 +37,7 @@ resource "xray_license_policy" "allowed_licenses" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = false | ||
block_release_bundle_promotion = false | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
@@ -130,6 +131,7 @@ Required: | |
Optional: | ||
|
||
- `block_release_bundle_distribution` (Boolean) Blocks Release Bundle distribution to Edge nodes if a violation is found. Default value is `false`. | ||
- `block_release_bundle_promotion` (Boolean) Blocks Release Bundle promotion if a violation is found. Default value is `false`. | ||
- `build_failure_grace_period_in_days` (Number) Allow grace period for certain number of days. All violations will be ignored during this time. To be used only if `fail_build` is enabled. | ||
- `create_ticket_enabled` (Boolean) Create Jira Ticket for this Policy Violation. Requires configured Jira integration. Default value is `false`. | ||
- `custom_severity` (String) The severity of violation to be triggered if the `criteria` are met. | ||
|
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 |
---|---|---|
|
@@ -29,6 +29,7 @@ resource "xray_operational_risk_policy" "min_risk" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = false | ||
block_release_bundle_promotion = false | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
@@ -126,6 +127,7 @@ Required: | |
Optional: | ||
|
||
- `block_release_bundle_distribution` (Boolean) Blocks Release Bundle distribution to Edge nodes if a violation is found. Default value is `false`. | ||
- `block_release_bundle_promotion` (Boolean) Blocks Release Bundle promotion if a violation is found. Default value is `false`. | ||
- `build_failure_grace_period_in_days` (Number) Allow grace period for certain number of days. All violations will be ignored during this time. To be used only if `fail_build` is enabled. | ||
- `create_ticket_enabled` (Boolean) Create Jira Ticket for this Policy Violation. Requires configured Jira integration. Default value is `false`. | ||
- `fail_build` (Boolean) Whether or not the related CI build should be marked as failed if a violation is triggered. This option is only available when the policy is applied to an `xray_watch` resource with a `type` of `builds`. Default value is `false`. | ||
|
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 |
---|---|---|
|
@@ -36,6 +36,7 @@ resource "xray_security_policy" "min_severity" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = true | ||
block_release_bundle_promotion = true | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
@@ -160,6 +161,7 @@ Required: | |
Optional: | ||
|
||
- `block_release_bundle_distribution` (Boolean) Blocks Release Bundle distribution to Edge nodes if a violation is found. Default value is `false`. | ||
- `block_release_bundle_promotion` (Boolean) Blocks Release Bundle promotion if a violation is found. Default value is `false`. | ||
- `build_failure_grace_period_in_days` (Number) Allow grace period for certain number of days. All violations will be ignored during this time. To be used only if `fail_build` is enabled. | ||
- `create_ticket_enabled` (Boolean) Create Jira Ticket for this Policy Violation. Requires configured Jira integration. Default value is `false`. | ||
- `fail_build` (Boolean) Whether or not the related CI build should be marked as failed if a violation is triggered. This option is only available when the policy is applied to an `xray_watch` resource with a `type` of `builds`. Default value is `false`. | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ resource "xray_license_policy" "allowed_licenses" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = false | ||
block_release_bundle_promotion = false | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ resource "xray_operational_risk_policy" "min_risk" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = false | ||
block_release_bundle_promotion = false | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ resource "xray_security_policy" "min_severity" { | |
webhooks = [] | ||
mails = ["[email protected]"] | ||
block_release_bundle_distribution = true | ||
block_release_bundle_promotion = true | ||
fail_build = true | ||
notify_watch_recipients = true | ||
notify_deployer = true | ||
|
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
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
Oops, something went wrong.