nuke/lib/policy/config
Xe Iaso 4948036f39
feat: add default OpenGraph tags to configuration file (#694)
* feat(config): opengraph passthrough configuration

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(ogtags): use config.OpenGraph for configuration

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: wire up ogtags config in most of the app

Signed-off-by: Xe Iaso <me@xeiaso.net>

* feat(ogtags): return default tags if they are supplied

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: make OpenGraph legal so we have some sanity in reviewing

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(lib): use OpenGraph.Enabled

Signed-off-by: Xe Iaso <me@xeiaso.net>

* test(lib): load default config file if one is not specified in spawnAnubis

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(config): fix ST1005

Signed-off-by: Xe Iaso <me@xeiaso.net>

* docs: document open graph defaults and its new home in the policy file

Signed-off-by: Xe Iaso <me@xeiaso.net>

* docs(installation): point to weight threshold new home

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: rename default to override

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(default-config): add off-by-default opengraph settings to bot policy file

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(anubis): make build

Signed-off-by: Xe Iaso <me@xeiaso.net>

* test(lib): fix build

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-06-19 18:00:44 -04:00
..
testdata feat: add default OpenGraph tags to configuration file (#694) 2025-06-19 18:00:44 -04:00
asn.go feat: implement a client for Thoth, the IP reputation database for Anubis (#637) 2025-06-16 11:57:32 -04:00
asn_test.go fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
config.go feat: add default OpenGraph tags to configuration file (#694) 2025-06-19 18:00:44 -04:00
config_test.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
expressionorlist.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
expressionorlist_test.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
geoip.go fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
geoip_test.go fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
opengraph.go feat: add default OpenGraph tags to configuration file (#694) 2025-06-19 18:00:44 -04:00
opengraph_test.go feat: add default OpenGraph tags to configuration file (#694) 2025-06-19 18:00:44 -04:00
threshold.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
threshold_test.go fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
weight.go feat: add robots2policy CLI to convert robots.txt to Anubis CEL (#657) 2025-06-14 23:41:00 -04:00