mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
feat(security): harden gateway boundaries and usage policies
Consolidate subscription usage policy enforcement, privacy-safe persistence, and gateway security hardening into one reviewable change. Includes bounded HTTP and execution envelopes, header and protocol guards, DNS and relay validation, authentication and secret projection hardening, secure backup/install paths, and regression coverage.
This commit is contained in:
@@ -121,8 +121,8 @@
|
||||
/>
|
||||
<span class="title-text">{{ currentGroupTitle }}</span>
|
||||
<a
|
||||
v-if="currentAttempt.provider_website"
|
||||
:href="currentAttempt.provider_website"
|
||||
v-if="currentAttemptProviderWebsite"
|
||||
:href="currentAttemptProviderWebsite"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="provider-link"
|
||||
@@ -553,6 +553,7 @@ import JsonContentPanel from './JsonContentPanel.vue'
|
||||
import { ChevronLeft, ChevronRight, ExternalLink } from 'lucide-vue-next'
|
||||
import { requestTraceApi, type RequestTrace, type CandidateRecord, type ImageProgress } from '@/api/requestTrace'
|
||||
import { log } from '@/utils/logger'
|
||||
import { safeExternalWebUrl } from '@/utils/navigationSecurity'
|
||||
import { parseApiError } from '@/utils/errorParser'
|
||||
import { formatTokens } from '@/utils/format'
|
||||
import { formatApiFormat } from '@/api/endpoints/types/api-format'
|
||||
@@ -1079,6 +1080,10 @@ const currentAttempt = computed(() => {
|
||||
return selectedGroup.value.allAttempts[selectedAttemptIndex.value] || selectedGroup.value.primary
|
||||
})
|
||||
|
||||
const currentAttemptProviderWebsite = computed(() =>
|
||||
safeExternalWebUrl(currentAttempt.value?.provider_website),
|
||||
)
|
||||
|
||||
const currentAttemptTimeRange = computed<AttemptTimeRange | null>(() => {
|
||||
return resolveAttemptTimeRange(currentAttempt.value)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user