Skip to content

TLS improvements#855

Merged
lvca merged 4 commits intoArcadeData:mainfrom
lucian-cm:refactor_tls_logic
Feb 13, 2023
Merged

TLS improvements#855
lvca merged 4 commits intoArcadeData:mainfrom
lucian-cm:refactor_tls_logic

Conversation

@lucian-cm
Copy link
Copy Markdown
Contributor

@lucian-cm lucian-cm commented Feb 12, 2023

  • Fixed defect with Undertow's TLS truststore and TLS keystore sharing the same password
  • Undertow's TLS default keystore type is read from javax.net.ssl.keyStoreType if valid, otherwise it is PKCS12 (previously it was hardcoded to JKS)
  • Undertow's TLS default truststore type is read from javax.net.ssl.trustStoreType system property if valid, otherwise it is JKS (previously it was hardcoded to JKS)
  • Using latest TLS protocol TLSv1.3 for Undertow's HTTPS listener (previously it was not guaranteed to be TLSv1.3)
  • Refactored some of the TLS handling logic

@lucian-cm
Copy link
Copy Markdown
Contributor Author

lucian-cm commented Feb 12, 2023

@lvca, this PR is in relation to #775
Please take a look when you can.

@lvca
Copy link
Copy Markdown
Member

lvca commented Feb 12, 2023

Hi @lucian-cm, thanks, for checking it asap. Did you install pre-commit? https://github.com/ArcadeData/arcadedb/blob/main/CONTRIBUTING.md#pre-commit

@lucian-cm
Copy link
Copy Markdown
Contributor Author

lucian-cm commented Feb 13, 2023

Hi @lucian-cm, thanks, for checking it asap. Did you install pre-commit? https://github.com/ArcadeData/arcadedb/blob/main/CONTRIBUTING.md#pre-commit

Thanks @lvca for your timely reply. I forgot to add the pre-commit checker before. I added it now and did not find anything to fix. It appears that the following tests are failing, which I believe are not related to my changes.

Results:
2023-02-12T21:50:59.8062567Z [INFO]
2023-02-12T21:50:59.8069175Z [ERROR] Failures:
2023-02-12T21:50:59.8077961Z [ERROR] DateTest.testInstant:392 expected: <2023-02-12T21:21:20.963787Z> but was: <2023-02-12T21:21:20.963787900Z>
2023-02-12T21:50:59.8078476Z [ERROR] DateTest.testSQLMath:449 expected: but was:
2023-02-12T21:50:59.8079213Z [ERROR] DateTest.testZonedDateTime:343 expected: but was:
2023-02-12T21:50:59.8079570Z [ERROR] Errors:
2023-02-12T21:50:59.8125883Z [ERROR] UpdateStatementExecutionTest.testLocalDateTimeUpsertWithIndex:892->lambda$testLocalDateTimeUpsertWithIndex$1:894 � DuplicatedKey Duplicated key [2023-02-12T21:48:59.484061, 2023-02-12T21:48:59.484061] found on index 'Product_1_25
80549119200' already assigned to record #9:0

Second test: I saw the problem is the fact that the saved value for date1 is less than the original date1, such that that the test has a wrong expected value to include the saved value of date1
date1 = 2023-02-13T10:33:26.869755500
date2 = 2023-02-13T10:33:27.869755500
result contains just the right side date, that is 2023-02-13T10:33:27.869755

a fix would be
image

@lvca lvca merged commit 030cf6f into ArcadeData:main Feb 13, 2023
@lvca
Copy link
Copy Markdown
Member

lvca commented Feb 13, 2023

Thanks @lucian-cm, merged!

@lvca lvca self-requested a review February 13, 2023 18:17
@lvca lvca added enhancement New feature or request security labels Feb 13, 2023
@lvca lvca added this to the 23.2.1 milestone Feb 13, 2023
@lucian-cm
Copy link
Copy Markdown
Contributor Author

lucian-cm commented Feb 14, 2023

@lvca, thank you 👍 !

mergify Bot added a commit that referenced this pull request Apr 13, 2026
….3 in /e2e-python [skip ci]

