Skip to main content

Risks and Technical Debts

In the following, risks (possible future problems) and technical debts (already existing) are presented.

Risks​

RiskDescription
Unannounced breaking changesAs discussed in the Architecture Constraints, the whole Innamark project does not have consistent versioning or releases. Thus, breaking changes can occur and are not noticed by the users.
Watermarker library changes break other building blocksSince Innamark has various building blocks which depend on each other (e.g., the CLI tool or web interface working with the watermarker library), it can lead to problems if breaking changes occur in such a building block. If the watermarker library changes, it might also break the building blocks using it.
Documentation driftThe current documentation is hand-written and not generated or checked automatically. If the documentation is not updated when the code is changed, it can lead to outdated documentation. While first mitigations are implemented (such as a hint for agents in the AGENTS.md), it still cannot be guaranteed, especially for images like PlantUML SVGs.
Challenging diagnostics due to lack of log persistenceThe watermarker library uses a special error handling with Status, Events, and Results (see Error Handling Concept), it does not have a centralized logging inside a log file. If the user does not store or handle logs, debugging problems can get challenging.
Breaking watermarks on normalizationMore and more watermark normalization tools are published, trying to clean a watermarked cover text. The usage of such tools can break or remove an Innamark watermark.
Watermark visibilityWhile the watermark is almost invisible in various tested applications due to the specific whitespace characters of the alphabet, they could get visible in edge-cases, like applications showing those control characters or when using custom fonts.
Capacity limit on short textsIf a watermark can fit in a cover text at least one time depends on the length of the watermark, the length of the cover text and the used alphabet. There are cases where a cover text can't be watermarked since it does not have enough whitespaces.

Technical Debts​

Technical DebtDescription
Missing changelog / migration guideSince there is no versioning or releases, no changelog or migration guide exist.
Divergent dependency versionsSince Innamark has various building blocks, each building block (like the watermarker library, CLI tool, or web interface) has its own dependencies. Since there is no uniform version catalog, multiple versions of the dependencies could be used inside the overall Innamark project. This happens, for example, with dependencies such as the gradle-wrapper or the Kotlin version.
Test coverageWhile the watermarker library is comparably well-tested and aims for a full test coverage, the other building blocks (CLI tool and web interface) aren't. Further, current tests mainly focus on Unit test levels of functions/methods, but miss deep end-to-end and integration tests such as verifying that all build targets (JVM and JS) work the same.
Dead / deprecated codeThe code has different leftovers currently not used (anymore), such as a ZipFileWatermarker in the watermarker library or a WatermarkFileTab in the web interface.
Long InnamarkTag implementationWhile InnamarkTags can be configured with different options (like compression, hashing, etc.), each combination represents its own InnamarkTag and, therefore, its own class, leading to a very long InnamarkTag.kt file. Adding another option would increase the file even more.
Possibility of exceptionsEven if the watermark library aims for not using exceptions (see Error Handling Concept), there might be edge-cases where exceptions are raised due to the usage of !! and check/require in the watermarker library.