Commit feb6827
fix(data-drains): apply feature-flag and enterprise gates to read routes
Only role enforcement should relax for read-only callers — feature-flag
and enterprise-plan checks must apply to reads too. Otherwise on
self-hosted with DATA_DRAINS_ENABLED unset any org member can enumerate
drain configs (bucket names, webhook URLs), and on Cloud an org that
downgraded off Enterprise still exposes its old drain configs to every
member.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5ec4537 commit feb6827
1 file changed
Lines changed: 20 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
67 | | - | |
68 | | - | |
| 81 | + | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
| |||
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
0 commit comments