Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCMPRE: individual service: password/roles sharing vulnerability fixed, rem… #3144

Open
wants to merge 1 commit into
base: UNIFIED-DEV
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions egov-persister/individual-persister.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ serviceMaps:
- jsonPath: $.*.address.*.street
- jsonPath: $.*.address.*.locality.code
- jsonPath: $.*.address.*.ward.code
- query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
- query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.*
jsonMaps:
- jsonPath: $.*.id
Expand Down Expand Up @@ -69,9 +69,6 @@ serviceMaps:
- jsonPath: $.*.isSystemUserActive
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- jsonPath: $.*.clientAuditDetails.createdTime
- jsonPath: $.*.clientAuditDetails.lastModifiedTime
- jsonPath: $.*.clientAuditDetails.createdBy
Expand Down Expand Up @@ -121,7 +118,7 @@ serviceMaps:
fromTopic: update-individual-topic
isTransaction: true
queryMaps:
- query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false;
- query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false;
basePath: $.*
jsonMaps:
- jsonPath: $.*.userId
Expand Down Expand Up @@ -150,9 +147,6 @@ serviceMaps:
- jsonPath: $.*.rowVersion
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- jsonPath: $.*.clientAuditDetails.lastModifiedTime
- jsonPath: $.*.clientAuditDetails.lastModifiedBy
- jsonPath: $.*.id
Expand Down
10 changes: 2 additions & 8 deletions health/egov-persister/individual-persister.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ serviceMaps:
- jsonPath: $.*.address.*.street
- jsonPath: $.*.address.*.locality.code
- jsonPath: $.*.address.*.ward.code
- query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
- query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.*
jsonMaps:
- jsonPath: $.*.id
Expand Down Expand Up @@ -69,9 +69,6 @@ serviceMaps:
- jsonPath: $.*.isSystemUserActive
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- jsonPath: $.*.clientAuditDetails.createdTime
- jsonPath: $.*.clientAuditDetails.lastModifiedTime
- jsonPath: $.*.clientAuditDetails.createdBy
Expand Down Expand Up @@ -128,7 +125,7 @@ serviceMaps:
transactionCodeJsonPath: $.clientReferenceId
auditAttributeBasePath: $.*
queryMaps:
- query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false;
- query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false;
basePath: $.*
jsonMaps:
- jsonPath: $.*.userId
Expand Down Expand Up @@ -157,9 +154,6 @@ serviceMaps:
- jsonPath: $.*.rowVersion
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- jsonPath: $.*.clientAuditDetails.lastModifiedTime
- jsonPath: $.*.clientAuditDetails.lastModifiedBy
- jsonPath: $.*.id
Expand Down
10 changes: 2 additions & 8 deletions works/egov-persister/individual-persister.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ serviceMaps:
- jsonPath: $.*.address.*.street
- jsonPath: $.*.address.*.locality.code
- jsonPath: $.*.address.*.ward.code
- query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type, roles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
- query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, type) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.*
jsonMaps:
- jsonPath: $.*.id
Expand Down Expand Up @@ -62,9 +62,6 @@ serviceMaps:
- jsonPath: $.*.isSystemUserActive
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.*.address.*
jsonMaps:
Expand Down Expand Up @@ -109,7 +106,7 @@ serviceMaps:
fromTopic: update-individual-topic
isTransaction: true
queryMaps:
- query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, roles = ? WHERE id=? AND isDeleted=false;
- query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, type = ?, WHERE id=? AND isDeleted=false;
basePath: $.*
jsonMaps:
- jsonPath: $.*.userId
Expand Down Expand Up @@ -138,9 +135,6 @@ serviceMaps:
- jsonPath: $.*.rowVersion
- jsonPath: $.*.userDetails.username
- jsonPath: $.*.userDetails.type
- jsonPath: $.*.userDetails.roles
type: JSON
dbType: JSONB
- jsonPath: $.*.id
- query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?;
basePath: $.*.address.*
Expand Down