Commit Graph
589 Commits
Author SHA1 Message Date
Devin AI 51183f5df3 Merge branch 'devin/1759948103-replace-cryptography-with-openssl' of https://git-manager.devin.ai/proxy/github.com/Autonomy-Logic/OpenPLC_v3 into devin/1759948103-replace-cryptography-with-openssl 2025-10-08 19:52:48 +00:00
Devin AIandThiago Alves 7b16afb69d Fix Windows/MSYS2 compatibility: convert Path to str for ssl_context
Flask/Werkzeug's ssl_context parameter expects string paths, not pathlib.Path
objects. On Windows/MSYS2, passing Path objects causes 'Resource temporarily
unavailable' error. Converting to strings maintains Linux compatibility while
fixing Windows support.

Fixes the error reported by user where context showed PosixPath objects
instead of strings, causing Flask to fail on Windows/MSYS2.

Co-Authored-By: Thiago Alves <thiagoralves@gmail.com>
2025-10-08 19:52:35 +00:00
Thiago Alves 1c5fc0323f Removed cryptography dependency and added openssl 2025-10-08 15:08:41 -04:00
Devin AIandThiago Alves 1b82973556 Replace Python Cryptography with OpenSSL CLI for certificate generation
- Replace cryptography library with subprocess calls to openssl CLI
- Use RSA 4096-bit keys for stronger security (vs previous 2048-bit)
- Use SHA256 signature algorithm
- Set certificate validity to 36500 days (~100 years, effectively never expires)
- Maintain same CertGen class interface for backward compatibility
- Remove cryptography dependency from requirements.txt

The OpenSSL-based approach is more universally available across platforms
and doesn't require additional Python dependencies. The certificate is
self-signed and can be used for SSH-like validation of embedded PLC devices.

Co-Authored-By: Thiago Alves <thiagoralves@gmail.com>
2025-10-08 18:29:47 +00:00
Thiago Alves 228f60965d Fix REST API errors and make it conform with v4 API 2025-10-07 14:22:04 -04:00
Thiago Alves cd369af331 Merge branch 'master' into development 2025-10-06 17:01:11 -04:00
Thiago Alves 611f783b1a Merge pull request #297 from Eyodav/master
Update webserver.py (Fix DoS vulnerability)
2025-10-02 20:06:55 -04:00
Eyodav 004e0ced32 Update webserver.py 2025-09-26 14:06:08 +02:00
Eyodav 095ee09623 Update webserver.py 2025-09-26 11:03:06 +02:00
Thiago Alves 4d8d73f57c Fix python loader cmd stack variable 2025-09-11 13:15:12 -04:00
Thiago Alves 44ae21ae2e Fix compilation issues on Windows 2025-09-10 10:23:45 -04:00
Autonomy Server 4f0f435ea7 Merge branch 'master' into development 2025-09-08 12:09:16 -04:00
Thiago Alves f52484f9b3 Merge pull request #293 from thiagoralves/dev-python-runtime
Dev python runtime
2025-09-08 12:05:30 -04:00
Autonomy Server 43ad8fb367 Update release version 2025-09-08 12:02:26 -04:00
Autonomy Server a8b27f4d4a Include Python loader to execute Python-based FBs 2025-09-08 11:49:00 -04:00
Thiago Alves 7c91fd6fa2 Merge pull request #292 from dplastico/fix-enipThread-return
Fixing EnipThread function return
2025-09-03 08:58:15 -04:00
renato 2048a262b4 Fixing EnipThread fucntion return 2025-09-03 00:52:28 -04:00
Lucas Cordeiro Butzke 36d067bea1 Merge pull request #3 from Autonomy-Logic/RTOP-26-Login-RestAPI
[RTOP-26] login rest api
2025-07-31 15:11:23 -03:00
Thiago Alves f06902fde3 Removed password logs for security purposes 2025-07-31 15:05:12 -03:00
lucasbutzke c768c58f8f [RTOP-26] Creating webserver_program.st file 2025-07-31 14:59:23 -03:00
Thiago Alves 33d26f7dc2 Removed comments 2025-07-31 12:02:11 -03:00
lucasbutzke de464918a8 [RTOP-26] Fix logging on restapi 2025-07-31 11:55:28 -03:00
lucasbutzke 3d041e2119 [RTOP-26] Update restapi .st file name to not conflict with webserver 2025-07-31 11:41:37 -03:00
lucasbutzke 73f2c6b048 [RTOP-26] Removing generate_env function from instalation 2025-07-31 11:40:22 -03:00
lucasbutzke 22f170f0cb [RTOP-26] Removing snap7 program from database and descrition to not
delete webserver_program
2025-07-31 11:29:51 -03:00
lucasbutzke aa097640bd [RTOP-26] Adding webserver_program to openplc.db 2025-07-31 11:20:32 -03:00
lucasbutzke 2eee01a5b8 [RTOP-26] Fix .env file management 2025-07-31 08:48:30 -04:00
lucasbutzke 223dd2c2e6 [RTOP-26] Fix config.py 2025-07-30 19:28:27 -04:00
lucasbutzke 2ca82fa00f [RTOP-26] Change .env variables generation to python and verifing if are valid at inicialization 2025-07-30 19:21:58 -04:00
lucasbutzke 2a1f3fb360 [RTOP-26] Adding routes names 2025-07-29 18:13:30 -04:00
lucasbutzke b8623fb5b3 [RTOP-26] PR Review Fix 2025-07-29 18:10:59 -04:00
lucasbutzke 602866ad3a [RTOP-26] Fix webserver database and restapi minor fix 2025-07-29 09:43:59 -04:00
lucasbutzke 4998c3820f [RTOP-26] Getting return from compilation script 2025-07-28 23:01:56 -04:00
lucasbutzke e548386824 [RTOP-26] Fix compilation status 2025-07-28 22:35:48 -04:00
lucasbutzke e4355309ee [RTOP-26] validating file field and file size in POST request 2025-07-28 22:16:04 -04:00
lucasbutzke 31e987cd2b [RTOP-40] User check returnign if there were already created users if invalid JWT is used 2025-07-28 21:55:59 -04:00
lucasbutzke 469daf28ee [RTOP-40] Merged upload and compile program to one function 2025-07-28 21:30:52 -04:00
lucasbutzke 3492456cf4 [RTOP-40] compilation logs and status were merged to one funtion 2025-07-28 21:22:04 -04:00
lucasbutzke 8c63b0d368 [RTOP-26] Fix compilation_object error before compiling 2025-07-28 20:57:24 -04:00
lucasbutzke 759f769394 [RTOP-37] Fix SQL table query error 2025-07-24 20:36:30 -04:00
lucasbutzke 6f447d6245 [RTOP-37] Fix user creation 2025-07-24 20:04:12 -04:00
lucasbutzke 227aa9d2cb [RTOP-37] Adding TODO for future admin login privileges 2025-07-24 17:36:06 -04:00
lucasbutzke d071bc713d [RTOP-37] Routes simplification 2025-07-24 17:02:25 -04:00
lucasbutzke b9ed1d89e2 [RTOP-26] Future use for admin user 2025-07-24 16:43:41 -04:00
lucasbutzke 75e21a276a [RTOP-26] Users password change and delete 2025-07-24 16:36:17 -04:00
lucasbutzke 60709a94d8 [RTOP-26] catch errors on file upload and compile program 2025-07-21 20:21:14 -03:00
lucasbutzke 46cbc34b4c [RTOP-26] Fix config import 2025-07-21 10:58:27 -03:00
lucasbutzke eec96d8bf2 [RTOP-26] User set_password fix 2025-07-21 10:21:10 -03:00
Lucas Cordeiro Butzkeandcoderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> cd0c61ee60 [RTOP-26] Update webserver/restapi.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-21 10:12:08 -03:00
Lucas Cordeiro Butzkeandcoderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> d364456f24 [RTOP-26] Update webserver/webserver.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-21 10:07:20 -03:00