[//]: # (dependabot-start)
⚠️ \*\*Dependabot is rebasing this PR\*\* ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
---
[//]: # (dependabot-end)
Updates the requirements on [testcontainers](https://github.com/testcontainers/testcontainers-python) to permit the latest version.
Release notes

*Sourced from [testcontainers's releases](https://github.com/testcontainers/testcontainers-python/releases).*

> testcontainers: v4.13.3
> -----------------------
>
> [4.13.3](testcontainers/testcontainers-python@testcontainers-v4.13.2...testcontainers-v4.13.3) (2025-11-14)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### python 3.14 is now supported!
>
> ### Bug Fixes
>
> * do not require consumer of library to state nonsupport for py4 ([#912](https://redirect.github.com/testcontainers/testcontainers-python/issues/912)) ([f608df9](testcontainers/testcontainers-python@f608df9))
> * **docs:** Update dependencies for docs ([#900](https://redirect.github.com/testcontainers/testcontainers-python/issues/900)) ([3f66784](testcontainers/testcontainers-python@3f66784))


Changelog

*Sourced from [testcontainers's changelog](https://github.com/testcontainers/testcontainers-python/blob/main/CHANGELOG.md).*

> [4.13.3](testcontainers/testcontainers-python@testcontainers-v4.13.2...testcontainers-v4.13.3) (2025-11-14)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### Bug Fixes
>
> * do not require consumer of library to state nonsupport for py4 ([#912](https://redirect.github.com/testcontainers/testcontainers-python/issues/912)) ([f608df9](testcontainers/testcontainers-python@f608df9))
> * **docs:** Update dependencies for docs ([#900](https://redirect.github.com/testcontainers/testcontainers-python/issues/900)) ([3f66784](testcontainers/testcontainers-python@3f66784))
> * support python 3.14!!! - ([#917](https://redirect.github.com/testcontainers/testcontainers-python/issues/917)) ([f76e982](testcontainers/testcontainers-python@f76e982))
>
> [4.13.2](testcontainers/testcontainers-python@testcontainers-v4.13.1...testcontainers-v4.13.2) (2025-10-07)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### Bug Fixes
>
> * **core:** Fix issues with doctests ([#893](https://redirect.github.com/testcontainers/testcontainers-python/issues/893)) ([2e4d80a](testcontainers/testcontainers-python@2e4d80a))
> * **core:** waiting improvements + remove decorators in core ([#894](https://redirect.github.com/testcontainers/testcontainers-python/issues/894)) ([f93f379](testcontainers/testcontainers-python@f93f379))
> * issue [#889](https://redirect.github.com/testcontainers/testcontainers-python/issues/889) by changing the annotated return type of `waiting_for` to `Self`. ([#890](https://redirect.github.com/testcontainers/testcontainers-python/issues/890)) ([fe941b1](testcontainers/testcontainers-python@fe941b1))
> * **mongo:** mongo start waiting forever for old mongo versions ([#783](https://redirect.github.com/testcontainers/testcontainers-python/issues/783)) ([1388612](testcontainers/testcontainers-python@1388612))
> * **redpanda:** copy the startup script to a path that can be written … ([#867](https://redirect.github.com/testcontainers/testcontainers-python/issues/867)) ([e6b976d](testcontainers/testcontainers-python@e6b976d))
> * **trino:** Remove deprecated class and decorator from Trino container ([#895](https://redirect.github.com/testcontainers/testcontainers-python/issues/895)) ([bb646e9](testcontainers/testcontainers-python@bb646e9))
>
> [4.13.1](testcontainers/testcontainers-python@testcontainers-v4.13.0...testcontainers-v4.13.1) (2025-09-24)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### Bug Fixes
>
> * **core:** Added 'compose' in compose\_command\_property ([#879](https://redirect.github.com/testcontainers/testcontainers-python/issues/879)) ([769b7b6](testcontainers/testcontainers-python@769b7b6))
> * **core:** make sure context manager exits ([#876](https://redirect.github.com/testcontainers/testcontainers-python/issues/876)) ([10089f6](testcontainers/testcontainers-python@10089f6))
>
> [4.13.0](testcontainers/testcontainers-python@testcontainers-v4.12.0...testcontainers-v4.13.0) (2025-08-27)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### Features
>
> * **azurite:** Enhance connection string generation for network and local access ([#859](https://redirect.github.com/testcontainers/testcontainers-python/issues/859)) ([b21e5e3](testcontainers/testcontainers-python@b21e5e3))
> * **core:** add enhanced wait strategies ([#855](https://redirect.github.com/testcontainers/testcontainers-python/issues/855)) ([60d21f8](testcontainers/testcontainers-python@60d21f8))
> * **core:** DockerCompose: support list of env\_files ([#847](https://redirect.github.com/testcontainers/testcontainers-python/issues/847)) ([fe206eb](testcontainers/testcontainers-python@fe206eb))
>
> ### Bug Fixes
>
> * assert-in-get\_container\_host\_ip-before-start ([#862](https://redirect.github.com/testcontainers/testcontainers-python/issues/862)) ([fc4155e](testcontainers/testcontainers-python@fc4155e))
> * **core:** improper reading of .testcontainers.properties ([#863](https://redirect.github.com/testcontainers/testcontainers-python/issues/863)) ([350f246](testcontainers/testcontainers-python@350f246))
> * **core:** Make TC\_POOLING\_INTERVAL/sleep\_time a float ([#839](https://redirect.github.com/testcontainers/testcontainers-python/issues/839)) ([a072f3f](testcontainers/testcontainers-python@a072f3f))
>
> [4.12.0](testcontainers/testcontainers-python@testcontainers-v4.11.0...testcontainers-v4.12.0) (2025-07-21)
> --------------------------------------------------------------------------------------------------------------------------------------
>
> ### Features

... (truncated)


Commits

* [`5c00041`](testcontainers/testcontainers-python@5c00041) chore(main): release testcontainers 4.13.3 ([#909](https://redirect.github.com/testcontainers/testcontainers-python/issues/909))
* [`f76e982`](testcontainers/testcontainers-python@f76e982) chore: add python 3.14 to CI matrix ([#917](https://redirect.github.com/testcontainers/testcontainers-python/issues/917))
* [`f608df9`](testcontainers/testcontainers-python@f608df9) fix: do not require consumer of library to state nonsupport for py4 ([#912](https://redirect.github.com/testcontainers/testcontainers-python/issues/912))
* [`3f66784`](testcontainers/testcontainers-python@3f66784) fix(docs): Update dependencies for docs ([#900](https://redirect.github.com/testcontainers/testcontainers-python/issues/900))
* [`5c1504c`](testcontainers/testcontainers-python@5c1504c) chore(main): release testcontainers 4.13.2 ([#891](https://redirect.github.com/testcontainers/testcontainers-python/issues/891))
* [`1388612`](testcontainers/testcontainers-python@1388612) fix(mongo): mongo start waiting forever for old mongo versions ([#783](https://redirect.github.com/testcontainers/testcontainers-python/issues/783))
* [`e6b976d`](testcontainers/testcontainers-python@e6b976d) fix(redpanda): copy the startup script to a path that can be written … ([#867](https://redirect.github.com/testcontainers/testcontainers-python/issues/867))
* [`bb646e9`](testcontainers/testcontainers-python@bb646e9) fix(trino): Remove deprecated class and decorator from Trino container ([#895](https://redirect.github.com/testcontainers/testcontainers-python/issues/895))
* [`2e4d80a`](testcontainers/testcontainers-python@2e4d80a) fix(core): Fix issues with doctests ([#893](https://redirect.github.com/testcontainers/testcontainers-python/issues/893))
* [`f93f379`](testcontainers/testcontainers-python@f93f379) fix(core): waiting improvements + remove decorators in core ([#894](https://redirect.github.com/testcontainers/testcontainers-python/issues/894))
* Additional commits viewable in [compare view](testcontainers/testcontainers-python@testcontainers-v4.9.1...testcontainers-v4.13.3)
  
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants