51 Commits
Author SHA1 Message Date
pnoker b26c0000be feat(release): add release backfill tool and docs-linked release footer 2026-08-19 17:02:35 +08:00
pnoker a58064cc5c ci(release): verify releases before publishing artifacts 2026-08-12 01:04:49 +08:00
dependabot[bot]andHenry Zhang 344e1b1072 build(deps): bump docker/metadata-action from 5.10.0 to 6.2.0 (#130)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.10.0 to 6.2.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/c299e40c65443455700f0fdfc63efafe5b349051...dc802804100637a589fabce1cb79ff13a1411302)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henry Zhang <pnokers@icloud.com>
2026-08-03 12:22:30 +08:00
dependabot[bot]andHenry Zhang 9b61f5720a build(deps): bump softprops/action-gh-release (#134)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from c12583777ecdfd3be55c69cf75464299dc01057e to 3d0d9888cb7fd7b750713d6e236d1fcb99157228.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/c12583777ecdfd3be55c69cf75464299dc01057e...3d0d9888cb7fd7b750713d6e236d1fcb99157228)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3d0d9888cb7fd7b750713d6e236d1fcb99157228
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henry Zhang <pnokers@icloud.com>
2026-08-03 12:05:49 +08:00
dependabot[bot] ac39d9d60f build(deps): bump actions/checkout from 4.3.1 to 7.0.0 (#103)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.3.1 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/34e114876b0b11c390a56381ad16ebd13914f8d5...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-19 21:07:39 +08:00
dependabot[bot] c13feb0b7a build(deps): bump docker/login-action from 3.7.0 to 4.4.0 (#106)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.7.0 to 4.4.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/c94ce9fb468520275223c153574b00df6fe4bcc9...af1e73f918a031802d376d3c8bbc3fe56130a9b0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-19 21:07:34 +08:00
dependabot[bot] 583bd4993f build(deps): bump docker/setup-qemu-action from 3.7.0 to 4.2.0 (#105)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.7.0 to 4.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/c7c53464625b32c7a7e944ae62b3e17d2b600130...96fe6ef7f33517b61c61be40b68a1882f3264fb8)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-19 21:07:29 +08:00
dependabot[bot] 96d8e61e04 build(deps): bump docker/setup-buildx-action from 3.12.0 to 4.2.0 (#104)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.12.0 to 4.2.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/8d2750c68a42422c14e847fe6c8ac0403b4cbd6f...bb05f3f5519dd87d3ba754cc423b652a5edd6d2c)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-19 20:29:04 +08:00
pnokerandClaude ad89fde9dc ci: pin GitHub Actions and CodeQL workflows to immutable commit hashes
Replace floating action tags with pinned commit SHAs across the CI workflows and add the CodeQL config.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-16 20:03:59 +08:00
pnokerandClaude Fable 5 8d08826e2a ci: optimize GitHub Actions and dependabot coverage
- codeql: add javascript-typescript scanning for dc3-web/docs frontend
- dependabot: fix docker directories (14 stale paths with no Dockerfile
  -> 4 real ones: /, /dc3-web, /dc3/dependencies/{rabbitmq,postgres})
- remove orphan codeql-config.yml (never referenced by codeql.yml)
- merge docker-ci-web.yml into docker-ci.yml as build-web job with its
  own gha cache scope; release now needs both backend and web builds

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 12:04:37 +08:00
pnoker cfb2183bc8 ci(docker): add 20 missing drivers to docker-ci services list (#101) 2026-06-28 23:44:04 +08:00
pnoker b0c8e9236b build(deps): bump softprops/action-gh-release from 2 to 3 2026-06-28 23:08:39 +08:00
pnoker dd3ee73fb8 ci: drop release branch, rewire triggers to develop/main and v* tags 2026-06-26 14:23:13 +08:00
Vickey 27bcf1383b fix: address code review — security, thread safety, performance, and null safety
Security (CRITICAL):
- KeyUtil: read JWT signing key from DC3_SECURITY_KEY env/property
- UserPasswordServiceImpl: read default password from DC3_SECURITY_DEFAULT_PASSWORD env
- KeyLoader: read OPC-UA keystore password from OPCUA_KEYSTORE_PASSWORD env
- WebFilterConfig: return 401 on malformed X-Auth-User header
- AlgorithmConstant: document deprecated hardcoded constants

Thread safety (HIGH):
- Fix TOCTOU races in 4 driver connectors (computeIfAbsent)
- Fix PlcS7 lock leak, OpcUa connect timeout (5s)
- CoapClientManager: synchronize setURI to prevent URI race
- PointValueJob, MqttScheduleJob: add @DisallowConcurrentExecution
- SystemHealthServiceImpl: preserve interrupt flag
- WindowSampleBuffer: local AtomicInteger → int

Performance (MEDIUM):
- EntityStateExpiryScanner: batch alarm saves (saveBatch)
- ImportDeviceServiceImpl: batch config saves
- ResourceRegistrySyncServiceImpl: batch-load nodes, eliminate N+1 COUNTs
- DriverSenderServiceImpl: debug-gate hot-path logging
- PointServiceImpl: stream().count() → size()

Null safety (LOW):
- RegexUtil: null guards on isName/isPhone/isMail/isPassword/isHost
- HostUtil: null-check getNetworkInterfaces() return
- TimeUtil: log parse failures instead of silent null

Infrastructure:
- Add spring-boot-starter-cache + @EnableCaching CacheConfig
- Replace embedded modbus4j/plc-s7 jars with external Maven dependencies
- Add dc3-driver-modbus-rtu module
2026-05-26 08:40:25 +08:00
pnoker 1dd6599999 ci: move Maven build into Docker BuildKit builder stage
Remove host-side JDK setup and Maven build step from the CI workflow.
The unified Dockerfile now handles Maven build internally via BuildKit
caching, so the runner only needs Docker.
2026-05-17 19:02:12 +08:00
pnoker 7d68495f3a ci: add security quality checks 2026-05-09 20:00:40 +08:00
pnoker 57f4512b21 ci: harden github workflows 2026-05-09 18:57:30 +08:00
pnoker a45f2f5ec1 fix(container): include agentic compose service 2026-05-09 18:49:52 +08:00
pnoker b0176bd9a1 fix: downgrade JDK version from 25 to 21 in Dockerfile and related configurations 2026-04-29 16:26:24 +08:00
pnoker c5a9feeeb9 feat: add .env file for Docker Compose configuration and update usage instructions 2026-04-29 10:27:57 +08:00
pnoker d102e18b00 chore: fix inceptionYear and scm connection in all pom.xml
- Fix <inceptionYear> from '2016-2022' to '2016' in 20 pom.xml files
- Fix <scm> connection/developerConnection to use scm:git: prefix in 22 pom.xml files
2026-04-18 01:31:07 +08:00
zzi666 d4d379a17a refactor: standardize and translate comments across driver modules for consistency and clarity 2025-10-28 15:45:52 +08:00
Vickey de6a29d5a9 feat: update docker-ci.yml 2025-10-05 17:22:49 +08:00
Vickey c4283a5f42 ci: fix bilingual release notes layout in docker-ci workflow 2025-08-30 15:44:42 +08:00
Vickey c1f78f5706 ci: add bilingual collapsible sections to GitHub release notes output 2025-08-30 15:27:17 +08:00
Vickey 19d7c64794 ci: add docker-ci workflow with release notes generation and GitHub release step 2025-08-30 15:00:35 +08:00
Vickey 5e6a169ca4 ci: fix yaml indentation for maven build and docker steps in docker-ci workflow 2025-08-30 14:29:41 +08:00
Vickey e14edec817 ci: switch workflow trigger branch pattern to dc3.release.* 2025-08-30 14:24:04 +08:00
Vickey 7d369d4408 ci: reorganize workflow step indentation and move doc files to dc3/doc directory 2025-08-30 14:23:04 +08:00
pnoker 12b82efbaf ci: remove inline release notes generation from docker-ci workflow 2025-08-27 17:41:21 +08:00
pnoker b41bf5b266 ci: remove inline usage/quick-start section from docker-ci release notes 2025-08-27 17:04:32 +08:00
Vickey b868cfc5e2 ci: change docker workflow trigger tag from dc3.develop.* to dc3.release.* 2025-08-24 01:28:12 +08:00
Vickey fed3b2a9f4 feat: add example usage to Docker CI workflow output
Enhanced the Docker CI workflow by including an example usage line in the output, demonstrating how to pull a Docker image from the registry. This addition improves clarity and usability for users interacting with the generated documentation.
2025-07-15 20:05:59 +08:00
Vickey 19947b9181 feat: feat: add release notes generation to Docker CI workflow
Enhanced the Docker CI workflow by introducing a step to generate release notes. This includes collecting changes since the last tag, listing Docker images for both Docker Hub and Aliyun Container Registry, and providing usage instructions. The release notes are then used to create a GitHub release, improving documentation and visibility for each release.
2025-07-15 19:52:03 +08:00
Vickey 550dcb5243 feat: feat: enhance Docker CI workflow with detailed logging and summaries
Added multiple steps to print workflow, Java, cache, service configuration, and build information during the Docker CI process. Included a final summary of the services built and pushed to registries, improving visibility and traceability of the CI pipeline.
2025-07-15 14:26:39 +08:00
Vickey 31a6a275ed build: bump project version to 2025.6.4 across all modules 2025-07-15 12:01:43 +08:00
Vickey 886b212793 build: bump project version to 2025.6.1 across all modules 2025-06-21 16:21:18 +08:00
Vickey 877be41317 build: bump project version to 2025.6.0 and remove unused job/register dependencies 2025-06-09 15:48:22 +08:00
Vickey 932cca4722 ci: update tag prefix from dc3.release to dc3.develop in docker-ci workflow 2025-05-12 15:47:49 +08:00
Vickey bf5864f368 ci: restructure docker-ci workflow job matrix 2025-05-12 15:45:55 +08:00
Vickey 4f9a24bd54 ci(docker): update tag trigger from dc3.release.* to dc3.develop.*
This change aligns the CI workflow with the current development branch naming convention, ensuring that the Docker image is built and pushed for development tags.
2025-05-08 21:59:50 +08:00
pnoker 8a0cc1ba1c build: add logstash-logback dependency and update logging configuration
Add Logstash Logback dependency to enable JSON logging and update the logback.xml configuration to include a JSON encoder. Also, update the CI workflow to cache Maven packages and improve build performance by disabling transfer progress.
2025-04-30 16:27:02 +08:00
pnoker ced2edfffa ci: update Dockerfile paths in CI workflow for multi-service builds
The Dockerfile paths in the CI workflow were updated to use the correct service-specific paths instead of the default `./Dockerfile`. This ensures that the correct Dockerfile is used for each service during the build process, avoiding potential errors in multi-service builds.
2025-04-27 14:34:01 +08:00
pnoker d8ad90e91a refactor: remove TDEngine-related files and configurations
Removed TDEngine-related files, configurations, and dependencies to streamline the codebase and improve maintainability. This includes deleting TDEngine-specific classes, YAML files, Mapper XML, and removing TDEngine references from the POM files and constant classes. Additionally, updated the Docker CI workflow to ensure consistency.
2025-04-27 14:20:38 +08:00
pnoker e294c22a55 refactor: simplify COPY paths in Dockerfiles and fix CI workflow
This commit simplifies the COPY paths in multiple Dockerfiles to use a more consistent and concise format. Additionally, it fixes a typo in the CI workflow and updates the context paths for Docker builds to ensure proper execution.
2025-04-27 14:05:55 +08:00
pnoker 1d7fcab366 ci: fix incorrect variable reference in docker-ci.yml
The commit corrects the variable reference from `steps.version.outputs.varsiables.version` to `steps.varsiables.outputs.version` in the Docker image tagging process. This ensures the correct version is used for tagging images across all services.
2025-04-27 11:11:52 +08:00
pnoker bff23c3628 ci(docker-ci): update JDK setup and fix version variable references
Update the JDK setup step to use `actions/setup-java@v4` with the Liberica distribution. Fix the version variable references in docker image tags to correctly use `steps.version.outputs.varsiables.version` instead of `steps.version.outputs.varsiables`.
2025-04-27 11:06:15 +08:00
pnoker 87153bfeea ci: remove build cache configuration from docker-ci.yml
The build cache configuration (`cache-from` and `cache-to`) has been removed to simplify the Docker build process and reduce dependency on external cache registries. This change aims to streamline the CI workflow and improve build reliability.
2025-04-27 10:51:08 +08:00
pnoker d8005cc369 ci(docker-ci): reorder and update CI workflow steps
Reordered environment variable assignments for better readability and replaced Maven cache step with JDK 21 setup to ensure compatibility with the latest Java version.
2025-04-25 22:04:45 +08:00
pnoker 25f7fb5dbd refactor(docker): simplify Dockerfiles and CI workflow by removing builder stage and optimizing build process
Removed the redundant builder stage from all Dockerfiles to streamline the build process. Updated the CI workflow to include Maven build and caching steps, reducing complexity and improving efficiency. These changes aim to enhance maintainability and reduce build times.
2025-04-25 22:01:08 +08:00