bbrf-client icon indicating copy to clipboard operation
bbrf-client copied to clipboard

Unexpected behavior when multiple programs have overlapping scope

Open honoki opened this issue 5 years ago • 1 comments

There is currently a known issue when configuring multiple programs with overlapping scope to a single bbrf instance, when trying to add a domain to each of the programs.

For example, when program1 and program2 both have *.example.com in their inscope, the command bbrf domain add www.example.com -p program1 will add a new document with identifier www.example.com to the database, and a subsequent bbrf domain add www.example.com -p program2 will silently fail without adding the new document, because a document with the same key already exists.

As a result, listing domains for program 2 with bbrf domains -p program2 will not include www.example.com.

A possible solution would be to store program names as part of the document key, but this introduces a number of other disadvantages. Another solution might be to issue a warning when specifying a scope that overlaps with the scope of another program.

honoki avatar Nov 08 '20 20:11 honoki

Hi @honoki, I faced this problem today. It would be very useful to have a debug error/warning about the overlapping scope or repeated domains.

pdelteil avatar Jun 14 '21 19:06 pdelteil