@@ -347,27 +347,6 @@ <h3>Open source & open data</h3>
347347 }
348348}
349349
350- // Hyperscaler trace detection for swiss-based municipalities: flags cases where
351- // MX is Swiss but outbound/auth DNS still touches Microsoft/Google/AWS.
352- const HYPERSCALER_PROVIDERS = { microsoft : 'Microsoft' , google : 'Google' , aws : 'AWS' } ;
353- const NON_MX_TRACE_KINDS = { spf : 1 , dkim : 1 , autodiscover : 1 , cname_chain : 1 , spf_ip : 1 , asn : 1 } ;
354-
355- function getHyperscalerNonMxTraces ( m ) {
356- if ( ! m || ! m . classification_signals ) return [ ] ;
357- const byHs = { } ;
358- for ( const s of m . classification_signals ) {
359- const label = HYPERSCALER_PROVIDERS [ s . provider ] ;
360- if ( ! label || ! NON_MX_TRACE_KINDS [ s . kind ] ) continue ;
361- if ( ! byHs [ label ] ) byHs [ label ] = new Set ( ) ;
362- byHs [ label ] . add ( SIGNAL_LABELS [ s . kind ] || s . kind ) ;
363- }
364- return Object . keys ( byHs ) . sort ( ) . map ( name => ( {
365- name,
366- kinds : Array . from ( byHs [ name ] ) . sort ( ) ,
367- } ) ) ;
368- }
369-
370-
371350const map = initMap ( 'map' ) ;
372351setupInfoBar ( map ) ;
373352const isMobile = window . innerWidth <= 600 ;
@@ -538,21 +517,11 @@ <h3>Open source & open data</h3>
538517 if ( m . gateway ) metaParts . push ( `Gateway: ${ escapeHtml ( m . gateway ) } ` ) ;
539518 const metaLine = `<div class="popup-meta">${ metaParts . join ( ' · ' ) } </div>` ;
540519
541- let traceLine = '' ;
542- if ( cat === 'swiss-based' ) {
543- const traces = getHyperscalerNonMxTraces ( m ) ;
544- if ( traces . length ) {
545- const parts = traces . map ( t => `${ t . name } (${ t . kinds . join ( ', ' ) } )` ) . join ( ', ' ) ;
546- traceLine = `<div class="popup-trace" title="Mail is routed through a Swiss provider, but outbound or authentication DNS still references a hyperscaler.">⚠ Outbound DNS also references ${ escapeHtml ( parts ) } </div>` ;
547- }
548- }
549-
550520 layer . bindPopup (
551521 `<div class="info-popup">` +
552522 `<strong>${ nameDisplay } </strong><br>` +
553523 `${ eDomain } ${ badge } ` +
554524 metaLine +
555- traceLine +
556525 mxSection + spfSection + signalsSection +
557526 `</div>` ,
558527 { maxWidth : isMobile ? 300 : 450 }
0 commit comments