teler-sh / teler-waf

teler-waf is a Go HTTP middleware that protects local web services from OWASP Top 10 threats, known vulnerabilities, malicious actors, botnets, unwanted crawlers, and brute force attacks.
https://test.teler.sh
Apache License 2.0
340 stars 30 forks source link

[proposal] Remove `dsl` package #177

Closed dwisiswant0 closed 5 months ago

dwisiswant0 commented 5 months ago

Summary

The dsl package will be removed from the codebase and migrated into a new repository, https://github.com/teler-sh/dsl.

Motivation

The current codebase has become too complex, and maintaining the dsl package within it has become increasingly difficult. Migrating the dsl package into its own repository will help in better organization, management, and versioning of this specific functionality. It will also facilitate easier collaboration and contribution from external parties who may only be interested in the DSL aspect.

Design

The dsl package will be extracted from the existing codebase and placed into its own repository. This will involve creating a new repository dedicated to the dsl (done at https://github.com/teler-sh/dsl) package and transferring all relevant code, documentation, and tests into it. The package will then be published as a standalone module, allowing it to be independently versioned and distributed.

Drawbacks

Alternative Approaches

An alternative approach would be to refactor the existing codebase to simplify the dsl package within it. However, given the current complexity of the codebase, this may not be a feasible solution and could lead to further complications.

Unresolved Questions

What parts of the design are still undecided? Are there any outstanding questions or concerns that need to be addressed? For instance: