Skip to content

Treat bitcoin/coinbase mentions as spam in KubeDB Inquiry - #135

Merged
tamalsaha merged 1 commit into
masterfrom
kubedb-inquiry-spam-filter
Sep 4, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
kubedb-inquiry-spam-filter

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Summary

  • Add KubeDBInquiryInfo.IsSpam(), which checks the customer name, company, address, country, and all deal-detail/notes fields (case-insensitive) for the keywords "bitcoin" or "coinbase"
  • Validate() now rejects the submission as spam when IsSpam() is true, so HandleKubeDBInquiry never runs — no deal-spreadsheet row, no Freshsales note, no sales email

Test plan

  • go build -mod=vendor ./...
  • go test -mod=vendor -race ./pkg/server/...
  • Submit /_/kubedb_inquiry/ with "bitcoin"/"coinbase" mentioned in any field and confirm it's rejected and not processed

Reject KubeDB Inquiry submissions that mention "bitcoin" or
"coinbase" anywhere in the form (case-insensitive) as spam, so they
are never written to the deal spreadsheet, logged as a Freshsales
note, or emailed to sales.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 52dd112 into master Sep 4, 2026
4 checks passed
@tamalsaha
tamalsaha deleted the kubedb-inquiry-spam-filter branch September 4, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant