mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 02:56:04 +00:00
* feat(ios): support per-gateway custom headers for proxied gateway connections Per-gateway custom request headers (Cloudflare Access-style service tokens) for gateways behind authenticating reverse proxies. Headers are credentials: Keychain-stored per gateway stableID, masked in settings UI, injected on the WebSocket upgrade at connect time via a provider so edits apply on the next reconnect without re-pairing. Reserved handshake headers and control chars are sanitized out. TLS pinning and pairing flows unchanged. Push relay and other non-gateway destinations proven header-free by regression test. Related: #100698 * chore(ios): sync native i18n inventory for custom header strings * fix(ios): harden gateway custom headers * chore(ios): resync native i18n inventory * fix(ios): validate custom header names
21 lines
690 B
Swift
21 lines
690 B
Swift
import Foundation
|
|
import OpenClawKit
|
|
|
|
enum KeychainStore {
|
|
static func loadString(service: String, account: String) -> String? {
|
|
GenericPasswordKeychainStore.loadString(service: service, account: account)
|
|
}
|
|
|
|
static func saveString(_ value: String, service: String, account: String) -> Bool {
|
|
GenericPasswordKeychainStore.saveString(value, service: service, account: account)
|
|
}
|
|
|
|
static func delete(service: String, account: String) -> Bool {
|
|
GenericPasswordKeychainStore.delete(service: service, account: account)
|
|
}
|
|
|
|
static func deleteAll(service: String) -> Bool {
|
|
GenericPasswordKeychainStore.deleteAll(service: service)
|
|
}
|
|
}
|