This is an automated email from the ASF dual-hosted git repository. isjarana pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 80295113ea4a2405c0e6fdf008c005d2d038351f Merge: 075dd26c3 ceb3374fc Author: Isuru Ranawaka <[email protected]> AuthorDate: Mon Jul 31 13:17:09 2023 -0400 Merge pull request #394 from apache/staging Merge staging into Master README.md | 161 +- ansible/.gitignore | 2 + ansible/README.md | 215 ++ ansible/ansible.cfg | 3 + ansible/custos.yml | 55 + .../files/keycloak-client-truststore.pkcs12 | Bin 0 -> 1702 bytes .../inventories/develop/group_vars/all/vars.yml | 108 + .../inventories/develop/group_vars/all/vault.yml | 87 + .../inventories/develop/host_vars/custos/vars.yml | 24 + .../develop/host_vars/hashicorp/vars.yml | 24 + .../develop/host_vars/keycloak/vars.yml | 24 + ansible/inventories/develop/hosts.yml | 41 + .../files/keycloak-client-truststore.pkcs12 | Bin 0 -> 1702 bytes .../inventories/staging/group_vars/all/vars.yml | 108 + .../inventories/staging/group_vars/all/vault.yml | 88 + .../inventories/staging/host_vars/custos/vars.yml | 24 + .../staging/host_vars/hashicorp/vars.yml | 24 + .../staging/host_vars/keycloak/vars.yml | 24 + ansible/inventories/staging/hosts.yml | 41 + ansible/requirements.txt | 18 + ansible/roles/consul/handlers/main.yml | 25 + ansible/roles/consul/tasks/main.yml | 80 + ansible/roles/consul/templates/consul.config.j2 | 14 + ansible/roles/consul/templates/consul.service.j2 | 10 + ansible/roles/custos/files/start_envoy_proxy.sh | 4 + ansible/roles/custos/handlers/main.yml | 21 + ansible/roles/custos/tasks/main.yml | 122 + ansible/roles/custos/tasks/start_custos.yml | 49 + .../roles/custos/templates/corecustos.service.j2 | 13 + .../custos-core-services/application.properties.j2 | 42 + .../templates/custos-core-services/config.yml.j2 | 0 .../application.properties.j2 | 14 + .../custos-integration-services/config.yml.j2 | 0 .../custos_user_schema_extention.json | 0 .../roles/custos/templates/intcustos.service.j2 | 13 + ansible/roles/database/tasks/import_db.yml | 31 + ansible/roles/database/tasks/main.yml | 49 + ansible/roles/database/tasks/secure_install.yml | 58 + ansible/roles/database/templates/my.cnf.j2 | 4 + ansible/roles/env_setup/tasks/main.yml | 207 ++ ansible/roles/env_setup/templates/maven.sh | 1 + ansible/roles/kafka/defaults/main.yml | 43 + ansible/roles/kafka/handlers/main.yml | 45 + ansible/roles/kafka/tasks/main.yml | 139 ++ .../kafka/templates/kafka-rest-proxy.service.j2 | 14 + .../roles/kafka/templates/kafka-rest.properties.j2 | 25 + ansible/roles/kafka/templates/kafka.service.j2 | 14 + ansible/roles/kafka/templates/server.properties.j2 | 201 ++ ansible/roles/keycloak/README.md | 12 + ansible/roles/keycloak/defaults/main.yml | 45 + ansible/roles/keycloak/handlers/main.yml | 26 + ansible/roles/keycloak/tasks/main.yml | 173 ++ ansible/roles/keycloak/tasks/restore_db.yml | 34 + ansible/roles/keycloak/tasks/setup_postgres.yml | 84 + .../roles/keycloak/templates/basic-vhost.conf.j2 | 9 + .../keycloak/templates/keycloak-standalone-init.j2 | 45 + ansible/roles/keycloak/templates/keycloak.conf.j2 | 43 + .../roles/keycloak/templates/keycloak.service.j2 | 14 + ansible/roles/keycloak/templates/module.j2 | 12 + ansible/roles/keycloak/templates/module.xml.j2 | 12 + ansible/roles/keycloak/templates/pg_hba.conf.j2 | 103 + ansible/roles/keycloak/templates/standalone.xml.j2 | 645 +++++ ansible/roles/keycloak/templates/vhost.conf.j2 | 52 + ansible/roles/migrate_db/tasks/main.yml | 41 + ansible/roles/nginx/handlers/main.yml | 25 + ansible/roles/nginx/tasks/main.yml | 135 ++ ansible/roles/nginx/templates/custos/index.html.j2 | 8 + ansible/roles/nginx/templates/custos/nginx.conf.j2 | 85 + ansible/roles/nginx/templates/custos/site.conf.j2 | 63 + .../roles/nginx/templates/hashicorp/index.html.j2 | 8 + .../roles/nginx/templates/hashicorp/nginx.conf.j2 | 85 + .../roles/nginx/templates/hashicorp/site.conf.j2 | 38 + .../roles/nginx/templates/keycloak/index.html.j2 | 8 + .../roles/nginx/templates/keycloak/nginx.conf.j2 | 85 + .../roles/nginx/templates/keycloak/site.conf.j2 | 37 + ansible/roles/pkcs12/tasks/main.yml | 46 + ansible/roles/vault/tasks/main.yml | 54 + ansible/roles/vault/templates/vault.hcl.j2 | 49 + ansible/roles/zookeeper/handlers/main.yml | 32 + ansible/roles/zookeeper/tasks/main.yml | 63 + ansible/roles/zookeeper/templates/java.env.j2 | 1 + ansible/roles/zookeeper/templates/zoo.cfg.j2 | 28 + .../roles/zookeeper/templates/zookeeper.service.j2 | 16 + ansible/roles/zookeeper/vars/main.yml | 37 + ansible/vault_pass | 1 + .../agent-management-client/pom.xml | 64 +- .../management/client/AgentManagementClient.java | 8 + .../custos-clients-core/pom.xml | 31 +- .../apache/custos/clients/core/AbstractClient.java | 32 +- .../group-management-client/pom.xml | 59 +- .../management/client/GroupManagementClient.java | 8 + .../identity-management-client/pom.xml | 61 +- .../client/IdentityManagementClient.java | 9 +- custos-client-sdks/custos-java-clients/pom.xml | 2 +- .../resource-secret-management-client/pom.xml | 68 +- .../client/ResourceSecretManagementClient.java | 1 + .../sharing-management-client/pom.xml | 58 +- .../management/client/SharingManagementClient.java | 9 + .../tenant-management-client/pom.xml | 61 +- .../client/SuperAdminOperationsClient.java | 19 +- .../manamgement/client/TenantManagementClient.java | 21 + .../user-management-client/pom.xml | 64 +- .../management/client/UserManagementClient.java | 133 +- custos-client-sdks/custos-java-sdk/pom.xml | 2 +- .../custos/clients/CustosClientProvider.java | 22 +- .../clients/resource_secret_management_client.py | 119 +- .../clients/utils/exceptions/CustosExceptions.py | 20 + .../custos/clients/utils/exceptions}/__init__.py | 0 .../custos/samples/resource_secert_management.py | 2 + .../clients/resource_secret_management_client.py | 119 +- .../clients/utils/exceptions/CustosExceptions.py | 20 + .../custos/clients/utils/exceptions}/__init__.py | 0 .../custos/samples/resource_secert_management.py | 2 + .../custos-python-sdk/custos_sdk.egg-info/PKG-INFO | 158 +- .../custos_sdk.egg-info/SOURCES.txt | 2 + custos-client-sdks/custos-python-sdk/setup.py | 12 +- custos-client-sdks/custos-samples/__init__.py | 17 + .../custos-samples}/configs/settings.ini | 0 .../custos-samples}/samples/__init__.py | 0 .../samples/group_management_samples.py | 0 .../samples/identity_management_samples.py | 0 .../samples/secret_management_samples.py | 0 .../secure_resources_with_custos_simulation.py | 0 .../samples/sharing_management_samples.py | 0 .../samples/user_management_samples.py | 0 .../custos_jupyterhub_authenticator/.gitignore | 3 + .../custos_jupyterhub_authenticator/LICENSE | 201 ++ .../custos_jupyterhub_authenticator/MANIFEST.in | 1 + .../custos_jupyterhub_authenticator/README.md | 46 + .../custos_jupyterhub_authenticator}/__init__.py | 0 .../build/lib/custosauthenticator/__init__.py | 15 + .../build/lib/custosauthenticator/custos.py | 196 ++ .../PKG-INFO | 59 + .../SOURCES.txt | 13 + .../dependency_links.txt | 1 + .../requires.txt | 1 + .../top_level.txt | 1 + .../custosauthenticator/__init__.py | 15 + .../custosauthenticator/custos.py | 199 ++ .../requirements.txt | 3 + .../custos_jupyterhub_authenticator/setup.cfg | 0 .../custos_jupyterhub_authenticator/setup.py | 30 + custos-client-sdks/pom.xml | 2 +- .../agent-profile-core-service-client-stub/pom.xml | 91 - .../agent/profile/client/AgentProfileClient.java | 100 - .../pom.xml | 91 - .../management/client/ClusterManagementClient.java | 57 - .../pom.xml | 90 - .../store/client/CredentialStoreServiceClient.java | 203 -- .../custos-logging-client-stub/pom.xml | 90 - .../custos/logging/client/LoggingClient.java | 105 - .../pom.xml | 92 - .../client/FederatedAuthenticationClient.java | 142 -- .../iam-admin-core-service-client-stub/pom.xml | 93 - .../iam/admin/client/IamAdminServiceClient.java | 388 --- .../identity-core-service-client-stub/pom.xml | 90 - .../custos/identity/client/IdentityClient.java | 151 -- .../messaging-core-service-client-stub/pom.xml | 103 - .../custos/messaging/client/MessagingClient.java | 96 - custos-core-services-client-stubs/pom.xml | 61 - .../pom.xml | 90 - .../secret/client/ResourceSecretClient.java | 131 -- .../sharing-core-service-client-stub/pom.xml | 92 - .../custos/sharing/client/SharingClient.java | 200 -- .../pom.xml | 95 - .../profile/client/async/TenantProfileClient.java | 185 -- .../user-profile-core-service-client-stub/pom.xml | 92 - .../user/profile/client/UserProfileClient.java | 240 -- .../agent-profile-core-service/Dockerfile | 5 - .../agent-profile-core-service/pom.xml | 129 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/deployment.yaml | 66 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../src/main/helm/values.yaml | 78 - .../profile/AgentProfileServiceInitializer.java | 63 - .../agent/profile/persistance/model/Agent.java | 131 -- .../profile/persistance/model/AgentAttribute.java | 74 - .../agent/profile/persistance/model/AgentRole.java | 74 - .../agent/profile/validator/InputValidator.java | 72 - .../src/main/resources/application.properties | 41 - .../cluster-management-core-service/Dockerfile | 5 - .../cluster-management-core-service/pom.xml | 130 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 66 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/role-bindings.yaml | 11 - .../src/main/helm/templates/role.yaml | 22 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 82 - .../ClusterManagementServiceInitializer.java | 68 - .../service/ClusterManagementService.java | 95 - .../management/validator/InputValidator.java | 61 - .../src/main/resources/application.properties | 41 - .../credential-store-core-service/Dockerfile | 6 - .../credential-store-core-service/pom.xml | 118 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../store/CredentialStoreServiceInitializer.java | 81 - .../persistance/model/AgentCredentialEntity.java | 116 - .../store/persistance/model/CredentialEntity.java | 105 - .../store/service/CredentialStoreService.java | 1145 --------- .../credential/store/validator/InputValidator.java | 189 -- .../src/main/resources/application.properties | 41 - .../src/main/resources/bootstrap.properties | 26 - .../main/resources/vault-client-truststore.pkcs12 | Bin 1626 -> 0 bytes .../custos-core-services-commons/pom.xml | 84 - .../core/services/commons/ServiceInterceptor.java | 82 - .../core/services/commons/StatusUpdater.java | 61 - .../custos/core/services/commons/Validator.java | 25 - .../exceptions/MissingParameterException.java | 30 - .../commons/persistance/model/OperationStatus.java | 26 - .../commons/persistance/model/StatusEntity.java | 108 - .../repository/StatusUpdaterRepository.java | 32 - .../core/services/commons/util/Constants.java | 32 - .../services/commons/util/MethodNameExtractor.java | 9 - custos-core-services/custos-logging/Dockerfile | 5 - custos-core-services/custos-logging/pom.xml | 127 - .../custos-logging/src/main/helm/.helmignore | 22 - .../custos-logging/src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../custos-logging/src/main/helm/values.yaml | 78 - .../custos/logging/LoggingServiceInitializer.java | 71 - .../custos/logging/persistance/model/LogEvent.java | 123 - .../persistance/model/LoggingEnabledStatus.java | 57 - .../persistance/repository/LogEventRepoImpl.java | 144 -- .../src/main/java/validator/InputValidator.java | 125 - .../src/main/resources/application.properties | 42 - .../src/main/resources/bootstrap.properties | 21 - .../custos-messaging-core-service/Dockerfile | 5 - .../custos-messaging-core-service/pom.xml | 157 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../messaging/MessagingServiceInitializer.java | 51 - .../events/model/MessageDeserializer.java | 57 - .../messaging/events/model/MessageSerializer.java | 57 - .../persistance/model/EmailBodyParams.java | 70 - .../persistance/model/EmailReceivers.java | 77 - .../messaging/persistance/model/EmailTemplate.java | 155 -- .../persistance/model/MessagingMetadata.java | 105 - .../custos/messaging/service/EmailService.java | 283 --- .../custos/messaging/service/MessagingService.java | 89 - .../src/main/resources/application.properties | 41 - .../src/main/resources/bootstrap.properties | 21 - .../Dockerfile | 5 - .../federated-authentication-core-service/pom.xml | 155 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../FederatedAuthenticationServiceInitializer.java | 71 - .../persistance/model/CILogonInstitution.java | 117 - .../service/FederatedAuthenticationService.java | 458 ---- .../authentication/validator/InputValidator.java | 204 -- .../src/main/resources/application.properties | 42 - .../src/main/resources/bootstrap.properties | 21 - .../iam-admin-core-service/Dockerfile | 6 - .../iam-admin-core-service/pom.xml | 129 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../apache/custos/iam/IamServiceInitializer.java | 73 - .../apache/custos/iam/service/IamAdminService.java | 2413 ------------------- .../custos/iam/validator/InputValidator.java | 936 -------- .../src/main/proto/IamAdminService.proto | 482 ---- .../src/main/resources/application.properties | 42 - .../src/main/resources/bootstrap.properties | 21 - .../resources/keycloak-client-truststore.pkcs12 | Bin 1626 -> 0 bytes .../identity-core-service/Dockerfile | 6 - custos-core-services/identity-core-service/pom.xml | 136 -- .../src/main/helm/.helmignore | 22 - .../identity-core-service/src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../identity/IdentityServiceInitializer.java | 71 - .../custos/identity/service/IdentityService.java | 454 ---- .../custos/identity/validator/InputValidator.java | 340 --- .../src/main/resources/application.properties | 42 - .../src/main/resources/bootstrap.properties | 21 - .../resources/keycloak-client-truststore.pkcs12 | Bin 1626 -> 0 bytes custos-core-services/pom.xml | 55 - .../resource-secret-core-service/Dockerfile | 6 - .../resource-secret-core-service/pom.xml | 136 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 79 - .../secret/ResourceSecretServiceInitializer.java | 57 - .../secret/persistance/local/model/Secret.java | 149 -- .../secret/service/ResourceSecretService.java | 559 ----- .../resource/secret/validator/InputValidator.java | 162 -- .../src/main/resources/application.properties | 41 - .../src/main/resources/bootstrap.properties | 28 - .../main/resources/vault-client-truststore.pkcs12 | Bin 1626 -> 0 bytes .../sharing-core-service/Dockerfile | 5 - custos-core-services/sharing-core-service/pom.xml | 128 - .../sharing-core-service/src/main/helm/.helmignore | 22 - .../sharing-core-service/src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../sharing-core-service/src/main/helm/values.yaml | 79 - .../custos/sharing/SharingServiceInitializer.java | 70 - .../apache/custos/sharing/mapper/EntityMapper.java | 121 - .../custos/sharing/mapper/EntityTypeMapper.java | 68 - .../sharing/mapper/PermissionTypeMapper.java | 66 - .../custos/sharing/mapper/SharingMapper.java | 153 -- .../custos/sharing/persistance/model/Entity.java | 224 -- .../sharing/persistance/model/EntityType.java | 129 - .../sharing/persistance/model/PermissionType.java | 128 - .../custos/sharing/persistance/model/Sharing.java | 168 -- .../persistance/repository/EntityRepository.java | 37 - .../repository/EntityTypeRepository.java | 31 - .../repository/PermissionTypeRepository.java | 33 - .../repository/SearchEntityRepository.java | 31 - .../repository/SearchEntityRepositoryImpl.java | 160 -- .../persistance/repository/SharingRepository.java | 95 - .../custos/sharing/service/SharingService.java | 1573 ------------- .../org/apache/custos/sharing/utils/Constants.java | 33 - .../custos/sharing/validator/InputValidator.java | 360 --- .../src/main/resources/application.properties | 41 - .../tenant-profile-core-service/Dockerfile | 5 - .../tenant-profile-core-service/pom.xml | 130 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 79 - .../profile/TenantProfileServiceInitializer.java | 63 - .../mapper/AttributeUpdateMetadataMapper.java | 198 -- .../profile/mapper/StatusUpdateMetadataMapper.java | 71 - .../custos/tenant/profile/mapper/TenantMapper.java | 206 -- .../persistance/model/AttributeUpdateMetadata.java | 103 - .../tenant/profile/persistance/model/Contact.java | 70 - .../profile/persistance/model/RedirectURI.java | 71 - .../persistance/model/StatusUpdateMetadata.java | 92 - .../tenant/profile/persistance/model/Tenant.java | 344 --- .../AttributeUpdateMetadataRepository.java | 30 - .../respository/SearchTenantRepositoryImpl.java | 103 - .../StatusUpdateMetadataRepository.java | 31 - .../profile/service/TenantProfileService.java | 422 ---- .../tenant/profile/validator/InputValidator.java | 259 -- .../src/main/resources/application.properties | 41 - .../user-profile-core-service/Dockerfile | 5 - .../user-profile-core-service/pom.xml | 129 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 65 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 20 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 79 - .../profile/UserProfileServiceInitializer.java | 71 - .../persistance/model/AttributeUpdateMetadata.java | 106 - .../user/profile/persistance/model/Group.java | 190 -- .../profile/persistance/model/GroupAttribute.java | 77 - .../user/profile/persistance/model/GroupRole.java | 77 - .../persistance/model/GroupToGroupMembership.java | 109 - .../persistance/model/StatusUpdateMetadata.java | 95 - .../profile/persistance/model/UserAttribute.java | 74 - .../persistance/model/UserGroupMembership.java | 121 - .../persistance/model/UserGroupMembershipType.java | 89 - .../profile/persistance/model/UserProfile.java | 212 -- .../user/profile/persistance/model/UserRole.java | 74 - .../repository/SearchGroupsRepository.java | 29 - .../repository/SearchGroupsRepositoryImpl.java | 113 - .../persistance/repository/UserRepository.java | 32 - .../user/profile/service/UserProfileService.java | 1482 ------------ .../user/profile/validators/InputValidator.java | 385 --- .../src/main/resources/application.properties | 41 - .../custos-configuration-service/Dockerfile | 5 - .../custos-configuration-service/pom.xml | 88 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 62 - .../src/main/helm/templates/ingress.yaml | 41 - .../src/main/helm/templates/service.yaml | 16 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 78 - .../services/configuration/ConfigServer.java | 13 - .../agentManagementService-staging.properties | 40 - .../resources/agentManagementService.properties | 42 - .../src/main/resources/application.properties | 4 - ...clusterManagementCoreService-staging.properties | 20 - .../clusterManagementCoreService.properties | 20 - .../federatedAuthenticatedCoreService.properties | 22 - ...tedAuthenticationCoreService-staging.properties | 3 - .../groupManagementService-staging.properties | 38 - .../resources/groupManagementService.properties | 38 - .../iamAdminCoreService-staging.properties | 25 - .../main/resources/iamAdminCoreService.properties | 44 - .../identityCoreService-staging.properties | 46 - .../main/resources/identityCoreService.properties | 46 - .../identityManagementService-staging.properties | 38 - .../resources/identityManagementService.properties | 38 - .../logManagementService-staging.properties | 40 - .../main/resources/logManagementService.properties | 40 - .../messagingCoreService-staging.properties | 30 - .../main/resources/messagingCoreService.properties | 30 - ...ourceSecretManagementService-staging.properties | 40 - .../resourceSecretManagementService.properties | 40 - .../main/resources/scimService-staging.properties | 38 - .../src/main/resources/scimService.properties | 38 - .../sharingManagementService-staging.properties | 42 - .../resources/sharingManagementService.properties | 42 - .../tenantManagementService-staging.properties | 22 - .../resources/tenantManagementService.properties | 43 - .../userManagementService-staging.properties | 38 - .../resources/userManagementService.properties | 38 - custos-core/pom.xml | 43 + custos-core/sharing-core-impl/pom.xml | 48 + .../org/apache/custos/sharing/core/SharingAPI.java | 287 +++ .../core/exceptions/CustosSharingException.java | 35 + .../custos/sharing/core/impl/SharingImpl.java | 1168 +++++++++ .../custos/sharing/core/mapper/EntityMapper.java | 121 + .../sharing/core/mapper/EntityTypeMapper.java | 69 + .../sharing/core/mapper/PermissionTypeMapper.java | 66 + .../custos/sharing/core/mapper/SharingMapper.java | 150 ++ .../sharing/core/persistance/model/Entity.java | 238 ++ .../sharing/core/persistance/model/EntityType.java | 143 ++ .../core/persistance/model/PermissionType.java | 142 ++ .../sharing/core/persistance/model/Sharing.java | 182 ++ .../persistance/repository/EntityRepository.java | 34 + .../repository/EntityTypeRepository.java | 31 + .../repository/PermissionTypeRepository.java | 34 + .../repository/SearchEntityRepository.java | 34 + .../repository/SearchEntityRepositoryImpl.java | 183 ++ .../persistance/repository/SharingRepository.java | 95 + .../custos/sharing/core/utils/Constants.java | 33 + .../src/main/proto/SharingModel.proto | 117 + .../custos-grpc-web-proxy/pom.xml | 60 - .../src/main/helm/.helmignore | 22 - .../custos-grpc-web-proxy/src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 61 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 89 - .../src/main/resources/envoy.yaml | 113 - .../custos-keycloak/Dockerfile | 4 - .../custos-keycloak/pom.xml | 32 - .../htrc/email/messages/messages_en.properties | 55 - .../themes/htrc/login/login-idp-link-email.ftl | 45 - .../src/main/resources/themes/htrc/login/login.ftl | 67 - .../themes/htrc/login/resources/css/styles.css | 157 -- custos-external-services-distributions/pom.xml | 20 - custos-federated-services-clients/pom.xml | 102 - .../services/clients/keycloak/KeycloakClient.java | 2083 ---------------- .../services/clients/keycloak/KeycloakUtils.java | 210 -- .../clients/keycloak/auth/KeycloakAuthClient.java | 567 ----- custos-grpc-data-models/proto/SharingModel.proto | 117 + custos-grpc-data-models/proto/SharingService.proto | 165 ++ custos-integration-core/pom.xml | 77 - .../core/interceptor/ServiceInterceptor.java | 100 - .../agent-management-service-sidecar/Dockerfile | 3 - .../agent-management-service-sidecar/pom.xml | 52 - .../src/main/resources/agent-management-service.pb | Bin 119693 -> 0 bytes .../src/main/resources/envoy.yaml | 48 - .../agent-management-service/Dockerfile | 5 - .../agent-management-service/pom.xml | 150 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 88 - .../AgentManagementServiceInitializer.java | 90 - .../interceptors/ClientAuthInterceptorImpl.java | 52 - .../management/interceptors/InputValidator.java | 66 - ...rTenantRestrictedOperationsInterceptorImpl.java | 70 - .../interceptors/UserAuthInterceptorImpl.java | 198 -- .../src/main/resources/application.properties | 28 - .../agent-management-service-parent/pom.xml | 39 - .../custos-integration-services-commons/pom.xml | 107 - .../commons/interceptors/AuthInterceptor.java | 597 ----- .../commons/interceptors/LoggingInterceptor.java | 98 - .../services/commons/model/AuthClaim.java | 205 -- .../custos-integration-services-swagger/Dockerfile | 5 - .../custos-integration-services-swagger/pom.xml | 101 - .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 61 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 25 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 82 - .../resources/protos/CredentialStoreService.proto | 143 -- .../main/resources/protos/IamAdminService.proto | 482 ---- .../protos/IdentityManagementService.proto | 160 -- .../src/main/resources/protos/SharingService.proto | 222 -- .../resources/protos/UserManagementService.proto | 264 --- .../main/resources/protos/UserProfileService.proto | 213 -- .../group-management-service-sidecar/Dockerfile | 3 - .../group-management-service-sidecar/pom.xml | 52 - .../src/main/resources/envoy.yaml | 48 - .../src/main/resources/group-management-service.pb | Bin 122235 -> 0 bytes .../group-management-service/Dockerfile | 5 - .../group-management-service/pom.xml | 146 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 24 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 87 - .../GroupManagementServiceInitializer.java | 81 - .../interceptors/ClientAuthInterceptorImpl.java | 193 -- .../management/interceptors/InputValidator.java | 89 - .../management/service/GroupManagementService.java | 887 ------- .../src/main/resources/application.properties | 29 - .../group-management-service-parent/pom.xml | 39 - .../identity-management-service-sidecar/Dockerfile | 3 - .../identity-management-service-sidecar/pom.xml | 51 - .../src/main/resources/envoy.yaml | 48 - .../main/resources/identity-management-service.pb | Bin 99726 -> 0 bytes .../identity-management-service/Dockerfile | 5 - .../identity-management-service/pom.xml | 148 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 88 - .../IdentityManagementServiceInitializer.java | 86 - .../interceptors/AgentAuthInterceptor.java | 90 - .../interceptors/AuthInterceptorImpl.java | 175 -- .../management/interceptors/InputValidator.java | 137 -- .../service/IdentityManagementService.java | 393 ---- .../src/main/proto/IdentityManagementService.proto | 160 -- .../src/main/resources/application.properties | 28 - .../src/main/resources/bootstrap.properties | 22 - .../identity-management-service-parent/pom.xml | 39 - .../log-management-service-sidecar/Dockerfile | 3 - .../log-management-service-sidecar/pom.xml | 51 - .../src/main/resources/envoy.yaml | 47 - .../src/main/resources/log-management-service.pb | Bin 77338 -> 0 bytes .../log-management-service/Dockerfile | 5 - .../log-management-service/pom.xml | 175 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 94 - .../LogManagementServiceInitializer.java | 81 - .../interceptors/AuthInterceptorImpl.java | 126 - .../management/interceptors/InputValidator.java | 66 - .../src/main/resources/application.properties | 28 - .../src/main/resources/bootstrap.properties | 22 - .../log-management-service-parent/pom.xml | 39 - custos-integration-services/pom.xml | 49 - .../pom.xml | 39 - .../Dockerfile | 3 - .../pom.xml | 51 - .../src/main/resources/envoy.yaml | 47 - .../resource-secret-management-service.pb | Bin 102155 -> 0 bytes .../resource-secret-management-service/Dockerfile | 5 - .../resource-secret-management-service/pom.xml | 165 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 93 - .../ResourceSecretManagementInitializer.java | 83 - .../interceptors/AuthInterceptorImpl.java | 205 -- .../management/interceptors/InputValidator.java | 118 - .../src/main/resources/application.properties | 28 - .../src/main/resources/bootstrap.properties | 22 - .../scim-service/Dockerfile | 6 - custos-integration-services/scim-service/pom.xml | 154 -- .../scim-service/src/main/helm/.helmignore | 22 - .../scim-service/src/main/helm/Chart.yaml | 5 - .../scim-service/src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 63 - .../src/main/helm/templates/ingress.yaml | 22 - .../src/main/helm/templates/service.yaml | 25 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../scim-service/src/main/helm/values.yaml | 83 - .../apache/custos/scim/SCIMServiceInitializer.java | 32 - .../apache/custos/scim/resource/GroupResource.java | 321 --- .../apache/custos/scim/resource/UserResource.java | 292 --- .../scim/resource/manager/ResourceManager.java | 812 ------- .../org/apache/custos/scim/utils/AuthHandler.java | 71 - .../custos/scim/utils/NotAuthorizedException.java | 27 - .../src/main/resources/application.properties | 29 - .../src/main/resources/bootstrap.properties | 22 - .../sharing-management-service-parent/pom.xml | 39 - .../sharing-management-service-sidecar/Dockerfile | 3 - .../sharing-management-service-sidecar/pom.xml | 52 - .../src/main/resources/envoy.yaml | 48 - .../main/resources/sharing-management-service.pb | Bin 88207 -> 0 bytes .../sharing-management-service/Dockerfile | 5 - .../sharing-management-service/pom.xml | 155 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 87 - .../SharingManagementServiceInitializer.java | 83 - .../interceptors/AuthInterceptorImpl.java | 145 -- .../management/interceptors/InputValidator.java | 111 - .../service/SharingManagementService.java | 800 ------- .../src/main/proto/SharingManagementService.proto | 206 -- .../src/main/resources/application.properties | 28 - .../src/main/resources/bootstrap.properties | 22 - .../tenant-management-service-parent/pom.xml | 38 - .../tenant-management-service-sidecar/Dockerfile | 3 - .../tenant-management-service-sidecar/pom.xml | 51 - .../src/main/resources/envoy.yaml | 48 - .../src/main/resources/generator_file | 3 - .../main/resources/tenant-management-service.pb | Bin 162298 -> 0 bytes .../tenant-management-service/Dockerfile | 5 - .../tenant-management-service/pom.xml | 174 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 33 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 87 - .../TenantManagementServiceInitializer.java | 89 - .../interceptors/AuthInterceptorImpl.java | 435 ---- .../interceptors/DynamicRegistrationValidator.java | 168 -- .../management/interceptors/InputValidator.java | 227 -- ...rTenantRestrictedOperationsInterceptorImpl.java | 117 - .../service/TenantManagementService.java | 958 -------- .../management/tasks/TenantActivationTask.java | 289 --- .../src/main/resources/application.properties | 28 - .../src/main/resources/bootstrap.properties | 22 - .../user-management-service-parent/pom.xml | 39 - .../user-management-service-sidecar/Dockerfile | 3 - .../user-management-service-sidecar/pom.xml | 51 - .../src/main/resources/envoy.yaml | 48 - .../src/main/resources/generators | 3 - .../src/main/resources/user-management-service.pb | Bin 126088 -> 0 bytes .../user-management-service/Dockerfile | 5 - .../user-management-service/pom.xml | 145 -- .../src/main/helm/.helmignore | 22 - .../src/main/helm/Chart.yaml | 5 - .../src/main/helm/templates/NOTES.txt | 21 - .../src/main/helm/templates/_helpers.tpl | 56 - .../src/main/helm/templates/deployment.yaml | 79 - .../src/main/helm/templates/ingress-grpc.yaml | 22 - .../src/main/helm/templates/ingress.yaml | 21 - .../src/main/helm/templates/service.yaml | 24 - .../src/main/helm/templates/serviceaccount.yaml | 8 - .../main/helm/templates/tests/test-connection.yaml | 15 - .../src/main/helm/values.yaml | 87 - .../UserManagementServiceInitializer.java | 86 - .../interceptors/AuthInterceptorImpl.java | 487 ---- .../management/interceptors/InputValidator.java | 93 - ...rTenantRestrictedOperationsInterceptorImpl.java | 70 - .../management/service/UserManagementService.java | 1382 ----------- .../src/main/proto/UserManagementService.proto | 264 --- .../src/main/resources/application.properties | 29 - .../src/main/resources/bootstrap.properties | 22 - custos-rest-proxy/Dockerfile | 3 + custos-rest-proxy/pom.xml | 86 + custos-rest-proxy/src/main/resources/README.MD | 23 + custos-rest-proxy/src/main/resources/custos.pb | Bin 0 -> 287662 bytes custos-rest-proxy/src/main/resources/envoy.yaml | 58 + custos-rest-proxy/src/main/resources/generator.txt | 1 + .../agent-profile-core-service-client-stub/pom.xml | 98 + .../agent/profile/client/AgentProfileClient.java | 100 + .../pom.xml | 104 + .../management/client/ClusterManagementClient.java | 57 + .../pom.xml | 97 + .../store/client/CredentialStoreServiceClient.java | 203 ++ .../custos-logging-client-stub/pom.xml | 117 + .../custos/logging/client/LoggingClient.java | 105 + .../pom.xml | 105 + .../client/FederatedAuthenticationClient.java | 142 ++ .../iam-admin-core-service-client-stub/pom.xml | 100 + .../iam/admin/client/IamAdminServiceClient.java | 396 ++++ .../identity-core-service-client-stub/pom.xml | 96 + .../custos/identity/client/IdentityClient.java | 151 ++ .../messaging-core-service-client-stub/pom.xml | 104 + .../custos/messaging/client/MessagingClient.java | 96 + .../custos-core-services-client-stubs/pom.xml | 62 + .../pom.xml | 97 + .../secret/client/ResourceSecretClient.java | 131 ++ .../sharing-core-service-client-stub/pom.xml | 104 + .../custos/sharing/client/SharingClient.java | 201 ++ .../pom.xml | 102 + .../profile/client/async/TenantProfileClient.java | 185 ++ .../user-profile-core-service-client-stub/pom.xml | 95 + .../user/profile/client/UserProfileClient.java | 240 ++ .../custos-core-services-server/Dockerfile | 6 + .../custos-core-services-server/pom.xml | 270 +++ .../src/main/dist/bin/custos-daemon.sh | 113 + .../src/main/dist/bin/custos.sh | 71 + .../src/main/dist/bin/setenv.sh | 46 + .../src/main/dist/conf/application.properties | 90 + .../src/main/dist/conf/bootstrap.properties | 26 + .../dist/conf/keycloak-client-truststore.pkcs12 | Bin 0 -> 5709 bytes .../src/main/dist/conf/log4j2.xml | 49 + .../main/dist/conf/vault-client-truststore.pkcs12 | Bin 0 -> 5709 bytes .../dist/custos-core-services-server-assembly.xml | 84 + .../core/services/api/CoreServicesServer.java | 118 + .../src/main/resources/application.properties | 70 + .../src/main/resources/bootstrap.properties | 27 + .../src/main/resources/certificate.p12 | Bin 0 -> 2501 bytes .../src/main/resources/certificate_mul.p12 | Bin 0 -> 2621 bytes .../resources/keycloak-client-truststore.pkcs12 | Bin 0 -> 5709 bytes .../src/main/resources/log4j2.xml | 27 + .../main/resources/vault-client-truststore.pkcs12 | Bin 0 -> 5709 bytes .../agent-profile-core-service/pom.xml | 154 ++ .../custos/agent/profile/mapper/AgentMapper.java | 0 .../agent/profile/persistance/model/Agent.java | 131 ++ .../profile/persistance/model/AgentAttribute.java | 75 + .../agent/profile/persistance/model/AgentRole.java | 75 + .../repository/AgentAttributeRepository.java | 0 .../persistance/repository/AgentRepository.java | 0 .../repository/AgentRoleRepository.java | 0 .../agent/profile/service/AgentProfileService.java | 0 .../custos/agent/profile/utils/Constants.java | 0 .../profile/validator/AgentInputValidator.java | 74 + .../src/main/proto/AgentProfileService.proto | 0 .../cluster-management-core-service/pom.xml | 157 ++ .../service/ClusterManagementService.java | 105 + .../util/ClusterManagementOperations.java | 0 .../validator/ClusterManagementInputValidator.java | 59 + .../src/main/proto/ClusterManagementService.proto | 0 .../credential-store-core-service/pom.xml | 187 ++ .../store/credential/CredentialManager.java | 0 .../exceptions/CredentialGenerationException.java | 0 .../CredentialsAuthenticationException.java | 0 .../exceptions/MissingParameterException.java | 0 .../custos/credential/store/model/Credential.java | 0 .../credential/store/model/CredentialTypes.java | 0 .../persistance/model/AgentCredentialEntity.java | 116 + .../store/persistance/model/CredentialEntity.java | 105 + .../repository/AgentCredentialRepository.java | 0 .../repository/CredentialRepository.java | 0 .../store/service/CredentialStoreService.java | 1148 +++++++++ .../custos/credential/store/utils/Operations.java | 0 .../validator/CredentialStoreInputValidator.java | 178 ++ .../src/main/proto/CredentialStoreService.proto | 144 ++ .../custos-core-services-commons/pom.xml | 111 + .../services/api/commons/ServiceInterceptor.java | 96 + .../core/services/api/commons/StatusUpdater.java | 60 + .../core/services/api/commons/Validator.java | 25 + .../exceptions/MissingParameterException.java | 30 + .../commons/persistance/model/OperationStatus.java | 26 + .../commons/persistance/model/StatusEntity.java | 108 + .../repository/StatusUpdaterRepository.java | 32 + .../core/services/api/commons/util/Constants.java | 32 + .../api/commons/util/MethodNameExtractor.java | 28 + .../custos-core-services/custos-logging/pom.xml | 150 ++ .../custos/logging/mapper/LogEventMapper.java | 0 .../custos/logging/persistance/model/LogEvent.java | 123 + .../persistance/model/LoggingEnabledStatus.java | 57 + .../persistance/repository/LogEventRepo.java | 0 .../persistance/repository/LogEventRepoImpl.java | 144 ++ .../persistance/repository/LogEventRepository.java | 0 .../repository/LoggingEnabledStatusRepository.java | 0 .../custos/logging/service/LoggingService.java | 0 .../validator/CustosLoggingInputValidator.java | 119 + .../src/main/proto/LoggingService.proto | 0 .../custos-messaging-core-service/pom.xml | 172 ++ .../messaging/MessagingServiceInitializer.java | 51 + .../custos/messaging/events/email/EmailSender.java | 0 .../events/model/MessageDeserializer.java | 58 + .../messaging/events/model/MessageSerializer.java | 57 + .../events/publisher/MessageProducer.java | 0 .../custos/messaging/mapper/EmailMapper.java | 0 .../custos/messaging/mapper/MessagingMapper.java | 0 .../persistance/model/EmailBodyParams.java | 70 + .../persistance/model/EmailReceivers.java | 77 + .../messaging/persistance/model/EmailTemplate.java | 155 ++ .../persistance/model/MessagingMetadata.java | 105 + .../repository/EmailBodyParamsRepository.java | 0 .../repository/EmailReceiversRepository.java | 0 .../repository/EmailTemplateRepository.java | 0 .../repository/MessagingMetadataRepository.java | 0 .../custos/messaging/service/EmailService.java | 287 +++ .../custos/messaging/service/MessagingService.java | 89 + .../src/main/proto/EmailService.proto | 0 .../src/main/proto/MessagingService.proto | 0 .../federated-authentication-core-service/pom.xml | 180 ++ .../FederatedAuthenticationServiceException.java | 0 .../exceptions/MissingParameterException.java | 0 .../authentication/mapper/ModelMapper.java | 0 .../persistance/model/CILogonInstitution.java | 117 + .../CiLogonInstitutionCacheRepository.java | 0 .../service/FederatedAuthenticationService.java | 458 ++++ .../federated/authentication/utils/Operations.java | 0 .../FederatedAuthenticationInputValidator.java | 195 ++ .../proto/FederatedAuthenticationService.proto | 0 .../iam-admin-core-service/IamAdminService_pb2.py | 0 .../IamAdminService_pb2_grpc.py | 0 .../iam-admin-core-service/pom.xml | 150 ++ .../iam/exceptions/MissingParameterException.java | 0 .../apache/custos/iam/service/IamAdminService.java | 2480 ++++++++++++++++++++ .../org/apache/custos/iam/utils/IAMOperations.java | 0 .../java/org/apache/custos/iam/utils/Status.java | 0 .../custos/iam/validator/IAMInputValidator.java | 901 +++++++ .../src/main/proto/IamAdminService.proto | 508 ++++ .../identity-core-service/pom.xml | 148 ++ .../custos/identity/authzcache/AuthzCache.java | 0 .../identity/authzcache/AuthzCacheEntry.java | 0 .../identity/authzcache/AuthzCacheIndex.java | 0 .../identity/authzcache/AuthzCacheManager.java | 0 .../identity/authzcache/AuthzCachedStatus.java | 0 .../authzcache/DefaultAuthzCacheManager.java | 0 .../exceptions/CustosSecurityException.java | 0 .../custos/identity/service/IdentityService.java | 454 ++++ .../apache/custos/identity/utils/Constants.java | 0 .../identity/validator/IdentityInputValidator.java | 321 +++ .../src/main/proto/IdentityService.proto | 0 .../src/main/proto/IdentityService_pb.js | 0 custos-services/custos-core-services/pom.xml | 54 + .../resource-secret-core-service/pom.xml | 204 ++ .../exceptions/CredentialStoreException.java | 0 .../custos/resource/secret/manager/Credential.java | 0 .../secret/manager/CredentialGeneratorFactory.java | 0 .../manager/adaptor/inbound/CredentialReader.java | 0 .../adaptor/outbound/CertificateCredential.java | 0 .../manager/adaptor/outbound/CredentialMap.java | 0 .../manager/adaptor/outbound/CredentialWriter.java | 0 .../manager/adaptor/outbound/KVCredential.java | 0 .../adaptor/outbound/PasswordCredential.java | 0 .../adaptor/outbound/ResourceCredential.java | 0 .../manager/adaptor/outbound/SSHCredential.java | 0 .../secret/persistance/local/model/Secret.java | 149 ++ .../local/repository/SecretRepository.java | 0 .../secret/persistance/vault/Certificate.java | 0 .../secret/persistance/vault/KVSecret.java | 0 .../secret/persistance/vault/PasswordSecret.java | 0 .../persistance/vault/SSHCredentialSecrets.java | 0 .../secret/service/ResourceSecretService.java | 559 +++++ .../custos/resource/secret/utils/Constants.java | 0 .../custos/resource/secret/utils/Operations.java | 0 .../validator/ResourceSecretInputValidator.java | 155 ++ .../src/main/proto/ResourceSecretService.proto | 0 .../sharing-core-service/pom.xml | 162 ++ .../custos/sharing/service/SharingService.java | 724 ++++++ .../sharing/validator/SharingInputValidator.java | 340 +++ .../src/main/proto/SharingService.proto | 165 ++ .../tenant-profile-core-service/pom.xml | 166 ++ .../profile/TenantProfileServiceInitializer.java | 63 + .../exceptions/MissingParameterException.java | 0 .../profile/exceptions/NotUpdatableException.java | 0 .../exceptions/TenantNotFoundException.java | 0 .../mapper/AttributeUpdateMetadataMapper.java | 197 ++ .../profile/mapper/StatusUpdateMetadataMapper.java | 70 + .../custos/tenant/profile/mapper/TenantMapper.java | 206 ++ .../tenant/profile/persistance/model/Contact.java | 70 + .../profile/persistance/model/RedirectURI.java | 71 + .../tenant/profile/persistance/model/Tenant.java | 344 +++ .../model/TenantAttributeUpdateMetadata.java | 103 + .../model/TenantStatusUpdateMetadata.java | 92 + .../persistance/respository/ContactRepository.java | 0 .../respository/RedirectURIRepository.java | 0 .../respository/SearchTenantRepository.java | 0 .../respository/SearchTenantRepositoryImpl.java | 103 + .../TenantAttributeUpdateMetadataRepository.java | 30 + .../persistance/respository/TenantRepository.java | 0 .../TenantStatusUpdateMetadataRepository.java | 31 + .../profile/service/TenantProfileService.java | 422 ++++ .../validator/TenantProfileInputValidator.java | 261 ++ .../src/main/proto/TenantProfileService.proto | 0 .../user-profile-core-service/pom.xml | 139 ++ .../mapper/AttributeUpdateMetadataMapper.java | 0 .../custos/user/profile/mapper/GroupMapper.java | 0 .../profile/mapper/StatusUpdateMetadataMapper.java | 0 .../user/profile/mapper/UserProfileMapper.java | 0 .../persistance/model/AttributeUpdateMetadata.java | 106 + .../user/profile/persistance/model/Group.java | 190 ++ .../profile/persistance/model/GroupAttribute.java | 77 + .../user/profile/persistance/model/GroupRole.java | 77 + .../persistance/model/GroupToGroupMembership.java | 109 + .../persistance/model/StatusUpdateMetadata.java | 95 + .../profile/persistance/model/UserAttribute.java | 74 + .../persistance/model/UserGroupMembership.java | 121 + .../persistance/model/UserGroupMembershipType.java | 89 + .../profile/persistance/model/UserProfile.java | 212 ++ .../user/profile/persistance/model/UserRole.java | 74 + .../AttributeUpdateMetadataRepository.java | 0 .../repository/GroupAttributeRepository.java | 0 .../repository/GroupMembershipRepository.java | 0 .../repository/GroupMembershipTypeRepository.java | 0 .../persistance/repository/GroupRepository.java | 0 .../repository/GroupRoleRepository.java | 0 .../GroupToGroupMembershipRepository.java | 0 .../persistance/repository/RoleRepository.java | 0 .../repository/SearchGroupsRepository.java | 30 + .../repository/SearchGroupsRepositoryImpl.java | 121 + .../repository/StatusUpdateMetadataRepository.java | 0 .../repository/UserAttributeRepository.java | 0 .../persistance/repository/UserRepository.java | 36 + .../user/profile/service/UserProfileService.java | 1493 ++++++++++++ .../custos/user/profile/utils/Constants.java | 0 .../validator/UserProfileInputValidator.java | 364 +++ .../src/main/proto/UserProfileService.proto | 216 ++ .../custos-grpc-web-proxy/Dockerfile | 0 .../custos-grpc-web-proxy/pom.xml | 60 + .../src/main/helm/.helmignore | 0 .../custos-grpc-web-proxy/src/main/helm/Chart.yaml | 5 + .../src/main/helm/templates/NOTES.txt | 0 .../src/main/helm/templates/_helpers.tpl | 0 .../src/main/helm/templates/deployment.yaml | 61 + .../src/main/helm/templates/service.yaml | 0 .../src/main/helm/templates/serviceaccount.yaml | 8 + .../main/helm/templates/tests/test-connection.yaml | 0 .../src/main/helm/values.yaml | 90 + .../src/main/resources/envoy.yaml | 113 + .../custos-keycloak/Dockerfile | 5 + .../custos-keycloak/pom.xml | 32 + .../main/resources/keycloak-metrics-spi-2.5.1.jar | Bin 0 -> 232640 bytes .../src/main/resources/standalone-ha.xml | 0 .../src/main/resources/standalone.xml | 0 .../htrc/email/messages/messages_en.properties | 55 + .../resources/themes/htrc/email/theme.properties | 0 .../src/main/resources/themes/htrc/login/error.ftl | 0 .../themes/htrc/login/login-idp-link-confirm.ftl | 0 .../themes/htrc/login/login-idp-link-email.ftl | 25 + .../themes/htrc/login/login-page-expired.ftl | 0 .../themes/htrc/login/login-update-profile.ftl | 74 + .../themes/htrc/login/login-verify-email.ftl | 18 + .../src/main/resources/themes/htrc/login/login.ftl | 70 + .../themes/htrc/login/resources/css/styles.css | 192 ++ .../main/resources/themes/htrc/login/template.ftl | 0 .../resources/themes/htrc/login/theme.properties | 0 .../custos-external-services-distributions/pom.xml | 21 + .../custos-federated-services-clients/pom.xml | 102 + .../services/clients/cilogon/CILogonClient.java | 0 .../clients/cilogon/CILogonInstitution.java | 0 .../services/clients/cilogon/CILogonRequest.java | 0 .../services/clients/cilogon/CILogonResponse.java | 0 .../services/clients/keycloak/KeycloakClient.java | 2141 +++++++++++++++++ .../clients/keycloak/KeycloakClientSecret.java | 0 .../services/clients/keycloak/KeycloakUtils.java | 199 ++ .../clients/keycloak/UnauthorizedException.java | 0 .../clients/keycloak/auth/KeycloakAuthClient.java | 543 +++++ .../clients/keycloak/auth/TokenResponse.java | 0 .../services/clients/keycloak/auth/User.java | 0 custos-services/custos-integration-core/pom.xml | 94 + .../custos/integration/core/ServiceCallback.java | 0 .../custos/integration/core/ServiceChain.java | 0 .../custos/integration/core/ServiceException.java | 0 .../custos/integration/core/ServiceTask.java | 0 .../custos/integration/core/ServiceTaskImpl.java | 0 .../integration/core/endpoint/TargetEndpoint.java | 0 .../core/exceptions/InValidParameterException.java | 0 .../core/exceptions/MissingParameterException.java | 0 .../core/exceptions/UnAuthorizedException.java | 0 .../interceptor/IntegrationServiceInterceptor.java | 0 .../core/interceptor/ServiceInterceptor.java | 103 + .../custos/integration/core/utils/Constants.java | 0 .../core/utils/ShamirSecretHandler.java | 0 .../custos-integration-services-server/Dockerfile | 6 + .../custos-integration-services-server/pom.xml | 276 +++ .../src/main/dist/bin/custos-daemon.sh | 113 + .../src/main/dist/bin/custos.sh | 71 + .../src/main/dist/bin/setenv.sh | 46 + .../src/main/dist/conf/application.properties | 38 + .../dist/conf}/custos_user_schema_extention.json | 0 .../src/main/dist/conf/log4j2.xml | 49 + ...custos-integration-services-server-assembly.xml | 84 + .../services/api/IntegrationServicesServer.java | 126 + .../src/main/resources/application.properties | 38 + .../resources/custos_user_schema_extention.json | 0 .../src/main/resources/log4j2.xml | 27 + .../agent-management-service/pom.xml | 138 ++ .../AgentManagementClientAuthInterceptorImpl.java | 52 + .../AgentManagementInputValidator.java | 85 + ...rTenantRestrictedOperationsInterceptorImpl.java | 70 + .../AgentManagementUserAuthInterceptorImpl.java | 241 ++ .../management/service/AgentManagementService.java | 0 .../src/main/proto/AgentManagementService.proto | 0 .../custos-integration-services-commons/pom.xml | 122 + .../commons/interceptors/AuthInterceptor.java | 597 +++++ .../commons/interceptors/LoggingInterceptor.java | 104 + .../interceptors/MultiTenantAuthInterceptor.java | 0 .../services/commons/model/AuthClaim.java | 206 ++ .../services/commons/utils/EmailSender.java | 0 .../utils/EmailServiceOutputStreamObserver.java | 0 .../services/commons/utils/EventPublisher.java | 0 .../commons/utils/InterServiceModelMapper.java | 0 .../commons/utils/OutputStreamObserver.java | 0 .../custos-integration-services-swagger/pom.xml | 97 + .../services/swagger/SwaggerInitializer.java | 0 .../custos/services/swagger/SwaggerSpecConfig.java | 0 .../swagger/controller/SwaggerUIController.java | 0 .../src/main/resources/application.properties | 0 .../resources/protos/AgentManagementService.proto | 0 .../resources/protos/AgentProfileService.proto | 0 .../protos/ClusterManagementService.proto | 0 .../resources/protos}/CredentialStoreService.proto | 0 .../src/main/resources/protos/EmailService.proto | 0 .../protos/FederatedAuthenticationService.proto | 0 .../resources/protos/GroupManagementService.proto | 0 .../main/resources/protos/IamAdminService.proto | 508 ++++ .../protos/IdentityManagementService.proto | 156 ++ .../main/resources/protos/IdentityService.proto | 0 .../resources/protos/LogManagementService.proto | 0 .../src/main/resources/protos/LoggingService.proto | 0 .../main/resources/protos/MessagingService.proto | 0 .../protos/ResourceSecretManagementService.proto | 0 .../resources/protos/ResourceSecretService.proto | 0 .../protos/SharingManagementService.proto | 0 .../main/resources/protos}/SharingService.proto | 0 .../resources/protos/TenantManagementService.proto | 0 .../resources/protos/TenantProfileService.proto | 0 .../resources/protos/UserManagementService.proto | 277 +++ .../resources/protos}/UserProfileService.proto | 0 .../src/main/resources/pythonStubGenerator.sh | 0 .../agent-management-service/swagger.json | 0 .../cluster-management-service/swagger.json | 0 .../group-management-service/swagger.json | 0 .../identity-management-service/swagger.json | 0 .../log-management-service/swagger.json | 0 .../swagger.json | 0 .../sharing-management-service/swagger.json | 0 .../tenant-management-service/swagger.json | 0 .../user-management-service/swagger.json | 0 .../group-management-service/pom.xml | 139 ++ .../GroupManagementClientAuthInterceptorImpl.java | 193 ++ .../GroupManagementInputValidator.java | 89 + .../management/service/GroupManagementService.java | 887 +++++++ .../src/main/proto/GroupManagementService.proto | 0 .../identity-management-service/pom.xml | 141 ++ .../IdentityManagementAgentAuthInterceptor.java | 90 + .../IdentityManagementAuthInterceptorImpl.java | 176 ++ .../IdentityManagementInputValidator.java | 138 ++ .../service/IdentityManagementService.java | 392 ++++ .../identity/management/utils/Constants.java | 0 .../src/main/proto/IdentityManagementService.proto | 156 ++ .../src/main/resources/application.properties | 29 + .../src/main/resources/bootstrap.properties | 0 .../log-management-service/pom.xml | 170 ++ .../LogManagementAuthInterceptorImpl.java | 126 + .../interceptors/LogManagementInputValidator.java | 74 + .../management/service/LogManagementService.java | 0 .../src/main/proto/LogManagementService.proto | 0 .../custos-integration-services/pom.xml | 50 + .../resource-secret-management-service/pom.xml | 158 ++ ...esourceSecretManagementAuthInterceptorImpl.java | 208 ++ .../ResourceSecretManagementInputValidator.java | 120 + .../service/ResourceSecretManagementService.java | 0 .../proto/ResourceSecretManagementService.proto | 0 .../src/main/resources/application.properties | 29 + .../src/main/resources/bootstrap.properties | 0 .../scim-service/pom.xml | 134 ++ .../apache/custos/scim/SCIMServiceInitializer.java | 32 + .../apache/custos/scim/config/Swagger2Config.java | 0 .../custos/scim/exception/CustosSCIMException.java | 32 + .../scim/exception/NotAuthorizedException.java | 27 + .../custos/scim/resource/AbstractResource.java | 0 .../apache/custos/scim/resource/GroupResource.java | 334 +++ .../scim/resource/ServiceProviderResource.java | 0 .../apache/custos/scim/resource/UserResource.java | 304 +++ .../scim/resource/manager/ResourceManager.java | 919 ++++++++ .../org/apache/custos/scim/utils/AuthHandler.java | 69 + .../org/apache/custos/scim/utils/Constants.java | 0 .../resources/custos_user_schema_extention.bk.json | 0 .../resources/custos_user_schema_extention.json | 0 .../sharing-management-service/pom.xml | 149 ++ .../management/exceptions/SharingException.java | 0 .../SharingManagementAuthInterceptorImpl.java | 145 ++ .../SharingManagementInputValidator.java | 114 + .../service/SharingManagementService.java | 801 +++++++ .../src/main/proto/SharingManagementService.proto | 207 ++ .../tenant-management-service/pom.xml | 155 ++ .../exceptions/MissingParameterException.java | 0 .../TenantManagementAuthInterceptorImpl.java | 435 ++++ ...nantManagementDynamicRegistrationValidator.java | 168 ++ .../TenantManagementInputValidator.java | 227 ++ ...rTenantRestrictedOperationsInterceptorImpl.java | 128 + .../service/TenantManagementService.java | 969 ++++++++ .../management/tasks/TenantActivationTask.java | 297 +++ .../custos/tenant/management/utils/Constants.java | 0 .../src/main/proto/TenantManagementService.proto | 0 .../user-management-service/pom.xml | 138 ++ .../UserManagementServiceInitializer.java | 86 + .../UserManagementAuthInterceptorImpl.java | 517 ++++ .../interceptors/UserManagementInputValidator.java | 92 + ...rTenantRestrictedOperationsInterceptorImpl.java | 70 + .../management/service/UserManagementService.java | 1438 ++++++++++++ .../src/main/proto/UserManagementService.proto | 279 +++ .../src/main/proto/UserManagementService_pb.js | 0 custos-services/pom.xml | 50 + custos-tests/pom.xml | 3 +- .../integration/tests/AgentManagementTests.java | 2 +- custos-utilities/custos-bootstrap-service/pom.xml | 84 + .../src/main/java/CustosBootstrapService.java | 56 + custos-utilities/ide-integration/Dockerfile | 5 + custos-utilities/ide-integration/pom.xml | 170 ++ .../src/main/containers/certificate.p12 | Bin 0 -> 2501 bytes .../src/main/containers/certificate.pem | 21 + .../src/main/containers/certificate_mul.p12 | Bin 0 -> 2621 bytes .../src/main/containers/certificate_mul.pem | 24 + .../src/main/containers/docker-compose.yml | 81 + .../ide-integration/src/main/containers/key.pem | 28 + .../src/main/containers/key_mul.pem | 28 + .../ide-integration/src/main/containers/nginx.conf | 32 + .../src/main/containers/portal/docker-compose.yml | 16 + custos-utilities/k8-deployment-scripts/README.MD | 60 + .../k8-deployment-scripts/cert-manager/README.MD | 9 + .../letsencrypt-prod-cluster-issuer.yaml | 19 + .../k8-deployment-scripts/custos/README.MD | 22 + .../k8-deployment-scripts/custos/mysql/pv.yaml | 14 + .../k8-deployment-scripts/custos/mysql/pv1.yaml | 14 + .../k8-deployment-scripts/custos/mysql/pv2.yaml | 14 + .../k8-deployment-scripts/custos/mysql/values.yaml | 842 +++++++ .../k8-deployment-scripts/keycloak/README.MD | 38 + .../keycloak/custos-keycloak.yaml | 13 + .../k8-deployment-scripts/keycloak/ingress.yaml | 23 + .../keycloak/keycloak-db-secret.yaml | 13 + .../k8-deployment-scripts/keycloak/operator.yaml | 33 + .../keycloak/postgresql/postgresql-values.yaml | 827 +++++++ .../keycloak/postgresql/pv.yaml | 14 + .../keycloak/postgresql/pv1.yaml | 14 + .../keycloak/postgresql/pv2.yaml | 14 + .../k8-deployment-scripts/olm/install.sh | 59 + .../k8-deployment-scripts/vault/README.MD | 26 + .../k8-deployment-scripts/vault/consul/pv.yaml | 26 + .../k8-deployment-scripts/vault/consul/pv1.yaml | 26 + .../k8-deployment-scripts/vault/consul/pv2.yaml | 26 + .../vault/consul/storage.yaml | 6 + .../k8-deployment-scripts/vault/vault/ingress.yaml | 22 + .../k8-deployment-scripts/vault/vault/vaules.yaml | 733 ++++++ pom.xml | 321 +-- 1233 files changed, 56349 insertions(+), 55163 deletions(-)
