You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153628: backup: remove bulkio.backup.deprecated_full_backup_with_subdir.enabled setting r=jeffswenson a=msbutler
This patch removes the bulkio.backup.deprecated_full_backup_with_subdir.enabled
cluster setting, since when set to true, the backups will now fail.
Informs #139159
Release note (ops change): this patch removes the
bulkio.backup.deprecated_full_backup_with_subdir.enabled cluster setting, since
backups will now fail if it is set to true.
153668: external connection: fix sql injection vuln in ALTER EXTERNAL CONNECTION r=jeffswenson a=msbutler
Previously, the sql command which ran directly on system.external_connections passed the external connection name via string parsing, which makes the query vulnerable to sql injection. This patch fixes this vulnerability by passing the name as a parameter.
Epic: none
Release note: none
153755: roachprod: fix NewPromClient creating IAP token source when disabled r=golgeek a=ajstorm
## Summary
Fixes a bug introduced in the IAP authentication refactor (ba62711) where `NewPromClient()` would always attempt to create an IAP token source, even when Prometheus integration was disabled.
## Problem
After the recent IAP authentication refactor, users running `roachprod start` outside of Google Cloud environments would encounter this error:
```
failed to create IAP token source: failed to get default credentials: glcoud not on path
```
This happens even when `ROACHPROD_PROM_HOST_URL=""` is set to disable Prometheus integration.
## Root Cause
The condition in `NewPromClient()` only checked `if c.httpClient == nil` but didn't verify whether the client was disabled. When `ROACHPROD_PROM_HOST_URL=""` is set, `promRegistrationUrl` becomes `""` which correctly sets `disabled: true`, but the IAP token source creation was still being attempted.
## Solution
Modified the condition to also check `!c.disabled`, ensuring that when Prometheus integration is disabled, no IAP authentication is attempted.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Michael Butler <[email protected]>
Co-authored-by: Adam Storm <[email protected]>
Copy file name to clipboardExpand all lines: docs/generated/settings/settings-for-tenants.txt
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ admission.epoch_lifo.epoch_duration duration 100ms the duration of an epoch, for
5
5
admission.epoch_lifo.queue_delay_threshold_to_switch_to_lifo duration 105ms the queue delay encountered by a (tenant,priority) for switching to epoch-LIFO ordering application
6
6
admission.sql_kv_response.enabled boolean true when true, work performed by the SQL layer when receiving a KV response is subject to admission control application
7
7
admission.sql_sql_response.enabled boolean true when true, work performed by the SQL layer when receiving a DistSQL response is subject to admission control application
8
-
bulkio.backup.deprecated_full_backup_with_subdir.enabled boolean false when true, a backup command with a user specified subdirectory will create a full backup at the subdirectory if no backup already exists at that subdirectory application
9
8
bulkio.backup.file_size byte size 128 MiB target size for individual data files produced during BACKUP application
10
9
bulkio.backup.read_timeout duration 5m0s amount of time after which a read attempt is considered timed out, which causes the backup to fail application
11
10
bulkio.backup.read_with_priority_after duration 1m0s amount of time since the read-as-of time above which a BACKUP should use priority when retrying reads application
Copy file name to clipboardExpand all lines: docs/generated/settings/settings.html
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@
9
9
<tr><td><divid="setting-admission-kv-enabled" class="anchored"><code>admission.kv.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>when true, work performed by the KV layer is subject to admission control</td><td>Advanced/Self-Hosted</td></tr>
10
10
<tr><td><divid="setting-admission-sql-kv-response-enabled" class="anchored"><code>admission.sql_kv_response.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>when true, work performed by the SQL layer when receiving a KV response is subject to admission control</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
11
11
<tr><td><divid="setting-admission-sql-sql-response-enabled" class="anchored"><code>admission.sql_sql_response.enabled</code></div></td><td>boolean</td><td><code>true</code></td><td>when true, work performed by the SQL layer when receiving a DistSQL response is subject to admission control</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
12
-
<tr><td><divid="setting-bulkio-backup-deprecated-full-backup-with-subdir-enabled" class="anchored"><code>bulkio.backup.deprecated_full_backup_with_subdir.enabled</code></div></td><td>boolean</td><td><code>false</code></td><td>when true, a backup command with a user specified subdirectory will create a full backup at the subdirectory if no backup already exists at that subdirectory</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
13
12
<tr><td><divid="setting-bulkio-backup-file-size" class="anchored"><code>bulkio.backup.file_size</code></div></td><td>byte size</td><td><code>128 MiB</code></td><td>target size for individual data files produced during BACKUP</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
14
13
<tr><td><divid="setting-bulkio-backup-read-timeout" class="anchored"><code>bulkio.backup.read_timeout</code></div></td><td>duration</td><td><code>5m0s</code></td><td>amount of time after which a read attempt is considered timed out, which causes the backup to fail</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
15
14
<tr><td><divid="setting-bulkio-backup-read-with-priority-after" class="anchored"><code>bulkio.backup.read_with_priority_after</code></div></td><td>duration</td><td><code>1m0s</code></td><td>amount of time since the read-as-of time above which a BACKUP should use priority when retrying reads</td><td>Basic/Standard/Advanced/Self-Hosted</td></tr>
0 commit comments