(error: unknown)
| 117 | } |
| 118 | |
| 119 | function isS3ServiceException(error: unknown): error is S3ServiceException { |
| 120 | return ( |
| 121 | typeof error === 'object' && |
| 122 | error !== null && |
| 123 | '$metadata' in error && |
| 124 | typeof (error as { name?: unknown }).name === 'string' |
| 125 | ) |
| 126 | } |
| 127 | |
| 128 | /** DNS-aware SSRF check: catches hostnames that resolve to internal IPs (the schema check only catches IP literals). */ |
| 129 | async function assertEndpointIsPublic(endpoint: string | undefined): Promise<void> { |
no outgoing calls
no test coverage detected