Secretos para ASP.NET WEB Forms NET Framework 4.8

8 views
Skip to first unread message

Kiquenet

unread,
Aug 6, 2026, 7:22:39 AM (2 days ago) Aug 6
to AltNet-Hispano

En web.config aparece algo así:

 <system.net>
   <defaultProxy />
   <mailSettings>
     <smtp>
       <network host="SMTP.office365.com" port="587" userName="pepe....@xxxxxx.com" password="xxxxyyyyzzz" defaultCredentials="false" />
     </smtp>
   </mailSettings>
 </system.net>

El password aparece en web.config y está en repositorio. Podrán verlo todos los desarrolladores que trabajen con esa rama.
Y en local, cada dev tendrá su usuario.

Es posible tener secretos en ASP.NET Web Forms ?

sin cifrar la sección ??
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

aspnet_regiis.exe -pef "system.net/mailSettings" "C:\Ruta\A\TuAplicacion"


Reply all
Reply to author
Forward
0 new messages