Feature launch clear data

 


1 update [dbo].[FeatureToggles]  set [FeatureLaunchId] = null

2 update [dbo].[FeatureToggles]  set [IsLaunched] = 0 

3 Delete from [dbo].[WebstoreFeatureToggles]

4 Delete [dbo].[FeatureLaunches]


Add feature launch 




SendGrid

 Go to azure 

Search SCCSMTP001


click Open SaaS Account on publisher’s site

settings > sender authentication > click show more.



VPN

 slvpn.ism-egroup.com

uname : s.kod

pw: pc login 



Fastly


https://manage.fastly.com/home

Fastly


https://www.microsoft365.com/apps?auth=2&home=1

heart 1

Sign in to your account



change CloudConfigs FastlyEnableForNewInstallation value to false

update [dbo].[CloudConfigs] set[Value] = 'false' where [key] = 'FastlyEnableForNewInstallation'


restart app

STAGING-WORKER-WEBAPP-PLATFORM-01

cypress typescript Advane

 

convert string to type 

export type InstallationPackage = 'Essential' |'Pro'|'Advanced'|'AdvancedLegacy'

let packageTypeName = packageType as InstallationPackage


export type HostingLevel = 'A - Beta / Test / Acceptance'|'B - Live / Production'

let hostingLevel:HostingLevel = Cypress.env('HostingLiveBeta')
    I.Log(hostingLevel)


simple Key, Value pair array 

//Define a simple Key value pair array
    let aksAddonSettingsValueList :{ Name: string; AksValue: string; }[]
   
    aksAddonSettingsValueList = [
        { Name:"MinBasketCalculationDelay", AksValue:aksDeploymentResponse.env.APP_Basket__MinBasketCalculationDelay},
        { Name:"OfflineModeSupport", AksValue:aksDeploymentResponse.env.APP_OfflineMode__Support},
        { Name:"UploadDesignPacks", AksValue:aksDeploymentResponse.env.APP_Features__UploadDesignPacks},
     


convert response object to Key value by Object entres

const envProperties = Object.entries(aksDeploymentResponse.env);

    // Output env name and value
    envProperties.forEach(([name, value]) => {
         I.Log(`Env Name: ${name}, Value: ${value}`);

         appSettingsData.AppSettings.AppSettings.find(x=>x.ResponseKey)

    });









Remove visible sensitive data SP 107 2023.11.07

This feature introduces Azure Key Vault , it's removes sensitive data from your code, boosting security. Now, keep your secrets safe and code clean effortlessly.

  • Go to the Azure portal  https://portal.azure.com/#home
  • go to "Key vaults" 
  • Search EA Sana dev Platform 
  • SanaPlatform-staging


then go to Secret > select any value 

eg: ApplicationSecrets-AzureWebJobStorage

secret value kept as encrypted

and authorized users can change the sensitive data from here. without hardcoding at the code level.


two types of jobs 

1 Azure portal job (Keep)

2 operation Kubernetes (backup, upgrade, retry, extend trial)

eg:

now in App.config files don't keep any data,



all the details are kept in userSecretsFile.

 userSecretsFile location is "C:\\home\\secrets.xml" (only use for Azure jobs)

by reading those data it will fill the appSettings Key value details 

file inside secrets.xml



in Kubanetise doesn't work like this 
because it doesn't have any c:/ path 

inside the cluster > up the init container 

data initializer  > yellow > green > active 


eg
once the restart or backup starts, it will create a Pod and it will create 2 containers 
1st container downloads the secret json,
2nd Get those data and share with relevant application and Run the application.




Kubanetis 

Backup,Upgrade ,

Dinertrace  















Access Token Single sign Login


Problem : Single sign-on users unable to acess the Sana Platform APIs.

Solution: Intraduce the Personal Access Token feature

This feature is designed to help users who use Single Sign-On but can't access the Sana Platform APIs .

The problem arises because when you log in through Single Sign-On, user don't need to enter a password for the Platform portal.

This means these users can't use the "/api/v1/accounts/authentication-token" API to generate an "Access Token" and use other APIs.

 


Update Role permission> 

Personal Access Token > Manage Personal Access Token




When the new employee comes to the office, office will create a Microsoft login

Then if the person wants to access the Platform Portal,
platform admin will create an account on login to him



user  can activate the account by clicking email confirmation link.


after granting the permission ,usser able use the personal access token feature as folowing

  • Click Personal Access Token (under profile image)


  • Click Create Token> fill details > save
  • Copy User access Token.(token will only appier one time)

  • user can create multiple access tokens (currently 5 records)


when user tried more than 5 time to create accesstokern it will show folowing error. 


sesstion will expire 15 mins