Skip to content

Commit ad0ead0

Browse files
fbm3307cursoragent
andcommitted
Add PhoneLookupMode to ToolchainConfig CRD
- Dispatch updated CRD YAML with phoneLookupMode field (disabled/log/enabled) - Update go.mod to reference toolchainapi with phone-lookup annotations Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Feny Mehta <fbm3307@gmail.com>
1 parent e74ff80 commit ad0ead0

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

config/crd/bases/toolchain.dev.openshift.com_toolchainconfigs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,16 @@ spec:
356356
NotificationSender is used to specify which service should be used to send verification notifications. Allowed
357357
values are "twilio", "aws". If not specified, the Twilio sender will be used.
358358
type: string
359+
phoneLookupMode:
360+
description: |-
361+
PhoneLookupMode controls how the registration service handles Twilio Lookup v2 phone risk checks.
362+
Valid values are "disabled" (skip Lookup entirely), "log" (call Lookup and store results but don't block),
363+
and "enabled" (call Lookup and enforce blocking). Defaults to "log".
364+
enum:
365+
- disabled
366+
- log
367+
- enabled
368+
type: string
359369
secret:
360370
description: Defines all secrets related to the registration
361371
service verification configuration

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,5 @@ require (
156156
go 1.24.4
157157

158158
toolchain go1.24.13
159+
160+
replace github.com/codeready-toolchain/api => github.com/fbm3307/toolchainapi v0.0.0-20260604075613-b313112960df

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJ
3737
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
3838
github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5 h1:6xNmx7iTtyBRev0+D/Tv1FZd4SCg8axKApyNyRsAt/w=
3939
github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5/go.mod h1:KdCmV+x/BuvyMxRnYBlmVaq4OLiKW6iRQfvC62cvdkI=
40-
github.com/codeready-toolchain/api v0.0.0-20260415142422-12ff40f3bdb6 h1:d4DTT/6zhDFTN9rlCggsz/PLZGUCRccbSATcDmdTjzI=
41-
github.com/codeready-toolchain/api v0.0.0-20260415142422-12ff40f3bdb6/go.mod h1:PMg6kNHuCGNlu3MOdrCisqGkBpvzB0qS1+E6nrXxPAc=
4240
github.com/codeready-toolchain/toolchain-common v0.0.0-20260305144813-52d9242e8c74 h1:yxKX0m6Kk1AIWwaGpf25flTfTrYrEJ9TyLW5NEQSq0Y=
4341
github.com/codeready-toolchain/toolchain-common v0.0.0-20260305144813-52d9242e8c74/go.mod h1:NEnnq2R5GYoWdN0b0iaSdX7L1ndrzxl3ML0m7XLsSqk=
4442
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
@@ -72,6 +70,8 @@ github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870 h1:E2s37DuLxFhQD
7270
github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0=
7371
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
7472
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
73+
github.com/fbm3307/toolchainapi v0.0.0-20260604075613-b313112960df h1:1SBsy7mpHKaGa1gsvjrgx39yaJyRcAjZ7/730/xac0Y=
74+
github.com/fbm3307/toolchainapi v0.0.0-20260604075613-b313112960df/go.mod h1:PMg6kNHuCGNlu3MOdrCisqGkBpvzB0qS1+E6nrXxPAc=
7575
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
7676
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
7777
github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E=

0 commit comments

Comments
 (0)