add tamper protection

This commit is contained in:
gowthaman.b
2023-11-12 09:59:14 +05:30
parent bf0a9ccbc9
commit 4e0d5d0296
7 changed files with 66 additions and 32 deletions

View File

@@ -45,7 +45,7 @@ object Session {
//if not passed in ENV, then we shall generate and print
private fun makeRsaJsonWebKey(publicKey: String, privateKey: String): RsaJsonWebKey {
logger.warn("making KeyPair from Config \n$publicKey\n\n$privateKey")
val newPublicKey = readPublicKey(publicKey)
val newPrivateKey = readPrivateKey(privateKey)
val rsa = PublicJsonWebKey.Factory.newPublicJwk(newPublicKey) as RsaJsonWebKey
@@ -143,9 +143,6 @@ object Session {
setProperty("datasource.db.password", appConfig.dbPass())
setProperty("datasource.db.url", appConfig.dbUrl())
setProperty("ebean.migration.run", appConfig.dbRunMigration().toString())
if (appConfig.seedSqlFile().isPresent) {
setProperty("ebean.ddl.seedSql", appConfig.seedSqlFile().get())
}
})
tenantMode = TenantMode.PARTITION
currentTenantProvider = CurrentTenantProvider { currentUser.get().tenant }