You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* initial commit
* update shared resources name patterns
* nodejs20.x + update default name pattern
* fmt
* enhance function name variable to api gateway
* improve secrets management
* example + readme
* fix example
* update readme + mvoe logic to locals
* github source code
* formatting
* update all sources codes
* update gitlab source code
* add changelog + cr changes
* update outputs & readme
* remove SPECTRAL_DSN
* rename to api_triggered_function_name
* improve role name
* add HOME to default variables
* make sure HOME is set
* lambda module take var from var
* formatting
* GH bot 2.0.4
* update date in change log
All notable changes to this project will be documented in this file.
4
+
5
+
## [3.0.0] - 2024-06-25
6
+
7
+
### Added
8
+
9
+
- Support to GitHub bot 2.x deployment integration
10
+
- Enable running multiple bot instances of the same type in a single region
11
+
- Enable setting a custom pattern for all the resources created by the module
12
+
- Enable setting a path to the lambda source code (Zip file)
13
+
14
+
### Changed
15
+
16
+
- Lambdas runtime upgraded to node20.x
17
+
18
+
## [2.1.0] - 2023-08-16
19
+
20
+
### Added
21
+
22
+
- Support hardening & engines flag
23
+
24
+
## [2.0.0] - 2023-06-18
25
+
26
+
### Changed
27
+
28
+
- GitLab's integration infrastructure is now based on multiple lambda functions to make sure the response is being sent to GitLab in less than 10 seconds
29
+
30
+
## [1.1.1] - 2023-05-31
31
+
32
+
### Added
33
+
34
+
- Option to pull the secrets required for the GitLab bot to accessed from AWS secrets manager
35
+
36
+
## [1.1.0] - 2022-12-11
37
+
38
+
### Changed
39
+
40
+
- New versions of GitLab and TFC using new Spectral severities
41
+
42
+
## [1.0.2] - 2022-10-23
43
+
44
+
### Added
45
+
46
+
- Support for Jira integration
47
+
- Support for GitLab integration
48
+
49
+
## [1.0.1] - 2022-10-05
50
+
51
+
### Changed
52
+
53
+
- Bots are now downloading the latest Spectral scanner version instead of accessing the scanner through a lambda layer
|`environment`| The target environment name for deployment |`string`|`prod`| No |
24
-
|`integration_type`| Spectral integration type (A unique phrase describing the integration) - Available values: `terraform`, `jira` and `gitlab`|`string`| N/A | Yes |
25
-
|[`env_vars`](#env_vars)| Extendable object contains all required environment variables required for the integration. |`map(string)`| N/A | No |
26
-
|[`global_tags`](#global_tags)| Tags to be applied on every newly created resource. |`map(string)`|```{ BusinessUnit = "Spectral" }```| No |
27
-
|[`tags`](#tags)| Tags to be applied on concrete resources |`map(map(string))`|```{ iam = { } lambda = { } api_gateway = { } }```| No |
28
-
|`lambda_enable_logs`| Specifies if Lambda should have CloudWatch a dedicated logs group. |`bool`|`false`| No |
29
-
|`lambda_logs_retention_in_days`| Specifies the number of days you want to retain log events in the specified log group. |`number`|`30`| No |
30
-
|`lambda_function_timeout`| Amount of time your Lambda Function has to run in seconds. |`number`| 300 | No |
31
-
|`lambda_function_memory_size`| Amount of memory in MB your Lambda Function can use at runtime. |`number`| 1024 | No |
32
-
|`lambda_publish`| Whether to publish creation/change as new Lambda Function Version. |`bool`|`false`| No |
33
-
|`store_secret_in_secrets_manager`| Whether to store secrets values on a vault (currently supporting AWS secrets manager on GitLab integration). |`bool`|`false`| No |
36
+
| Name | Description | Type | Default | Required |
| <aname="input_backend_lambda_source_code_path"></a> [backend\_lambda\_source\_code\_path](#input\_backend\_lambda\_source\_code\_path)| Path to the lambda source code zip file of the backend lambda |`string`|`null`| no |
39
+
| <aname="input_env_vars"></a> [env\_vars](#input\_env\_vars)| Extendable object contains all required environment variables required for the integration. |`map(string)`| <pre>{<br> "CHECK_POLICY": "Fail on errors only",<br> "SPECTRAL_DSN": ""<br>}</pre> | no |
40
+
| <aname="input_environment"></a> [environment](#input\_environment)| The target environment name for deployment. |`string`|`"prod"`| no |
41
+
| <aname="input_frontend_lambda_source_code_path"></a> [frontend\_lambda\_source\_code\_path](#input\_frontend\_lambda\_source\_code\_path)| Path to the lambda source code zip file of the frontend lambda |`string`|`null`| no |
42
+
| <aname="input_gateway_api_integration_timeout_milliseconds"></a> [gateway\_api\_integration\_timeout\_milliseconds](#input\_gateway\_api\_integration\_timeout\_milliseconds)| Timeout for the API Gateway to wait for lambda response |`number`|`29000`| no |
43
+
| <aname="input_global_tags"></a> [global\_tags](#input\_global\_tags)| A list of tags to apply on all newly created resources. |`map(string)`| <pre>{<br> "BusinessUnit": "Spectral"<br>}</pre> | no |
44
+
| <aname="input_integration_type"></a> [integration\_type](#input\_integration\_type)| Spectral integration type (A unique phrase describing the integration) - Available values: `github`, `terraform`, `jira` and `gitlab`|`string`| n/a | yes |
45
+
| <aname="input_lambda_enable_logs"></a> [lambda\_enable\_logs](#input\_lambda\_enable\_logs)| Specifies if Lambda should have CloudWatch a dedicated logs group. |`bool`|`false`| no |
46
+
| <aname="input_lambda_function_memory_size"></a> [lambda\_function\_memory\_size](#input\_lambda\_function\_memory\_size)| Amount of memory in MB your Lambda Function can use at runtime. Defaults to 1024. |`number`|`1024`| no |
47
+
| <aname="input_lambda_function_timeout"></a> [lambda\_function\_timeout](#input\_lambda\_function\_timeout)| Amount of time your Lambda Function has to run in seconds. |`number`|`300`| no |
48
+
| <aname="input_lambda_logs_retention_in_days"></a> [lambda\_logs\_retention\_in\_days](#input\_lambda\_logs\_retention\_in\_days)| Specifies the number of days you want to retain log events in the specified log group. |`number`|`30`| no |
49
+
| <aname="input_lambda_publish"></a> [lambda\_publish](#input\_lambda\_publish)| Whether to publish creation/change as new Lambda Function Version. |`bool`|`false`| no |
50
+
| <aname="input_lambda_source_code_path"></a> [lambda\_source\_code\_path](#input\_lambda\_source\_code\_path)| Path to the lambda source code zip file |`string`|`null`| no |
51
+
| <aname="input_resource_name_common_part"></a> [resource\_name\_common\_part](#input\_resource\_name\_common\_part)| A common part for all resources created under the stack |`string`|`null`| no |
52
+
| <aname="input_secrets_names"></a> [secrets\_names](#input\_secrets\_names)| Names of secrets to create |`list(string)`|`null`| no |
53
+
| <aname="input_store_secret_in_secrets_manager"></a> [store\_secret\_in\_secrets\_manager](#input\_store\_secret\_in\_secrets\_manager)| Whether to store your secrets in secrets manager, default is false |`bool`|`false`| no |
54
+
| <aname="input_tags"></a> [tags](#input\_tags)| A collection of tags grouped by key representing it's target resource. |`map(map(string))`| <pre>{<br> "api_gateway": {},<br> "iam": {},<br> "lambda": {}<br>}</pre> | no |
34
55
35
56
### env_vars
36
57
37
-
In some integrations, Spectral requires some extra environment variables besides the default ones.
38
-
Those extra variables should be added to the `env_vars` map in addition to `SPECTRAL_DSN` which is mandatory.
39
-
40
-
Please refer to our docs / source pages to view the extra environment variables needed for the integration.
58
+
In some integrations, Spectral requires some environment variables besides the default ones.
59
+
Those variables should be added to the `env_vars`.
41
60
42
-
##### SPECTRAL_DSN (mandatory)
61
+
Please refer to our [docs](https://guides.spectralops.io/docs/welcome-to-checkpoint-cloudguard-guides) / source pages to view the extra environment variables needed for the integration.
43
62
44
-
Your SpectralOps identifier, retrieved from your SpectralOps account.
2.`rest_api_url` - The URL for accessing the lambda through the ApiGateway.
147
-
3.`rest_api_arn` - Amazon Resource Name (ARN) identifying your Rest API.
148
-
4.`rest_api_execution_arn` - The execution ARN part to be used in lambda_permission's source_arn, not concatenated to other allowed API resources.
149
-
5.`rest_api_lambda_execution_arn` - The execution ARN part to be used in lambda_permission's source_arn, concatenated with allowed API resources (method & path).
150
-
6.`lambda_function_arn` - Amazon Resource Name (ARN) identifying your Lambda Function.
151
-
7.`lambda_function_name` - The name of the lambda function.
152
-
8.`lambda_iam_role_arn` - Amazon Resource Name (ARN) specifying the role.
153
-
9.`lambda_iam_role_name` - Name of the role.
154
-
10.`secrets_arns` - Arns of created secrets in secrets manager.
163
+
| Name | Description |
164
+
|------|-------------|
165
+
| <aname="output_lambda_function_arn"></a> [lambda\_function\_arn](#output\_lambda\_function\_arn)| Amazon Resource Name (ARN) identifying your Lambda Function |
166
+
| <aname="output_lambda_function_name"></a> [lambda\_function\_name](#output\_lambda\_function\_name)| The name of the lambda function |
167
+
| <aname="output_lambda_iam_role_arn"></a> [lambda\_iam\_role\_arn](#output\_lambda\_iam\_role\_arn)| Amazon Resource Name (ARN) specifying the role |
168
+
| <aname="output_lambda_iam_role_name"></a> [lambda\_iam\_role\_name](#output\_lambda\_iam\_role\_name)| Name of the role |
169
+
| <aname="output_rest_api_arn"></a> [rest\_api\_arn](#output\_rest\_api\_arn)| Amazon Resource Name (ARN) identifying your Rest API |
170
+
| <aname="output_rest_api_execution_arn"></a> [rest\_api\_execution\_arn](#output\_rest\_api\_execution\_arn)| The execution ARN part to be used in lambda\_permission's source\_arn, not concatenated to other allowed API resources |
171
+
| <aname="output_rest_api_id"></a> [rest\_api\_id](#output\_rest\_api\_id)| The ID of the REST API |
172
+
| <aname="output_rest_api_lambda_execution_arn"></a> [rest\_api\_lambda\_execution\_arn](#output\_rest\_api\_lambda\_execution\_arn)| The execution ARN part to be used in lambda\_permission's source\_arn, concatenated with allowed API resources (method & path) |
173
+
| <aname="output_rest_api_url"></a> [rest\_api\_url](#output\_rest\_api\_url)| The URL for accessing the lambda through the ApiGateway |
174
+
| <aname="output_secrets_arns"></a> [secrets\_arns](#output\_secrets\_arns)| Arns of created secrets in secrets manager |
175
+
176
+
## Support
177
+
178
+
For GitHub deployment - only bot version 2.x is supported.
179
+
The default GitHub bot version that this module deploys is 2.0.4, if you wish to use other versions please set local paths to the relevant ZIP files.
0 commit comments