Commit Graph

11 Commits

Author SHA1 Message Date
Avgustin Marinov
011d7f567e Refactor header authority controller authentication (#2954)
1. (breaking changes) hawkbit.server.ddi.security.rp.cnHeader and sslIssuerHashHeader are renamed to controllerIdHeader and authorityHeader correspondingly.
2. (breaking changes) their default values are changed: X-Ssl-Client-Cn -> X-Controller-Id and X-Ssl-Issuer-Hash-%d -> X-Authority
3. Now the authority header configuration is not a string forma but just a string. The implemenation checks for this header as comma or ; separated list or seeks for header iteration <authority_header>-%d (iteration starts from 0 or 1
4. Doc fixed
5. As there are breaking changes configuration changes may be needed: a) with changing the hawkbit.server.ddi.security.rp you could turn back the previous default headers (note X-Ssl-Issuer-Hash-%d shall now be X-Ssl-Issuer-Hash), or b) you may change the headers sent by the reverse proxy

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2026-03-12 10:36:37 +02:00
Vasil Ilchev
ea3fe213e0 Schema changes int->tinyint and foreginkeys/indexes rename (#2922)
* Schema changes int->tinyint and foreginkeys/indexes rename

* Optimize schema migration to do all related changes within one statement per table - i.e. no redundant table re-builds

* Foreign key checks disabled for huge dbs

* Merge unify and convergence schemas as they both do migrations on common tables - reduce downtime

* Rename unify schema
2026-02-19 13:43:47 +02:00
Avgustin Marinov
66da13a038 Add option to provide flyway callbacks to db init (#2764)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-10-20 14:00:48 +03:00
Avgustin Marinov
58b969db38 Bump spring-boot to 3.5.0 (#2418)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-06-11 08:52:10 +03:00
Avgustin Marinov
aae42b2751 DB Init: Detailed exit codes (on validate) (#2392)
* 1 means can't perform valitate - e.g. db connection failed
* 2 means it has performed validation but db schema is not valid (FlywayValidateException)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-05-08 14:20:47 +03:00
Avgustin Marinov
744ab70f97 Small DB Init refactoring (#2382)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-29 10:08:54 +03:00
Avgustin Marinov
6a2bcb1f9a Add locations configuration for flyway db init (default still db/migration) (#2381)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 16:54:37 +03:00
Avgustin Marinov
8a3fa1e8a7 Add table name configuration for flyway db init (default still schema_version) (#2380)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 14:45:52 +03:00
Avgustin Marinov
ffc550fcc7 Fix/db refactoring rename (#2365)
* Refactor datbase - renaming

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

* Final refactoring

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

---------

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-25 16:08:23 +03:00
Avgustin Marinov
d2a41d1bff Feature/docker dbinit (#2371)
* Standalone tool for initializing of hawkBit Database

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

* Add docker build for dbinit

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

---------

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-24 16:40:55 +03:00
Avgustin Marinov
df398c9a74 Standalone tool for initializing of hawkBit Database (#2369)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-24 16:27:28 +03:00