Commit Graph

10135 Commits

Author SHA1 Message Date
inoshperera
cc8470d3c0 add vpp user services 2023-06-26 19:10:17 +05:30
inoshperera
9ccf3a5fa5 Add vpp user apis
fixes https://roadmap.entgra.net/issues/10162
2023-06-23 23:22:40 +05:30
builder
ab2e1297e5 [maven-release-plugin] prepare for next development iteration 2023-06-21 13:48:25 +05:30
builder
6c9d33a16a [maven-release-plugin] prepare release v5.0.26 2023-06-21 13:48:19 +05:30
Inosh Perara
d17925cf7f Merge pull request 'HierarchicalGrouping' (#137) from ThilinaPremachandra/device-mgt-core:syncHierarchicalGrouping into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/137
2023-06-21 05:40:44 +00:00
b640d1cfb4 Merge pull request 'Update admin credentials variables in webapp-auth-config template' (#135) from navodzoysa/device-mgt-core:auth-config into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/135
2023-06-19 03:59:28 +00:00
0a491bcb32 Merge branch 'master' into auth-config 2023-06-16 10:53:32 +00:00
bfef1e5caa Merge pull request 'Fix class not found in Grafana component' (#138) from navodzoysa/device-mgt-core:fix-grafana into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/138
2023-06-16 10:53:06 +00:00
1890f07217 Merge branch 'master' into fix-grafana 2023-06-16 10:38:03 +00:00
cf2bd5e935 Add custom loggers (#136)
## Purpose
* Fixes https://roadmap.entgra.net/issues/10117

## Description
* Added custom logs for below cases:
1. Device connectivity events
2. Policy payload change events
3. Device enrollment history events
4. App install events

#### Log structure

**1. Device connectivity logs** - logs for newly added operations and calls for pending operations

Pattern :
{DateTime} {LogLevel} - {ActionTag} {OperationCode} {DeviceId} {DeviceType} {TenantDomain} {TenantId} {UserName} - log_message

```
[2023-06-15 00:12:09,093]  INFO - [ADD_OPERATION] [DEVICE_LOCATION] [97] [android] [carbon.super] [-1234] [admin]- Operation added
[2023-06-15 00:12:10,344]  INFO - [PENDING_OPERATION] [DEVICE_LOCATION] [675c60a9d31492d6] [android] [carbon.super] [-1234] [admin]- Device Connected
[2023-06-15 00:13:49,755]  INFO - [ADD_OPERATION] [DEVICE_LOCK] [97] [android] [carbon.super] [-1234] [admin]- Operation added
[2023-06-15 00:13:56,513]  INFO - [ADD_OPERATION] [DEVICE_MUTE] [97] [android] [carbon.super] [-1234] [admin]- Operation added
[2023-06-15 00:14:23,839]  INFO - [PENDING_OPERATION] [DEVICE_MUTE]
[2023-06-15 00:15:12,549]  INFO - [ADD_OPERATION] [INSTALL_APPLICATION] [97] [android] [carbon.super] [-1234] [admin]- Operation added
[2023-06-15 00:15:29,703]  INFO - [PENDING_OPERATION] [INSTALL_APPLICATION] [675c60a9d31492d6] [android] [carbon.super] [-1234] [admin]- Device Connected
```
**2. Policy payload change events** - logs for creating policy, updating policy, deleting policy, change policy priorities and apply changes to device logs

Pattern :
{DateTime} {LogLevel} - {ActionTag} {PolicyName} {TenantDomain} {TenantId} {Payload} {UserName} - log_message

```
[2023-06-15 00:15:53,264]  INFO - [UPDATE_POLICY] [passcodeios] [carbon.super] [-1234] [{"policyPayloadVersion":"2.0","id":33,"priorityId":1,"profile":{"profileId":33,"profileName":"passcodeios","tenantId":0,"deviceType":"ios","updatedDate":"Jun 15, 2023 12:15:53 AM","profileFeaturesList":[{"id":33,"featureCode":"PASSCODE_POLICY","profileId":0,"deviceType":"ios","content":"{\"forcePIN\":true,\"allowSimple\":true,\"requireAlphanumeric\":true,\"minLength\":7.0,\"minComplexChars\":4.0,\"pinHistory\":\"\"}","correctiveActions":[]}]},"policyName":"passcodeios","generic":false,"roles":["ANY"],"devices":[],"users":[],"active":false,"updated":false,"description":"test","compliance":"enforce","tenantId":-1234,"profileId":33,"policyType":"GENERAL"}] [admin] - Policy updated
[2023-06-15 00:34:38,980]  INFO - [ADD_POLICY] [application management policy] [carbon.super] [-1234] [{"policyPayloadVersion":"2.0","id":65,"priorityId":0,"profile":{"profileId":65,"profileName":"application management policy","tenantId":0,"deviceType":"windows","createdDate":"Jun 15, 2023 12:34:38 AM","updatedDate":"Jun 15, 2023 12:34:38 AM","profileFeaturesList":[{"id":65,"featureCode":"ALLOW_ALL_TRUSTED_APPS","profileId":0,"deviceType":"windows","content":"{\"enabled\":true}","correctiveActions":[]},{"id":73,"featureCode":"RESTRICT_APP_TO_SYSTEM_VOLUME","profileId":0,"deviceType":"windows","content":"{\"enabled\":false}","correctiveActions":[]}]},"policyName":"application management policy","generic":false,"roles":["ANY"],"devices":[],"users":[],"active":false,"updated":false,"description":"test","compliance":"enforce","tenantId":-1234,"profileId":0,"policyType":"GENERAL"}] [admin] - Policy created
[2023-06-15 00:35:05,420]  INFO - [DELETE_POLICY] [passcodeios] [carbon.super] [-1234] [{"policyPayloadVersion":"2.0","id":33,"priorityId":1,"profile":{"profileId":33,"profileName":"passcodeios","tenantId":-1234,"deviceType":"ios","createdDate":"Jun 13, 2023 10:24:30 PM","updatedDate":"Jun 15, 2023 12:15:53 AM","profileFeaturesList":[{"id":33,"featureCode":"PASSCODE_POLICY","profileId":33,"deviceType":"ios","content":"{\"forcePIN\":true,\"allowSimple\":true,\"requireAlphanumeric\":true,\"minLength\":7.0,\"minComplexChars\":4.0,\"pinHistory\":\"\"}","correctiveActions":[]}]},"policyName":"passcodeios","generic":false,"roles":["ANY"],"devices":[],"users":[],"active":false,"updated":true,"description":"test","compliance":"enforce","policyCriterias":[],"tenantId":-1234,"profileId":33,"deviceGroups":[],"policyType":"GENERAL"}] [admin] - Policy deleted
[2023-06-15 00:35:12,768]  INFO - [UPDATE_POLICY_PRIORITIES] [] [carbon.super] [-1234] [[{"id":65,"priorityId":1,"generic":false,"active":false,"updated":false,"tenantId":0,"profileId":0},{"id":34,"priorityId":2,"generic":false,"active":false,"updated":false,"tenantId":0,"profileId":0}]] [admin] - Policy priorities updated
[2023-06-15 00:35:25,395]  INFO - [PUBLISH_CHANGES] [] [carbon.super] [-1234] [] [admin] - Apply changes to device
```
**3. Device enrollment history events** - logs for device enrollment and dis-enrollment

Pattern :
{DateTime} {LogLevel} - {DeviceId} {DeviceType} {Owner} {Ownership} {TenantId} {TenantDomain} {UserName} - log_message

```
[2023-06-15 00:12:09,078]  INFO - [97] [android] [admin] [BYOD] [-1234] [carbon.super] [admin] - Device enrolled successfully
[2023-06-15 00:47:36,278]  INFO - [97] [android] [admin] [BYOD] [-1234] [carbon.super] [admin] - Device disenrolled successfully
```

**4. App install events** - logs for app installation and uninstallation

Pattern :
{DateTime} {LogLevel} - {AppId} {AppName} {AppType} {SubType} {Action} {Device} {TenantId} {TenantDomain} {UserName} - log_message

```
[2023-06-15 00:15:12,550]  INFO - [1] [Calculator] [PUBLIC] [DEVICE] [install] [deviceId {id='675c60a9d31492d6', type='android'}] [-1234] [carbon.super] [admin] - App install triggered
[2023-06-15 00:46:24,454]  INFO - [2] [Sololearn] [ENTERPRISE] [DEVICE] [install] [deviceId {id='675c60a9d31492d6', type='android'}] [-1234] [carbon.super] [admin] - App install triggered
[2023-06-15 00:46:40,498]  INFO - [3] [Engineering] [WEB_CLIP] [DEVICE] [install] [deviceId {id='675c60a9d31492d6', type='android'}] [-1234] [carbon.super] [admin] - Web app install triggered
```

## Related PRs
* https://repository.entgra.net/proprietary/product-uem/pulls/6

Co-authored-by: prathabanKavin <kavinprathaban025@gmail.com>
Co-authored-by: Pahansith Gunathilake <pahansith@entgra.io>
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/136
Co-authored-by: Kavin Prathaban <kavin@entgra.io>
Co-committed-by: Kavin Prathaban <kavin@entgra.io>
2023-06-16 10:06:30 +00:00
ThilinaPremachandra
647d4fdb78 add rollback 2023-06-16 09:48:52 +05:30
ThilinaPremachandra
3722bfc761 add try with resources 2023-06-16 01:58:42 +05:30
ThilinaPremachandra
e66c3dc6f6 add error log 2023-06-15 14:29:10 +05:30
ThilinaPremachandra
00b107ee99 remove unnecessary variable, change error msg 2023-06-15 11:15:23 +05:30
ThilinaPremachandra
bc2bccac84 remove unnecessary code lines 2023-06-14 18:38:11 +05:30
ThilinaPremachandra
bb50717370 remove unnecessary imports, fixes line issues 2023-06-14 17:45:27 +05:30
ThilinaPremachandra
67c529b0fa fixes line issues 2023-06-14 17:16:38 +05:30
ThilinaPremachandra
145740fec6 Add hierarchical grouping feature 2023-06-14 16:14:20 +05:30
navodzoysa
331ba08f4d Fix class def not found in grafana component 2023-06-13 09:19:43 +05:30
ThilinaPremachandra
acd3039c65 pom.xml updated by pull 2023-06-09 18:34:52 +05:30
f277f77fa9 Merge pull request 'Fix search by user in device listing page' (#133) from osh.silva/device-mgt-core:search-10113 into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/133
2023-06-09 05:50:52 +00:00
8c7412a2f9 Merge branch 'master' into search-10113 2023-06-09 05:07:31 +00:00
743d5c09ec Merge pull request 'Implement DeleteDeviceLocation method for deleting location from a device' (#128) from Gimhan-minion/device-mgt-core:dev into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/128
2023-06-09 02:25:39 +00:00
Amalka Subasinghe
6f3e6e0fae Merge pull request 'Remove Application mgt API feature from device mgt core' (#134) from pramilaniroshan/device-mgt-core:app-mgt-restructure into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/134
2023-06-08 08:49:01 +00:00
656acbb34e Remove Application mgt API feature from device mgt core 2023-06-08 12:30:34 +05:30
Gimhan-minion
a6a9e82c35 Update debug and error logs 2023-06-07 10:43:32 +05:30
Gimhan-minion
b58b8c931b Implement DeleteDeviceLocation method for deleting location from a device 2023-06-07 10:43:32 +05:30
Lasantha Dharmakeerthi
cebc3bf5d4 Fix issue with delete geofences with MSSQL db 2023-06-02 05:59:40 +00:00
osh
891e7972c8 Merge branch 'master' of ssh://repository.entgra.net:222/community/device-mgt-core into search-10113 2023-06-01 23:37:13 +05:30
osh
96e3c3f0e0 Fix search by user
fixes https://roadmap.entgra.net/issues/10113
2023-06-01 23:37:01 +05:30
prathabanKavin
1fb777264d Check for logged in tenant id 2023-06-01 22:55:04 +05:30
Sanjana Rajapakshe
c06fd22ecd Add original app icons into single device app list and application restriction policy app list
Co-authored-by: Sanjana Rajapakshe <sanjana@entgra.io>
Co-committed-by: Sanjana Rajapakshe <sanjana@entgra.io>
2023-06-01 16:11:35 +00:00
Oshani Silva
2cf7cf8705 Add policy search functionality to API
Co-authored-by: Oshani Silva <oshani@entgra.io>
Co-committed-by: Oshani Silva <oshani@entgra.io>
2023-06-01 03:19:37 +00:00
prathabanKavin
bd5776947d Fix issue with delete geofences with mssql db 2023-05-31 21:45:31 +05:30
Lasantha Dharmakeerthi
d2f8d30cca Fix create geofence issue with MSSQL db 2023-05-31 07:30:44 +00:00
prathabanKavin
79d49a0512 used try with resources 2023-05-31 12:09:53 +05:30
Amalka Subasinghe
c150d419cc Merge pull request 'Make separate feature for apim rest api component' (#129) from pasindu/device-mgt-core:restApiFeature into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/129
2023-05-31 03:49:58 +00:00
pasindu
1d1d045b75 Update copyright 2023-05-31 08:05:56 +05:30
prathabanKavin
d49ab1c7f0 Fix create geofence issue with mssql db 2023-05-30 23:59:39 +05:30
pasindu
1404f573e2 Make separate feature for apim rest api component 2023-05-30 16:27:41 +05:30
Amalka Subasinghe
2d1d6488f1 Merge pull request 'Update copyright' (#126) from tcdlpds/device-mgt-core:master into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/126
2023-05-27 13:25:25 +00:00
Dharmakeerthi Lasantha
713759f3f7 Update copyright 2023-05-26 23:58:39 +05:30
Amalka Subasinghe
302f62a264 Merge pull request 'Implement API layer for publish API method' (#112) from pasindu/device-mgt-core:publisherAPILayer into master
Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/112
2023-05-26 02:43:34 +00:00
navodzoysa
dee3270174 Update admin credentials in webapp-auth-config template 2023-05-25 21:19:05 +05:30
pasindu
c5a7902386 Fix error message and minor fixes in loop and if condition 2023-05-25 16:50:43 +05:30
pasindu
014f95bd10 Rename API dto file and refactor 2023-05-25 14:04:24 +05:30
pasindu
b133f56965 Cleanup code base and fix getApiRevision method 2023-05-25 13:17:07 +05:30
pasindu
7246209bd8 Added licence header for newly added files 2023-05-25 12:55:25 +05:30
pasindu
a683bd7110 Fix API response 2023-05-25 12:49:14 +05:30
pasindu
cbb03d4d1f Minor fixes in api requests 2023-05-24 09:06:51 +05:30