Skip to content

Commit da5ace7

Browse files
Merge pull request #823 from mendix/develop
Release 2024-11-21
2 parents 30401a4 + 543bf62 commit da5ace7

File tree

10 files changed

+20
-17
lines changed

10 files changed

+20
-17
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
fail_fast: false
33
repos:
44
- repo: https://github.com/adrienverge/yamllint.git
5-
rev: v1.33.0
5+
rev: v1.35.1
66
hooks:
77
- id: yamllint
88
args: ["--format", "parsable", "--strict"]
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.5.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: trailing-whitespace
1313
- id: end-of-file-fixer
1414
- id: fix-byte-order-marker
1515
- id: mixed-line-ending
1616
- id: check-json
1717
- id: detect-aws-credentials
18+
args: ["--allow-missing-credentials"]
1819
- repo: https://github.com/markdownlint/markdownlint
1920
rev: v0.12.0
2021
hooks:
2122
- id: markdownlint_docker
2223
- repo: https://github.com/charliermarsh/ruff-pre-commit
23-
rev: 'v0.1.6'
24+
rev: 'v0.7.3'
2425
hooks:
2526
- id: ruff

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ cf set-env <YOUR_APP> DATABASE_CONNECTION_PARAMS '{"tcpKeepAlive": "true", "conn
198198

199199
To allow connection to an AWS RDS database the buildpack selects the regional CA certificate stored in [`rds-certificates`](etc/rds-certificates). If the region's certificate doesn't exist, the buildpack will fail with an error `Could not find database CA certificate in map`.
200200

201+
*:warning: After the root CA rotation of AWS RDS on 22nd August 2024, only buildpacks v5.0.5 or higher will continue to work, all older buildpacks only import no longer valid certificates and no longer can establish a connection to AWS RDS.*
202+
201203
#### Supported VCAP Schemas
202204

203205
Cloud Foundry database services are detected from Cloud Foundry service bindings ([VCAP](https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES)) and translated into Mendix Runtime configuration. In case no database service is bound, the fallback is the environment variable `DATABASE_URL`.

buildpack/core/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _activate_license():
185185
<entry key="id2" value="{{LICENSE_ID}}"/>
186186
<entry key="license_key2" value="{{LICENSE_KEY}}"/>
187187
</map>"""
188-
188+
189189
license_key = os.environ.get(
190190
"FORCED_LICENSE_KEY", os.environ.get("LICENSE_KEY", None)
191191
)

buildpack/infrastructure/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def init(self):
347347
jdbc_params.update({"sslmode": "verify-full"})
348348
except Exception:
349349
raise Exception("Could not find database CA certificate in map")
350-
350+
351351
if database_type == "PostgreSQL" and not self.url.startswith("jdbc:"):
352352
self.extract_inline_cert(jdbc_params, self.SSLCERT, "postgresql.crt")
353353
self.extract_inline_cert(jdbc_params, self.SSLKEY, "postgresql.pk8")

buildpack/telemetry/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def micrometer_metrics_enabled(runtime_version):
119119
logging.debug("micrometer for non mendix public cloud")
120120
micrometer_enabled = True
121121
return micrometer_enabled
122-
122+
123123

124124

125125
def configure_metrics_registry(m2ee):

dependencies-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
uri: https://cdn.mendix.com/mx-buildpack/python/python_3.10.14_linux_x64_cflinuxfs4_dda5228c.tgz
66
sha256: dda5228c36196f8a7346767ad9c9ac774ec270aa55065beb8d3d052d652b9120
77
cf_stacks:
8-
- cflinuxfs4
8+
- cflinuxfs4
99
source_sha256: cefea32d3be89c02436711c95a45c7f8e880105514b78680c14fe76f5709a0f6

dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ dependencies:
8989
version: 8.6.0
9090
nginx:
9191
artifact: nginx_{{ version }}_linux_x64_{{ fs }}_{{ commit }}.tgz
92-
commit: 909b06a9
92+
commit: b1316f75
9393
fs: cflinuxfs4
9494
cpe: cpe:2.3:a:f5:nginx:{{ version }}:*:*:*:*:*:*:*
95-
version: 1.22.1
95+
version: 1.26.1
9696
ruby:
9797
artifact: ruby/ruby_{{ version }}_linux_x64_{{ fs }}_{{ commit }}.tgz
9898
commit: 5fed98f8

requirements-dev.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
click==8.1.7
2-
idna==3.8
2+
idna==3.10
33
pytest==8.3.3
44
pytest-timer==1.0.0
55
pytest-timeout==2.3.1
6-
pylint==3.2.7
6+
pylint==3.3.1
77
randomname==0.2.1
88
requests-mock==1.12.1
9-
ruff==0.6.4
9+
ruff==0.7.4
1010
parameterized==0.9.0

requirements.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
backoff==2.2.1
22
certifi==2024.8.30
3-
cryptography==43.0.1
3+
cryptography==43.0.3
44
distro==1.9.0
55
httplib2==0.22.0
66
jinja2==3.1.4
77
omegaconf==2.3.0
8-
psycopg2-binary==2.9.9
8+
psycopg2-binary==2.9.10
99
pyyaml==6.0.2
1010
requests==2.32.3
1111
urllib3==2.2.3

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ cffi==1.14.4
1616
# via cryptography
1717
charset-normalizer==2.0.3
1818
# via requests
19-
cryptography==43.0.1
19+
cryptography==43.0.3
2020
# via -r requirements.in
2121
distro==1.9.0
2222
# via -r requirements.in
2323
httplib2==0.22.0
2424
# via -r requirements.in
25-
idna==3.7
25+
idna==3.10
2626
# via requests
2727
jinja2==3.1.4
2828
# via -r requirements.in
2929
markupsafe==2.0.1
3030
# via jinja2
3131
omegaconf==2.3.0
3232
# via -r requirements.in
33-
psycopg2-binary==2.9.9
33+
psycopg2-binary==2.9.10
3434
# via -r requirements.in
3535
pycparser==2.20
3636
# via cffi

0 commit comments

Comments
 (0)