@fishawack/lab-env 5.7.0-beta.9 → 5.7.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -0
- package/_Ai/lab-env-@.md +3 -3
- package/_Scripts/post-release.sh +1 -1
- package/adonis/0/docker-compose.yml +1 -1
- package/commands/create/libs/aws-cloudfront-response.js +11 -0
- package/commands/create/services/aws/rds.js +43 -6
- package/core/1/CHANGELOG.md +53 -0
- package/core/1/Dockerfile +3 -3
- package/core/1/bitbucket-pipelines.yml +5 -5
- package/core/1/entrypoint.sh +3 -0
- package/core/1/package.json +1 -1
- package/drupal/9/docker-compose.yml +1 -2
- package/laravel/10/docker-compose.yml +1 -1
- package/laravel/9/docker-compose.yml +1 -1
- package/package.json +1 -1
- package/wordpress/1/docker-compose.yml +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,116 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 5.7.1-beta.1 (2026-09-07)
|
|
4
|
+
|
|
5
|
+
#### Build Updates
|
|
6
|
+
|
|
7
|
+
* **core/1:** Bumped lab-env-core-1 ([88c2d1b](https://bitbucket.org/fishawackdigital/lab-env/commits/88c2d1bd805eb29a0bf9538d71107e136889e1f2))
|
|
8
|
+
|
|
9
|
+
### 5.7.0 (2026-08-25)
|
|
10
|
+
|
|
11
|
+
#### Features
|
|
12
|
+
|
|
13
|
+
* ability to add opensearch to laravel fullstack provisions ([6218c78](https://bitbucket.org/fishawackdigital/lab-env/commits/6218c7835124941fd63ef8056c462a8775f6d7ae))
|
|
14
|
+
* added a rekey that keeps an operator from accidentally removing their own keys ([a5887c8](https://bitbucket.org/fishawackdigital/lab-env/commits/a5887c809c76df27d7a3cd42ab309b4a3ffd852a))
|
|
15
|
+
* added a sync secrets command ([c98c66d](https://bitbucket.org/fishawackdigital/lab-env/commits/c98c66dc0d92bdac9dd79ae544362e60bae4ac88))
|
|
16
|
+
* added cron and queue setup as default laravel files ([21a74c5](https://bitbucket.org/fishawackdigital/lab-env/commits/21a74c54e492e498985934ce2f5b507b42f79dd7))
|
|
17
|
+
* added ssm permission to ec2 role ([7b0195b](https://bitbucket.org/fishawackdigital/lab-env/commits/7b0195b98c59dd4fdcc8ca6848847dddda9ffb61))
|
|
18
|
+
* added the ability to restore from snapshot ([c0f3c6c](https://bitbucket.org/fishawackdigital/lab-env/commits/c0f3c6c5ee841121e78bc38047e40336c5880ef0))
|
|
19
|
+
* app now prompts for smtp creds and creates them for operators ([6fb1916](https://bitbucket.org/fishawackdigital/lab-env/commits/6fb1916b2685bfc0248ef5b27da86d7ad0ab9b69))
|
|
20
|
+
* auto configuration of the acm cert and port 443 listener if cert found ([878ce17](https://bitbucket.org/fishawackdigital/lab-env/commits/878ce175b6031a7ee6cd9f84420c8ace4d858093))
|
|
21
|
+
* **devops:** misc.json setup, SES rotation recovery, runner ordering ([3c6ec70](https://bitbucket.org/fishawackdigital/lab-env/commits/3c6ec70df5e54ad4683a9a5b4e8e3accb681121d))
|
|
22
|
+
* ec2 instances always in private and prompt for load balancer visibility + python now dynamic ([bd651cb](https://bitbucket.org/fishawackdigital/lab-env/commits/bd651cb78733d45bf1601e24dbd9c5a5ffc458e0))
|
|
23
|
+
* elasticbeanstlak now fully utilizes secrets manager and has options to persist after delete ([bbb252c](https://bitbucket.org/fishawackdigital/lab-env/commits/bbb252cf5e2f07551c63df6fcebd574c1a84d9ab))
|
|
24
|
+
* elb instance profile and managed update profile now include reading secretmanager permissions ([9059b01](https://bitbucket.org/fishawackdigital/lab-env/commits/9059b010ce781e07f3630aba5bb0b88556bed929))
|
|
25
|
+
* encryption in transit for db connections by default for laravel applications and enforcement ([cac6590](https://bitbucket.org/fishawackdigital/lab-env/commits/cac659083dfef46eb047b943451be854d4daf94f))
|
|
26
|
+
* ensure private subnets now a standard part of the prov command ([22f9876](https://bitbucket.org/fishawackdigital/lab-env/commits/22f9876e390689f7e94939be3839d0a2312f5f10))
|
|
27
|
+
* environment prompt and setting in outputted json ([77eac4d](https://bitbucket.org/fishawackdigital/lab-env/commits/77eac4d392441c18c90bb22f9054d69f8e9393b9))
|
|
28
|
+
* export base64 encoded creds for runner users ([9b2d05e](https://bitbucket.org/fishawackdigital/lab-env/commits/9b2d05e7ebc1120c39ae8d1752e99fc23a2bd99f))
|
|
29
|
+
* ignore 400s and health checks on load balancer now baked in rather than configs ([8e56878](https://bitbucket.org/fishawackdigital/lab-env/commits/8e568788804508220093a3a6803d1185fda72a4f))
|
|
30
|
+
* populate session domain when app domain defined ([6df2fef](https://bitbucket.org/fishawackdigital/lab-env/commits/6df2fefe9ab94487864e16b00ce7d4a2ac98230e))
|
|
31
|
+
* prompt for instance size ([be6d133](https://bitbucket.org/fishawackdigital/lab-env/commits/be6d133e792fa1cd5b8c7f16225f3aa7ec0d1ca1))
|
|
32
|
+
* prompt users for eb files that have changed ([0572244](https://bitbucket.org/fishawackdigital/lab-env/commits/057224429aeeb267fd8207cb19f25f152294ba4d))
|
|
33
|
+
* rds and s3 no fully decoupled from fullstack and can be reattached to recreated elb instances ([72d3361](https://bitbucket.org/fishawackdigital/lab-env/commits/72d3361441e37d70f8b78dc98850828a92ea48a1))
|
|
34
|
+
* rds now also creates in private subnet ([e7fb89d](https://bitbucket.org/fishawackdigital/lab-env/commits/e7fb89d9dfbb3fe62c34e8a07c6ba1c7fc732964))
|
|
35
|
+
* run key commands in parallel with parallel logging ([17cba11](https://bitbucket.org/fishawackdigital/lab-env/commits/17cba11118ddabd9ee49a187923ce28044ce5654))
|
|
36
|
+
* setvars now utilizes secret manager secrets instead of plain text ([462ef90](https://bitbucket.org/fishawackdigital/lab-env/commits/462ef9077dad31b420355038c3264abf471164b9))
|
|
37
|
+
* support adding email creds with dedicated iam user ([451672a](https://bitbucket.org/fishawackdigital/lab-env/commits/451672a852b40b9d7ddb5b1ee8daaee5951f71e2))
|
|
38
|
+
* support cache option and parallelize prov and deprov ([7081109](https://bitbucket.org/fishawackdigital/lab-env/commits/7081109f4413d4b78a83d4531c96f28181151746))
|
|
39
|
+
* support creating elasticcache option ([71ea8c3](https://bitbucket.org/fishawackdigital/lab-env/commits/71ea8c3bead34f27d960b29115684bdf0ad4e717))
|
|
40
|
+
* support green blue flag to mirror env ([fdfb4ea](https://bitbucket.org/fishawackdigital/lab-env/commits/fdfb4ea0a68829950f2b7aee7429d0c7b026bfe8))
|
|
41
|
+
* use instance role and bucket policy for access now and move restore to after preflight checks ([c4bc090](https://bitbucket.org/fishawackdigital/lab-env/commits/c4bc090927a8dd9d43a52b93f06926e7167003b2))
|
|
42
|
+
|
|
43
|
+
#### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* add a new Argenx account ([0cafb05](https://bitbucket.org/fishawackdigital/lab-env/commits/0cafb057ca83afe081dce8511ed945008234b3fe))
|
|
46
|
+
* add timeout for aws key calls themselves ([389444c](https://bitbucket.org/fishawackdigital/lab-env/commits/389444cf7c0c61273b8dc7edf2d0d6695a1047a7))
|
|
47
|
+
* added missing opensearch secret store into setvars ([d764a2a](https://bitbucket.org/fishawackdigital/lab-env/commits/d764a2abb8e02c31acec5230a0d6a74b5a5ed47f))
|
|
48
|
+
* added missing ses permission for fullstack roles ([9da2562](https://bitbucket.org/fishawackdigital/lab-env/commits/9da256264ef3ac923bcf4acf0b531e28c3aa154f))
|
|
49
|
+
* added more places where rekey can bypass without project ([44e8ca4](https://bitbucket.org/fishawackdigital/lab-env/commits/44e8ca4ec2a1199d96e857338516628d51cb7e1d))
|
|
50
|
+
* added restart queue to config post deploy ([397a138](https://bitbucket.org/fishawackdigital/lab-env/commits/397a138c46d45e4e437820f0e14e574bda19ea74))
|
|
51
|
+
* added secret manager permission to fullstack deploy permissions ([6432d2d](https://bitbucket.org/fishawackdigital/lab-env/commits/6432d2d756e19e96c62d8c29dd79828811ecf1ac))
|
|
52
|
+
* added tags to resources that were missing them ([8347271](https://bitbucket.org/fishawackdigital/lab-env/commits/8347271cefa467ae70da62d71782509cf44c7f54))
|
|
53
|
+
* allow rekey outside of projects ([94b511b](https://bitbucket.org/fishawackdigital/lab-env/commits/94b511b629fbf80b842a9ab5db9f3671f1f603f0))
|
|
54
|
+
* app name now defaults to sentence case from app title ([a799af1](https://bitbucket.org/fishawackdigital/lab-env/commits/a799af1bae31fc28ab18747415c7a74f96871507))
|
|
55
|
+
* aws region now part of app secrets ([6446778](https://bitbucket.org/fishawackdigital/lab-env/commits/6446778a9335a52d13b059590c1921f018d6d516))
|
|
56
|
+
* coerce tags to strings and keep checksums of files to detect local changes ([c44ed04](https://bitbucket.org/fishawackdigital/lab-env/commits/c44ed04905d1f3ef9077409d8da71be897dd980b))
|
|
57
|
+
* concurrency set back to 5 for more stable key commands ([a5e7382](https://bitbucket.org/fishawackdigital/lab-env/commits/a5e7382b9731ad2a5a60110a54e27ebe4af45391))
|
|
58
|
+
* correctly tag iam ec2 role for eb with tags ([204aced](https://bitbucket.org/fishawackdigital/lab-env/commits/204acedd6f63af0b6c72875b12b6e97660dfa6a3))
|
|
59
|
+
* delete now runs in parallel ([52a9997](https://bitbucket.org/fishawackdigital/lab-env/commits/52a99974b5bd09427e7430d83321be0a1c28ebde))
|
|
60
|
+
* disable public access to RDS instances ([d4759e8](https://bitbucket.org/fishawackdigital/lab-env/commits/d4759e8ac11ecfbb22b0c3c80c96d5781ae8bda9))
|
|
61
|
+
* dont copy nginx healthcheck anymore now laravel provides ([eed3730](https://bitbucket.org/fishawackdigital/lab-env/commits/eed37305a93ce3cc5c2b91fbb8b94ce52e99a597))
|
|
62
|
+
* duplicate hooks to avoid permission issues and move setvars to prebuild: ([861e6e5](https://bitbucket.org/fishawackdigital/lab-env/commits/861e6e5579524ec757288781f99a30fe86b9127d))
|
|
63
|
+
* fail deprov if env goes back to ready ([e3dc73f](https://bitbucket.org/fishawackdigital/lab-env/commits/e3dc73fb21cc0a9d5f356d0f9c1d88d08cfdf13b))
|
|
64
|
+
* force html to never cache via server headers ([90a6a5b](https://bitbucket.org/fishawackdigital/lab-env/commits/90a6a5b3c62321b2a44417ae01380442fa42e2f3))
|
|
65
|
+
* fullstack provision now indempotent and search enforces search role ([ca374ca](https://bitbucket.org/fishawackdigital/lab-env/commits/ca374caf5c1efa0fa216f62db776591de228e8d5))
|
|
66
|
+
* go back to config for healtcheck as needs to be done via resources ([f8c50fa](https://bitbucket.org/fishawackdigital/lab-env/commits/f8c50fa4c5ac110c846aa39af7f5fa785d631b30))
|
|
67
|
+
* handle double hypen name safe values to always enforce only a single ([4a18dde](https://bitbucket.org/fishawackdigital/lab-env/commits/4a18dde460d49e5034f5952977c5fa5727d02126))
|
|
68
|
+
* iac code now placed in dedicated IaC dir and htpasswd on fullstack deprecated ([d41c17c](https://bitbucket.org/fishawackdigital/lab-env/commits/d41c17c026e525ef9f97a033d783ea1ccf8c1018))
|
|
69
|
+
* increase timeout on test suits before call ([a0a31c8](https://bitbucket.org/fishawackdigital/lab-env/commits/a0a31c89e7d548a13e0f0ecdf1c591a1e2463506))
|
|
70
|
+
* instance size now abstracted ([57c5996](https://bitbucket.org/fishawackdigital/lab-env/commits/57c59962b101ebb6d43debc639ae3deb04e5e660))
|
|
71
|
+
* instance size qusetions now comes after healhchecks ([fd22642](https://bitbucket.org/fishawackdigital/lab-env/commits/fd22642b8e23a6e0bb6f7d5f661d9647be98ce2f))
|
|
72
|
+
* moved setvars config update to prebuild for consistency ([64483d0](https://bitbucket.org/fishawackdigital/lab-env/commits/64483d0473f2c3f449a55f0f6fe6ee1e565c12a9))
|
|
73
|
+
* moved setvars to hooks so it processes on config updates aswell as deploys ([1b88516](https://bitbucket.org/fishawackdigital/lab-env/commits/1b88516852ba56000bffce833a094437fa5ef865))
|
|
74
|
+
* prov mysql 8.4.10 on new sites ([c4fd6ea](https://bitbucket.org/fishawackdigital/lab-env/commits/c4fd6ea4422451132552c5cc0b3ef0590a6b6c97))
|
|
75
|
+
* remove boilerplate-vue as option now its deprecated ([e8c097a](https://bitbucket.org/fishawackdigital/lab-env/commits/e8c097af21260c127defb90bb85c0eed224f35c2))
|
|
76
|
+
* remove laravel-vue as separate option ([cbfa13c](https://bitbucket.org/fishawackdigital/lab-env/commits/cbfa13c19019627b0aedc18781209f3dcf01c63f))
|
|
77
|
+
* removed deprecated flag from mysql start command for drupal and wordpress ([b7853d6](https://bitbucket.org/fishawackdigital/lab-env/commits/b7853d6e67ee5dba0e4c9421ad4f7497ccb84584))
|
|
78
|
+
* renamed setvars to setvars-secure to be backwards compatible ([c0edccc](https://bitbucket.org/fishawackdigital/lab-env/commits/c0edcccea465f61b0273c5315c3b19d429555af8))
|
|
79
|
+
* retry on rate limits and aws errors on key commands ([0244221](https://bitbucket.org/fishawackdigital/lab-env/commits/0244221b8a263256f015380280024c862213b885))
|
|
80
|
+
* rotate email creds before operator iam permissions ([a4f510e](https://bitbucket.org/fishawackdigital/lab-env/commits/a4f510e916912dd199d03e4fde984c4abbb8d931))
|
|
81
|
+
* safe check for misc bitbucket vars ([cee035c](https://bitbucket.org/fishawackdigital/lab-env/commits/cee035c25f927d1b5f55c00f10fa35f08733e4bf))
|
|
82
|
+
* safe check the fail property on scans as sometimes the file doesnt exist ([e5b5e39](https://bitbucket.org/fishawackdigital/lab-env/commits/e5b5e39251e6c1c22ec7f9cf155ad5c86492e9cb))
|
|
83
|
+
* session domain now the domain given exactly ([8071c91](https://bitbucket.org/fishawackdigital/lab-env/commits/8071c911a54c869661469fe2fdcdcc3ffc10cb2b))
|
|
84
|
+
* session driver now uses database by default ([d745615](https://bitbucket.org/fishawackdigital/lab-env/commits/d7456154920ab380e2c01424e065c9aca6edf750))
|
|
85
|
+
* simpler queue worker ([4ecc62d](https://bitbucket.org/fishawackdigital/lab-env/commits/4ecc62df734c9aabdbaec1db6ea87c80169128b3))
|
|
86
|
+
* support mysql 8.4 param groups with ability to still restore older versions ([e3307dd](https://bitbucket.org/fishawackdigital/lab-env/commits/e3307ddf542781f4cfc65258f3ffc0ff30d29279))
|
|
87
|
+
* upgrade mysql version to 8.4 across all builds ([b33189b](https://bitbucket.org/fishawackdigital/lab-env/commits/b33189bf3e55a161501f29baa98107f1eb16edd9))
|
|
88
|
+
* use correct creds on pr open post release ([d560ef8](https://bitbucket.org/fishawackdigital/lab-env/commits/d560ef84c0ebd99a3ad1ffc457a9a6758fa46c06))
|
|
89
|
+
* use correct spinner class for logging ([592d7d5](https://bitbucket.org/fishawackdigital/lab-env/commits/592d7d56cf83ebfd62ce9d025450a8717222e8e0))
|
|
90
|
+
* wait for cloudfront dns before testing ([6f0c182](https://bitbucket.org/fishawackdigital/lab-env/commits/6f0c1825ebc6725fc1d92711e35b5e92939abb68))
|
|
91
|
+
|
|
92
|
+
#### Build Updates
|
|
93
|
+
|
|
94
|
+
* bumped to latest pipelines ([cff06a5](https://bitbucket.org/fishawackdigital/lab-env/commits/cff06a53321382533a9f30cecedb6afbb2e2832e))
|
|
95
|
+
* **core/1:** Bumped lab-env-core-1 ([594c541](https://bitbucket.org/fishawackdigital/lab-env/commits/594c541dbc4c7253ef74409f2289fc95724136ac))
|
|
96
|
+
|
|
97
|
+
### 5.7.0-beta.11 (2026-08-24)
|
|
98
|
+
|
|
99
|
+
#### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* force html to never cache via server headers ([90a6a5b](https://bitbucket.org/fishawackdigital/lab-env/commits/90a6a5b3c62321b2a44417ae01380442fa42e2f3))
|
|
102
|
+
* prov mysql 8.4.10 on new sites ([c4fd6ea](https://bitbucket.org/fishawackdigital/lab-env/commits/c4fd6ea4422451132552c5cc0b3ef0590a6b6c97))
|
|
103
|
+
* removed deprecated flag from mysql start command for drupal and wordpress ([b7853d6](https://bitbucket.org/fishawackdigital/lab-env/commits/b7853d6e67ee5dba0e4c9421ad4f7497ccb84584))
|
|
104
|
+
* support mysql 8.4 param groups with ability to still restore older versions ([e3307dd](https://bitbucket.org/fishawackdigital/lab-env/commits/e3307ddf542781f4cfc65258f3ffc0ff30d29279))
|
|
105
|
+
* upgrade mysql version to 8.4 across all builds ([b33189b](https://bitbucket.org/fishawackdigital/lab-env/commits/b33189bf3e55a161501f29baa98107f1eb16edd9))
|
|
106
|
+
* use correct creds on pr open post release ([d560ef8](https://bitbucket.org/fishawackdigital/lab-env/commits/d560ef84c0ebd99a3ad1ffc457a9a6758fa46c06))
|
|
107
|
+
|
|
108
|
+
### 5.7.0-beta.10 (2026-08-24)
|
|
109
|
+
|
|
110
|
+
#### Build Updates
|
|
111
|
+
|
|
112
|
+
* **core/1:** Bumped lab-env-core-1 ([594c541](https://bitbucket.org/fishawackdigital/lab-env/commits/594c541dbc4c7253ef74409f2289fc95724136ac))
|
|
113
|
+
|
|
3
114
|
### 5.7.0-beta.9 (2026-07-16)
|
|
4
115
|
|
|
5
116
|
#### Bug Fixes
|
package/_Ai/lab-env-@.md
CHANGED
|
@@ -58,7 +58,7 @@ The core container runs on ports:
|
|
|
58
58
|
```yaml
|
|
59
59
|
services:
|
|
60
60
|
core: # Frontend builds, deployments, Node.js
|
|
61
|
-
mysql: # Database (MySQL 8.
|
|
61
|
+
mysql: # Database (MySQL 8.4)
|
|
62
62
|
nginx: # Web server
|
|
63
63
|
php: # PHP-FPM application server
|
|
64
64
|
redis: # Caching and sessions
|
|
@@ -72,7 +72,7 @@ services:
|
|
|
72
72
|
```yaml
|
|
73
73
|
services:
|
|
74
74
|
core: # Frontend builds, deployments, Node.js
|
|
75
|
-
mysql: # Database (MySQL 8.
|
|
75
|
+
mysql: # Database (MySQL 8.4)
|
|
76
76
|
apache: # Web server with PHP
|
|
77
77
|
php: # PHP-FPM for additional processing
|
|
78
78
|
```
|
|
@@ -84,7 +84,7 @@ services:
|
|
|
84
84
|
```yaml
|
|
85
85
|
services:
|
|
86
86
|
core: # Frontend builds, deployments, Node.js
|
|
87
|
-
mysql: # Database (MySQL 8.
|
|
87
|
+
mysql: # Database (MySQL 8.4)
|
|
88
88
|
apache: # Web server with PHP
|
|
89
89
|
php: # PHP-FPM application server
|
|
90
90
|
```
|
package/_Scripts/post-release.sh
CHANGED
|
@@ -21,7 +21,7 @@ git commit -m "build($BITBUCKET_REPO_SLUG): Bumped $BITBUCKET_REPO_SLUG"
|
|
|
21
21
|
git push origin "$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT"
|
|
22
22
|
|
|
23
23
|
curl https://api.bitbucket.org/2.0/repositories/fishawackdigital/aws-runner/pullrequests \
|
|
24
|
-
|
|
24
|
+
--header "Authorization: Bearer $BITBUCKET_ACCESS_TOKEN" \
|
|
25
25
|
--header 'Content-Type: application/json' \
|
|
26
26
|
--data "{
|
|
27
27
|
\"title\": \"Bumped $BITBUCKET_REPO_SLUG\",
|
|
@@ -24,5 +24,16 @@ function handler(event) {
|
|
|
24
24
|
headers["x-frame-options"] = { value: "sameorigin" };
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// Ensure html files aren't cached by browser
|
|
28
|
+
var contentType =
|
|
29
|
+
(headers["content-type"] && headers["content-type"].value) || "";
|
|
30
|
+
var isHtml = contentType.includes("text/html");
|
|
31
|
+
|
|
32
|
+
if (isHtml) {
|
|
33
|
+
headers["cache-control"] = {
|
|
34
|
+
value: "no-cache, no-store, must-revalidate",
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
27
38
|
return response;
|
|
28
39
|
}
|
|
@@ -63,7 +63,7 @@ module.exports.createRDSInstance = async (
|
|
|
63
63
|
DBInstanceIdentifier: name,
|
|
64
64
|
DBInstanceClass: "db.t3.small",
|
|
65
65
|
Engine: "mysql",
|
|
66
|
-
EngineVersion: "8.
|
|
66
|
+
EngineVersion: "8.4.10",
|
|
67
67
|
MasterUsername: "ebroot",
|
|
68
68
|
MasterUserPassword: password,
|
|
69
69
|
AllocatedStorage: 5,
|
|
@@ -71,7 +71,7 @@ module.exports.createRDSInstance = async (
|
|
|
71
71
|
PubliclyAccessible: false,
|
|
72
72
|
BackupRetentionPeriod: 7,
|
|
73
73
|
DBName: "ebdb",
|
|
74
|
-
DBParameterGroupName: "
|
|
74
|
+
DBParameterGroupName: SSL_PARAMETER_GROUPS["8.4"].name,
|
|
75
75
|
DBSubnetGroupName: subnetGroupName,
|
|
76
76
|
VpcSecurityGroupIds: [securityGroupId],
|
|
77
77
|
Tags: [
|
|
@@ -189,6 +189,20 @@ module.exports.restoreRDSInstanceFromSnapshot = async (
|
|
|
189
189
|
tags = [],
|
|
190
190
|
subnetGroupName,
|
|
191
191
|
) => {
|
|
192
|
+
// Snapshots keep the engine version of their source instance, so the restored
|
|
193
|
+
// instance must use a parameter group from the matching mysql family.
|
|
194
|
+
const [{ EngineVersion }] = (
|
|
195
|
+
await getClient().send(
|
|
196
|
+
new DescribeDBSnapshotsCommand({
|
|
197
|
+
DBSnapshotIdentifier: snapshotId,
|
|
198
|
+
}),
|
|
199
|
+
)
|
|
200
|
+
).DBSnapshots;
|
|
201
|
+
|
|
202
|
+
const parameterGroupName = await module.exports.ensureSSLParameterGroup(
|
|
203
|
+
getEngineMajorVersion(EngineVersion),
|
|
204
|
+
);
|
|
205
|
+
|
|
192
206
|
let res = await Spinner.prototype.simple(
|
|
193
207
|
`Restoring RDS instance ${name} from snapshot ${snapshotId}`,
|
|
194
208
|
() => {
|
|
@@ -198,7 +212,7 @@ module.exports.restoreRDSInstanceFromSnapshot = async (
|
|
|
198
212
|
DBSnapshotIdentifier: snapshotId,
|
|
199
213
|
DBInstanceClass: "db.t3.small",
|
|
200
214
|
PubliclyAccessible: false,
|
|
201
|
-
DBParameterGroupName:
|
|
215
|
+
DBParameterGroupName: parameterGroupName,
|
|
202
216
|
DBSubnetGroupName: subnetGroupName,
|
|
203
217
|
VpcSecurityGroupIds: [securityGroupId],
|
|
204
218
|
Tags: [
|
|
@@ -227,9 +241,30 @@ module.exports.modifyRDSPassword = async (name, password) => {
|
|
|
227
241
|
);
|
|
228
242
|
};
|
|
229
243
|
|
|
230
|
-
|
|
244
|
+
// Parameter groups are versioned per mysql family; snapshots older than the
|
|
245
|
+
// current default (8.4) still need their original family's group to restore.
|
|
246
|
+
const SSL_PARAMETER_GROUPS = {
|
|
247
|
+
"8.0": { name: "lab-env-mysql80-ssl-required", family: "mysql8.0" },
|
|
248
|
+
8.4: { name: "lab-env-mysql84-ssl-required", family: "mysql8.4" },
|
|
249
|
+
};
|
|
250
|
+
const DEFAULT_ENGINE_MAJOR_VERSION = "8.4";
|
|
251
|
+
|
|
252
|
+
const getEngineMajorVersion = (engineVersion) =>
|
|
253
|
+
engineVersion.split(".").slice(0, 2).join(".");
|
|
254
|
+
|
|
255
|
+
module.exports.ensureSSLParameterGroup = async (
|
|
256
|
+
engineMajorVersion = DEFAULT_ENGINE_MAJOR_VERSION,
|
|
257
|
+
) => {
|
|
258
|
+
const group = SSL_PARAMETER_GROUPS[engineMajorVersion];
|
|
259
|
+
|
|
260
|
+
if (!group) {
|
|
261
|
+
throw new Error(
|
|
262
|
+
`No managed SSL parameter group configured for MySQL ${engineMajorVersion}`,
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const { name: SSL_PARAMETER_GROUP, family } = group;
|
|
231
267
|
|
|
232
|
-
module.exports.ensureSSLParameterGroup = async () => {
|
|
233
268
|
try {
|
|
234
269
|
await getClient().send(
|
|
235
270
|
new DescribeDBParameterGroupsCommand({
|
|
@@ -243,7 +278,7 @@ module.exports.ensureSSLParameterGroup = async () => {
|
|
|
243
278
|
return getClient().send(
|
|
244
279
|
new CreateDBParameterGroupCommand({
|
|
245
280
|
DBParameterGroupName: SSL_PARAMETER_GROUP,
|
|
246
|
-
DBParameterGroupFamily:
|
|
281
|
+
DBParameterGroupFamily: family,
|
|
247
282
|
Description:
|
|
248
283
|
"lab-env managed parameter group requiring SSL connections",
|
|
249
284
|
}),
|
|
@@ -269,4 +304,6 @@ module.exports.ensureSSLParameterGroup = async () => {
|
|
|
269
304
|
},
|
|
270
305
|
);
|
|
271
306
|
}
|
|
307
|
+
|
|
308
|
+
return SSL_PARAMETER_GROUP;
|
|
272
309
|
};
|
package/core/1/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 1.10.5 (2026-09-07)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* own node dir now that global node files need ownership ([e6981c2](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/e6981c26a4ca101eb13cb1c0d79860636e90e9b5))
|
|
8
|
+
|
|
9
|
+
### 1.10.5-beta.1 (2026-09-07)
|
|
10
|
+
|
|
11
|
+
#### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* own node dir now that global node files need ownership ([e6981c2](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/e6981c26a4ca101eb13cb1c0d79860636e90e9b5))
|
|
14
|
+
|
|
15
|
+
### 1.10.4 (2026-08-21)
|
|
16
|
+
|
|
17
|
+
#### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* switch back to access token for prs ([7a0ecee](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/7a0ecee2f07a899a3d30e5c80ece39d096b660b0))
|
|
20
|
+
|
|
21
|
+
### 1.10.4-beta.1 (2026-08-21)
|
|
22
|
+
|
|
23
|
+
#### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* switch back to access token for prs ([7a0ecee](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/7a0ecee2f07a899a3d30e5c80ece39d096b660b0))
|
|
26
|
+
|
|
27
|
+
### 1.10.3 (2026-08-21)
|
|
28
|
+
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* use new bitbucket token instead of git credentials ([bb1a48b](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/bb1a48be086554fd8fa16a22f27968fd8938d7bc))
|
|
32
|
+
|
|
33
|
+
### 1.10.2 (2026-08-21)
|
|
34
|
+
|
|
35
|
+
#### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* drop support for watertight ([fd584bc](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/fd584bc838b89da6ea7306e19a8bef0d99e1405c))
|
|
38
|
+
|
|
39
|
+
### 1.10.1-beta.2 (2026-08-21)
|
|
40
|
+
|
|
41
|
+
#### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* drop support for watertight ([fd584bc](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/fd584bc838b89da6ea7306e19a8bef0d99e1405c))
|
|
44
|
+
### 1.10.1 (2026-08-21)
|
|
45
|
+
|
|
46
|
+
#### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* allow git install from npm now the default is to block them ([de7783a](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/de7783aae76baa52db6b6497b2ae75b4a6198837))
|
|
49
|
+
|
|
50
|
+
### 1.10.1-beta.1 (2026-08-21)
|
|
51
|
+
|
|
52
|
+
#### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* allow git install from npm now the default is to block them ([de7783a](https://bitbucket.org/fishawackdigital/lab-env-core-1/commits/de7783aae76baa52db6b6497b2ae75b4a6198837))
|
|
55
|
+
|
|
3
56
|
### 1.10.0 (2026-02-20)
|
|
4
57
|
|
|
5
58
|
#### Features
|
package/core/1/Dockerfile
CHANGED
|
@@ -34,6 +34,9 @@ ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
|
|
34
34
|
# Disable npm message about updates being available
|
|
35
35
|
RUN su node -c "npm config set update-notifier false"
|
|
36
36
|
|
|
37
|
+
# Allow installing from git repos
|
|
38
|
+
RUN su node -c "npm config set allow-git all"
|
|
39
|
+
|
|
37
40
|
# Add node user to www-data group
|
|
38
41
|
RUN usermod -a -G www-data node
|
|
39
42
|
|
|
@@ -108,9 +111,6 @@ RUN npm install -g electron-packager@latest
|
|
|
108
111
|
RUN apt-get install -y wine64 && \
|
|
109
112
|
ln -s /usr/bin/wine /usr/bin/wine64
|
|
110
113
|
|
|
111
|
-
# Install watertight
|
|
112
|
-
RUN --mount=type=ssh npm install -g git+ssh://git@bitbucket.org/fishawackdigital/watertight-node-auto.git#v6.0.0
|
|
113
|
-
|
|
114
114
|
# Cleanup apt-get install folders
|
|
115
115
|
RUN apt-get clean && \
|
|
116
116
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
@@ -19,7 +19,7 @@ pipelines:
|
|
|
19
19
|
- npm install -g semantic-release@24 @semantic-release/changelog@6 @semantic-release/git@10 conventional-changelog-conventionalcommits@8
|
|
20
20
|
# Release version via node so can exit out when no release made
|
|
21
21
|
- |
|
|
22
|
-
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https
|
|
22
|
+
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https://x-bitbucket-api-token-auth:$BITBUCKET_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME'], { env: { ...process.env, FORCE_COLOR: true } }); spawn.stderr.on('data', d => process.stderr.write(d.toString())); spawn.stdout.on('data', d => {process.stdout.write(d.toString()); if(d.toString().includes('There are no relevant changes, so no new version is released.') || d.toString().includes('therefore a new version won\'t be published.')){process.exit(1);}})" || exit 0
|
|
23
23
|
# Copy ssh keys so physical files exist for agent to use
|
|
24
24
|
- cp /build/*/ssh/* ~/.ssh/
|
|
25
25
|
# Start ssh agent and add all (if any) keys
|
|
@@ -29,7 +29,7 @@ pipelines:
|
|
|
29
29
|
# Open PR to re-sync beta after release
|
|
30
30
|
- |
|
|
31
31
|
curl https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/pullrequests \
|
|
32
|
-
|
|
32
|
+
--header "Authorization: Bearer $BITBUCKET_ACCESS_TOKEN" \
|
|
33
33
|
--header 'Content-Type: application/json' \
|
|
34
34
|
--data "{
|
|
35
35
|
\"title\": \"fw-auto: sync beta after release\",
|
|
@@ -54,7 +54,7 @@ pipelines:
|
|
|
54
54
|
# Commit and create pull request for new version on lab-env repo
|
|
55
55
|
- git config --global user.email "digital@fishawack.com"
|
|
56
56
|
- git config --global user.name "Digital Fishawack"
|
|
57
|
-
- git clone https
|
|
57
|
+
- git clone https://x-bitbucket-api-token-auth:$BITBUCKET_TOKEN@bitbucket.org/fishawackdigital/lab-env
|
|
58
58
|
- cd lab-env
|
|
59
59
|
- git checkout -b "$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT" origin/beta
|
|
60
60
|
- git submodule init
|
|
@@ -66,7 +66,7 @@ pipelines:
|
|
|
66
66
|
- git push origin "$BITBUCKET_REPO_SLUG-$BITBUCKET_COMMIT"
|
|
67
67
|
- |
|
|
68
68
|
curl https://api.bitbucket.org/2.0/repositories/fishawackdigital/lab-env/pullrequests \
|
|
69
|
-
|
|
69
|
+
--header "Authorization: Bearer $BITBUCKET_ACCESS_TOKEN" \
|
|
70
70
|
--header 'Content-Type: application/json' \
|
|
71
71
|
--data "{
|
|
72
72
|
\"title\": \"Bumped $BITBUCKET_REPO_SLUG\",
|
|
@@ -102,4 +102,4 @@ pipelines:
|
|
|
102
102
|
- npm install -g semantic-release@24 @semantic-release/changelog@6 @semantic-release/git@10 conventional-changelog-conventionalcommits@8
|
|
103
103
|
# Release version via node so can exit out when no release made
|
|
104
104
|
- |
|
|
105
|
-
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https
|
|
105
|
+
node -e "const spawn = require('child_process').spawn('semantic-release', ['--repositoryUrl', 'https://x-bitbucket-api-token-auth:$BITBUCKET_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME'], { env: { ...process.env, FORCE_COLOR: true } }); spawn.stderr.on('data', d => process.stderr.write(d.toString())); spawn.stdout.on('data', d => {process.stdout.write(d.toString()); if(d.toString().includes('There are no relevant changes, so no new version is released.') || d.toString().includes('therefore a new version won\'t be published.')){process.exit(1);}})" || exit 0
|
package/core/1/entrypoint.sh
CHANGED
|
@@ -11,6 +11,9 @@ if [ -z "$FW_ROOT" ]; then
|
|
|
11
11
|
# Own the global node_modules folder otherwise it'll be owned by root/previous node id which will prevent writing
|
|
12
12
|
chown node /usr/local/lib/node_modules
|
|
13
13
|
|
|
14
|
+
# Own the node home directory without following symlinks
|
|
15
|
+
chown -Rh node /home/node
|
|
16
|
+
|
|
14
17
|
# Default arguments will always be bash -l, if nothing follows this just start an non login interactive shell
|
|
15
18
|
if [ -z "${@:3}" ]; then
|
|
16
19
|
exec su node
|
package/core/1/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"description": "lab-env docker config for the @fishawack/core/1 npm module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"setup": "ln -sfn ../../.commitlintrc.json .commitlintrc.json && ln -sfn ../../.editorconfig .editorconfig && ln -sfn ../../.prettierignore .prettierignore && ln -sfn ../../.husky/ .husky && husky &>/dev/null || true",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
mysql:
|
|
3
|
-
image: mysql:8.
|
|
3
|
+
image: mysql:8.4
|
|
4
4
|
networks:
|
|
5
5
|
- default
|
|
6
6
|
environment:
|
|
@@ -14,7 +14,6 @@ services:
|
|
|
14
14
|
- mysql:/var/lib/mysql
|
|
15
15
|
security_opt:
|
|
16
16
|
- seccomp:unconfined
|
|
17
|
-
command: --default-authentication-plugin=mysql_native_password
|
|
18
17
|
apache:
|
|
19
18
|
build:
|
|
20
19
|
context: $DIRNAME/drupal/9/apache/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
mysql:
|
|
3
|
-
image: mysql:8.
|
|
3
|
+
image: mysql:8.4
|
|
4
4
|
networks:
|
|
5
5
|
- default
|
|
6
6
|
environment:
|
|
@@ -14,7 +14,6 @@ services:
|
|
|
14
14
|
- mysql:/var/lib/mysql
|
|
15
15
|
security_opt:
|
|
16
16
|
- seccomp:unconfined
|
|
17
|
-
command: --default-authentication-plugin=mysql_native_password
|
|
18
17
|
apache:
|
|
19
18
|
build:
|
|
20
19
|
context: $DIRNAME/wordpress/1/apache/
|