Removed class files
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -28,3 +28,5 @@
|
|||||||
/dist/
|
/dist/
|
||||||
/nbdist/
|
/nbdist/
|
||||||
/.nb-gradle/
|
/.nb-gradle/
|
||||||
|
/cygnus-cloud-service/target
|
||||||
|
/cygnus-cloud-client/target
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
artifactId=cygnus-cloud-client
|
|
||||||
groupId=com.cygnus
|
|
||||||
version=1.0.0-SNAPSHOT
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
com/cygnus/client/security/MachineTokenProvider.class
|
|
||||||
com/cygnus/client/security/OAuthMachineTokenProvider$TokenResponse.class
|
|
||||||
com/cygnus/client/provisioning/MachineAssertionGenerator.class
|
|
||||||
com/cygnus/client/CloudClientProperties.class
|
|
||||||
com/cygnus/client/security/LoginEnvelopeEncryptor.class
|
|
||||||
com/cygnus/client/model/LoginPayload.class
|
|
||||||
com/cygnus/client/model/CloudIdentitySession.class
|
|
||||||
com/cygnus/client/security/OAuthMachineTokenProvider.class
|
|
||||||
com/cygnus/client/security/OAuthMachineTokenProvider$CachedToken.class
|
|
||||||
com/cygnus/client/CloudClientFactory.class
|
|
||||||
com/cygnus/client/model/CloudMenuItem.class
|
|
||||||
com/cygnus/client/model/EncryptedLoginRequest.class
|
|
||||||
com/cygnus/client/security/CloudClientException.class
|
|
||||||
com/cygnus/client/CloudIdentityClient.class
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/CloudClientFactory.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/CloudClientProperties.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/CloudIdentityClient.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/model/CloudIdentitySession.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/model/CloudMenuItem.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/model/EncryptedLoginRequest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/model/LoginPayload.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/provisioning/MachineAssertionGenerator.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/security/CloudClientException.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/security/LoginEnvelopeEncryptor.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/security/MachineTokenProvider.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/main/java/com/cygnus/client/security/OAuthMachineTokenProvider.java
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
com/cygnus/client/CloudClientPropertiesTest.class
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/Users/maddy/Projects/matrix/cygnus-cloud-client/src/test/java/com/cygnus/client/CloudClientPropertiesTest.java
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" version="3.0.2" name="com.cygnus.client.CloudClientPropertiesTest" time="0.016" tests="2" errors="0" skipped="0" failures="0">
|
|
||||||
<properties>
|
|
||||||
<property name="java.specification.version" value="21"/>
|
|
||||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.class.path" value="/Users/maddy/Projects/matrix/cygnus-cloud-client/target/test-classes:/Users/maddy/Projects/matrix/cygnus-cloud-client/target/classes:/Users/maddy/.m2/repository/org/springframework/spring-webflux/6.2.19/spring-webflux-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-beans/6.2.19/spring-beans-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-core/6.2.19/spring-core-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-jcl/6.2.19/spring-jcl-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-web/6.2.19/spring-web-6.2.19.jar:/Users/maddy/.m2/repository/io/micrometer/micrometer-observation/1.15.12/micrometer-observation-1.15.12.jar:/Users/maddy/.m2/repository/io/micrometer/micrometer-commons/1.15.12/micrometer-commons-1.15.12.jar:/Users/maddy/.m2/repository/io/projectreactor/reactor-core/3.7.19/reactor-core-3.7.19.jar:/Users/maddy/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/maddy/.m2/repository/io/projectreactor/netty/reactor-netty-http/1.2.8/reactor-netty-http-1.2.8.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-http/4.1.122.Final/netty-codec-http-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-common/4.1.122.Final/netty-common-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-buffer/4.1.122.Final/netty-buffer-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport/4.1.122.Final/netty-transport-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec/4.1.122.Final/netty-codec-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-handler/4.1.122.Final/netty-handler-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-http2/4.1.122.Final/netty-codec-http2-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns/4.1.122.Final/netty-resolver-dns-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver/4.1.122.Final/netty-resolver-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-dns/4.1.122.Final/netty-codec-dns-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns-native-macos/4.1.122.Final/netty-resolver-dns-native-macos-4.1.122.Final-osx-x86_64.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns-classes-macos/4.1.122.Final/netty-resolver-dns-classes-macos-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-native-epoll/4.1.122.Final/netty-transport-native-epoll-4.1.122.Final-linux-x86_64.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.122.Final/netty-transport-native-unix-common-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-classes-epoll/4.1.122.Final/netty-transport-classes-epoll-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/projectreactor/netty/reactor-netty-core/1.2.8/reactor-netty-core-1.2.8.jar:/Users/maddy/.m2/repository/io/netty/netty-handler-proxy/4.1.122.Final/netty-handler-proxy-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-socks/4.1.122.Final/netty-codec-socks-4.1.122.Final.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.18.6/jackson-databind-2.18.6.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.18.6/jackson-annotations-2.18.6.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.18.6/jackson-core-2.18.6.jar:/Users/maddy/.m2/repository/com/nimbusds/nimbus-jose-jwt/10.4/nimbus-jose-jwt-10.4.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter/5.12.2/junit-jupiter-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.12.2/junit-jupiter-api-5.12.2.jar:/Users/maddy/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/Users/maddy/.m2/repository/org/junit/platform/junit-platform-commons/1.12.2/junit-platform-commons-1.12.2.jar:/Users/maddy/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.12.2/junit-jupiter-params-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.12.2/junit-jupiter-engine-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/platform/junit-platform-engine/1.12.2/junit-platform-engine-1.12.2.jar:"/>
|
|
||||||
<property name="java.vm.vendor" value="Microsoft"/>
|
|
||||||
<property name="sun.arch.data.model" value="64"/>
|
|
||||||
<property name="java.vendor.url" value="https://www.microsoft.com"/>
|
|
||||||
<property name="os.name" value="Mac OS X"/>
|
|
||||||
<property name="java.vm.specification.version" value="21"/>
|
|
||||||
<property name="sun.java.launcher" value="SUN_STANDARD"/>
|
|
||||||
<property name="user.country" value="US"/>
|
|
||||||
<property name="sun.boot.library.path" value="/Users/maddy/Library/Java/JavaVirtualMachines/ms-21.0.8/Contents/Home/lib"/>
|
|
||||||
<property name="sun.java.command" value="/Users/maddy/Projects/matrix/cygnus-cloud-client/target/surefire/surefirebooter-20260724215520397_3.jar /Users/maddy/Projects/matrix/cygnus-cloud-client/target/surefire 2026-07-24T21-55-20_356-jvmRun1 surefire-20260724215520397_1tmp surefire_0-20260724215520397_2tmp"/>
|
|
||||||
<property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
|
||||||
<property name="jdk.debug" value="release"/>
|
|
||||||
<property name="test" value="CloudClientPropertiesTest"/>
|
|
||||||
<property name="surefire.test.class.path" value="/Users/maddy/Projects/matrix/cygnus-cloud-client/target/test-classes:/Users/maddy/Projects/matrix/cygnus-cloud-client/target/classes:/Users/maddy/.m2/repository/org/springframework/spring-webflux/6.2.19/spring-webflux-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-beans/6.2.19/spring-beans-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-core/6.2.19/spring-core-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-jcl/6.2.19/spring-jcl-6.2.19.jar:/Users/maddy/.m2/repository/org/springframework/spring-web/6.2.19/spring-web-6.2.19.jar:/Users/maddy/.m2/repository/io/micrometer/micrometer-observation/1.15.12/micrometer-observation-1.15.12.jar:/Users/maddy/.m2/repository/io/micrometer/micrometer-commons/1.15.12/micrometer-commons-1.15.12.jar:/Users/maddy/.m2/repository/io/projectreactor/reactor-core/3.7.19/reactor-core-3.7.19.jar:/Users/maddy/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/maddy/.m2/repository/io/projectreactor/netty/reactor-netty-http/1.2.8/reactor-netty-http-1.2.8.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-http/4.1.122.Final/netty-codec-http-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-common/4.1.122.Final/netty-common-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-buffer/4.1.122.Final/netty-buffer-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport/4.1.122.Final/netty-transport-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec/4.1.122.Final/netty-codec-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-handler/4.1.122.Final/netty-handler-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-http2/4.1.122.Final/netty-codec-http2-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns/4.1.122.Final/netty-resolver-dns-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver/4.1.122.Final/netty-resolver-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-dns/4.1.122.Final/netty-codec-dns-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns-native-macos/4.1.122.Final/netty-resolver-dns-native-macos-4.1.122.Final-osx-x86_64.jar:/Users/maddy/.m2/repository/io/netty/netty-resolver-dns-classes-macos/4.1.122.Final/netty-resolver-dns-classes-macos-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-native-epoll/4.1.122.Final/netty-transport-native-epoll-4.1.122.Final-linux-x86_64.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.122.Final/netty-transport-native-unix-common-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-transport-classes-epoll/4.1.122.Final/netty-transport-classes-epoll-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/projectreactor/netty/reactor-netty-core/1.2.8/reactor-netty-core-1.2.8.jar:/Users/maddy/.m2/repository/io/netty/netty-handler-proxy/4.1.122.Final/netty-handler-proxy-4.1.122.Final.jar:/Users/maddy/.m2/repository/io/netty/netty-codec-socks/4.1.122.Final/netty-codec-socks-4.1.122.Final.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.18.6/jackson-databind-2.18.6.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.18.6/jackson-annotations-2.18.6.jar:/Users/maddy/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.18.6/jackson-core-2.18.6.jar:/Users/maddy/.m2/repository/com/nimbusds/nimbus-jose-jwt/10.4/nimbus-jose-jwt-10.4.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter/5.12.2/junit-jupiter-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.12.2/junit-jupiter-api-5.12.2.jar:/Users/maddy/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/Users/maddy/.m2/repository/org/junit/platform/junit-platform-commons/1.12.2/junit-platform-commons-1.12.2.jar:/Users/maddy/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.12.2/junit-jupiter-params-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.12.2/junit-jupiter-engine-5.12.2.jar:/Users/maddy/.m2/repository/org/junit/platform/junit-platform-engine/1.12.2/junit-platform-engine-1.12.2.jar:"/>
|
|
||||||
<property name="sun.cpu.endian" value="little"/>
|
|
||||||
<property name="user.home" value="/Users/maddy"/>
|
|
||||||
<property name="user.language" value="en"/>
|
|
||||||
<property name="java.specification.vendor" value="Oracle Corporation"/>
|
|
||||||
<property name="java.version.date" value="2025-07-15"/>
|
|
||||||
<property name="java.home" value="/Users/maddy/Library/Java/JavaVirtualMachines/ms-21.0.8/Contents/Home"/>
|
|
||||||
<property name="file.separator" value="/"/>
|
|
||||||
<property name="basedir" value="/Users/maddy/Projects/matrix/cygnus-cloud-client"/>
|
|
||||||
<property name="java.vm.compressedOopsMode" value="Zero based"/>
|
|
||||||
<property name="line.separator" value=" "/>
|
|
||||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
|
||||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
|
||||||
<property name="apple.awt.application.name" value="ForkedBooter"/>
|
|
||||||
<property name="surefire.real.class.path" value="/Users/maddy/Projects/matrix/cygnus-cloud-client/target/surefire/surefirebooter-20260724215520397_3.jar"/>
|
|
||||||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
|
|
||||||
<property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
|
||||||
<property name="java.runtime.version" value="21.0.8+9-LTS"/>
|
|
||||||
<property name="user.name" value="maddy"/>
|
|
||||||
<property name="stdout.encoding" value="UTF-8"/>
|
|
||||||
<property name="path.separator" value=":"/>
|
|
||||||
<property name="os.version" value="26.5.2"/>
|
|
||||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
|
||||||
<property name="file.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
|
|
||||||
<property name="java.vendor.version" value="Microsoft-11933201"/>
|
|
||||||
<property name="localRepository" value="/Users/maddy/.m2/repository"/>
|
|
||||||
<property name="java.vendor.url.bug" value="https://github.com/microsoft/openjdk/issues"/>
|
|
||||||
<property name="java.io.tmpdir" value="/var/folders/1l/36214rdn79755j30lcnmgsqh0000gn/T/"/>
|
|
||||||
<property name="java.version" value="21.0.8"/>
|
|
||||||
<property name="user.dir" value="/Users/maddy/Projects/matrix/cygnus-cloud-client"/>
|
|
||||||
<property name="os.arch" value="aarch64"/>
|
|
||||||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
|
|
||||||
<property name="native.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.library.path" value="/Users/maddy/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."/>
|
|
||||||
<property name="java.vm.info" value="mixed mode, sharing"/>
|
|
||||||
<property name="stderr.encoding" value="UTF-8"/>
|
|
||||||
<property name="java.vendor" value="Microsoft"/>
|
|
||||||
<property name="java.vm.version" value="21.0.8+9-LTS"/>
|
|
||||||
<property name="sun.io.unicode.encoding" value="UnicodeBig"/>
|
|
||||||
<property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
|
|
||||||
<property name="java.class.version" value="65.0"/>
|
|
||||||
</properties>
|
|
||||||
<testcase name="configurationAcceptsCompleteMachineIdentity" classname="com.cygnus.client.CloudClientPropertiesTest" time="0.007"/>
|
|
||||||
<testcase name="configurationRequiresMachineCredentials" classname="com.cygnus.client.CloudClientPropertiesTest" time="0.001"/>
|
|
||||||
</testsuite>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.client.CloudClientPropertiesTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s -- in com.cygnus.client.CloudClientPropertiesTest
|
|
||||||
Binary file not shown.
@@ -1,63 +0,0 @@
|
|||||||
spring:
|
|
||||||
application:
|
|
||||||
name: cygnus-cloud-service
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: ${REDIS_HOST:192.168.0.111}
|
|
||||||
port: ${REDIS_PORT:7901}
|
|
||||||
password: ${REDIS_PASSWORD:}
|
|
||||||
connect-timeout: ${REDIS_CONNECT_TIMEOUT:3s}
|
|
||||||
timeout: ${REDIS_COMMAND_TIMEOUT:3s}
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
max-active: ${REDIS_MAX_ACTIVE:20}
|
|
||||||
max-idle: ${REDIS_MAX_IDLE:10}
|
|
||||||
min-idle: ${REDIS_MIN_IDLE:1}
|
|
||||||
max-wait: ${REDIS_MAX_WAIT:2s}
|
|
||||||
|
|
||||||
cygnus:
|
|
||||||
database:
|
|
||||||
host: ${DB_HOST:192.168.0.111}
|
|
||||||
port: ${DB_PORT:5432}
|
|
||||||
database: ${DB_NAME:matrix}
|
|
||||||
username: ${DB_USER:postgres}
|
|
||||||
password: ${DB_PASSWORD:}
|
|
||||||
ssl: ${DB_SSL:false}
|
|
||||||
connect-timeout: ${DB_CONNECT_TIMEOUT:3s}
|
|
||||||
pool-size: ${DB_POOL_SIZE:20}
|
|
||||||
pool-wait-queue-size: ${DB_POOL_WAIT_QUEUE_SIZE:100}
|
|
||||||
security:
|
|
||||||
enabled: ${CYGNUS_SECURITY_ENABLED:false}
|
|
||||||
issuer-uri: ${CYGNUS_JWT_ISSUER_URI:http://localhost:8090}
|
|
||||||
audience: ${CYGNUS_JWT_AUDIENCE:cygnus-cloud-api}
|
|
||||||
token-audience: ${CYGNUS_TOKEN_AUDIENCE:http://localhost:8090/oauth2/token}
|
|
||||||
assertion-ttl: ${CYGNUS_ASSERTION_TTL:370d}
|
|
||||||
access-token-ttl: ${CYGNUS_ACCESS_TOKEN_TTL:20m}
|
|
||||||
assertion-decryption-private-key: ${CYGNUS_ASSERTION_DECRYPTION_PRIVATE_KEY:file:./config/keys/assertion-decryption-private.pem}
|
|
||||||
access-token-private-key: ${CYGNUS_ACCESS_TOKEN_PRIVATE_KEY:file:./config/keys/access-token-private.pem}
|
|
||||||
access-token-public-key: ${CYGNUS_ACCESS_TOKEN_PUBLIC_KEY:file:./config/keys/access-token-public.pem}
|
|
||||||
login-encryption:
|
|
||||||
key-id: ${CYGNUS_LOGIN_KEY_ID:cygnus-login-2026-01}
|
|
||||||
private-key-location: ${CYGNUS_LOGIN_PRIVATE_KEY:file:./config/keys/login-private.pem}
|
|
||||||
payload-ttl: ${CYGNUS_LOGIN_PAYLOAD_TTL:5m}
|
|
||||||
cache:
|
|
||||||
key-prefix: ${CYGNUS_CACHE_PREFIX:cygnus}
|
|
||||||
default-ttl: ${CYGNUS_CACHE_TTL:10m}
|
|
||||||
|
|
||||||
server:
|
|
||||||
port: ${CYGNUS_CLOUD_PORT:8090}
|
|
||||||
shutdown: graceful
|
|
||||||
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: health,info
|
|
||||||
endpoint:
|
|
||||||
health:
|
|
||||||
show-details: never
|
|
||||||
|
|
||||||
info:
|
|
||||||
app:
|
|
||||||
name: ${spring.application.name}
|
|
||||||
version: 1.0.0-SNAPSHOT
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,217 +0,0 @@
|
|||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE SCHEMA IF NOT EXISTS identity;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.company
|
|
||||||
(LIKE public.company INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.company_branch
|
|
||||||
(LIKE public.company_branch INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.user_group
|
|
||||||
(LIKE public.user_group INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.app_user
|
|
||||||
(LIKE public.app_user INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.pages
|
|
||||||
(LIKE public.pages INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.permission
|
|
||||||
(LIKE public.permission INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.denied_pages
|
|
||||||
(LIKE public.denied_pages INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.user_loginhistory
|
|
||||||
(LIKE public.user_loginhistory INCLUDING ALL);
|
|
||||||
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.app_user_user_id_seq
|
|
||||||
AS smallint MAXVALUE 32767;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.company_company_id_seq
|
|
||||||
AS smallint MAXVALUE 32767;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.company_branch_branch_id_seq
|
|
||||||
AS smallint MAXVALUE 32767;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.user_group_group_id_seq
|
|
||||||
AS smallint MAXVALUE 32767;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.pages_page_id_seq
|
|
||||||
AS smallint MAXVALUE 32767;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.permission_permission_id_seq
|
|
||||||
AS integer;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.denied_pages_uid_seq
|
|
||||||
AS integer;
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS identity.user_loginhistory_uid_seq
|
|
||||||
AS bigint;
|
|
||||||
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ALTER COLUMN user_id SET DEFAULT nextval('identity.app_user_user_id_seq');
|
|
||||||
ALTER TABLE identity.company
|
|
||||||
ALTER COLUMN company_id SET DEFAULT nextval('identity.company_company_id_seq');
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
ALTER COLUMN branch_id SET DEFAULT nextval('identity.company_branch_branch_id_seq');
|
|
||||||
ALTER TABLE identity.user_group
|
|
||||||
ALTER COLUMN group_id SET DEFAULT nextval('identity.user_group_group_id_seq');
|
|
||||||
ALTER TABLE identity.pages
|
|
||||||
ALTER COLUMN page_id SET DEFAULT nextval('identity.pages_page_id_seq');
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ALTER COLUMN permission_id SET DEFAULT nextval('identity.permission_permission_id_seq');
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ALTER COLUMN uid SET DEFAULT nextval('identity.denied_pages_uid_seq');
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
ALTER COLUMN uid SET DEFAULT nextval('identity.user_loginhistory_uid_seq');
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
ALTER COLUMN ipaddr TYPE character varying(45);
|
|
||||||
|
|
||||||
INSERT INTO identity.company
|
|
||||||
SELECT * FROM public.company
|
|
||||||
ON CONFLICT (company_id) DO UPDATE SET
|
|
||||||
companyname = EXCLUDED.companyname,
|
|
||||||
companycode = EXCLUDED.companycode,
|
|
||||||
servicetaxno = EXCLUDED.servicetaxno,
|
|
||||||
panno = EXCLUDED.panno,
|
|
||||||
createdon = EXCLUDED.createdon,
|
|
||||||
isactive = EXCLUDED.isactive,
|
|
||||||
cinno = EXCLUDED.cinno;
|
|
||||||
|
|
||||||
INSERT INTO identity.company_branch
|
|
||||||
SELECT * FROM public.company_branch
|
|
||||||
ON CONFLICT (branch_id) DO UPDATE SET
|
|
||||||
company_id = EXCLUDED.company_id,
|
|
||||||
branchname = EXCLUDED.branchname,
|
|
||||||
branchcode = EXCLUDED.branchcode,
|
|
||||||
address1 = EXCLUDED.address1,
|
|
||||||
address2 = EXCLUDED.address2,
|
|
||||||
address3 = EXCLUDED.address3,
|
|
||||||
city = EXCLUDED.city,
|
|
||||||
pincode = EXCLUDED.pincode,
|
|
||||||
landlineno = EXCLUDED.landlineno,
|
|
||||||
faxno = EXCLUDED.faxno,
|
|
||||||
emailid = EXCLUDED.emailid,
|
|
||||||
contactperson1 = EXCLUDED.contactperson1,
|
|
||||||
contactno1 = EXCLUDED.contactno1,
|
|
||||||
emailid1 = EXCLUDED.emailid1,
|
|
||||||
contactperson2 = EXCLUDED.contactperson2,
|
|
||||||
contactno2 = EXCLUDED.contactno2,
|
|
||||||
emailid2 = EXCLUDED.emailid2,
|
|
||||||
isactive = EXCLUDED.isactive,
|
|
||||||
createdon = EXCLUDED.createdon,
|
|
||||||
gstin = EXCLUDED.gstin,
|
|
||||||
cgst = EXCLUDED.cgst,
|
|
||||||
sgst = EXCLUDED.sgst,
|
|
||||||
igst = EXCLUDED.igst;
|
|
||||||
|
|
||||||
INSERT INTO identity.user_group
|
|
||||||
SELECT * FROM public.user_group
|
|
||||||
ON CONFLICT (group_id) DO UPDATE SET
|
|
||||||
name = EXCLUDED.name,
|
|
||||||
department_id = EXCLUDED.department_id,
|
|
||||||
createdon = EXCLUDED.createdon,
|
|
||||||
createdby = EXCLUDED.createdby,
|
|
||||||
lasteditedon = EXCLUDED.lasteditedon,
|
|
||||||
lasteditedby = EXCLUDED.lasteditedby,
|
|
||||||
isactive = EXCLUDED.isactive;
|
|
||||||
|
|
||||||
INSERT INTO identity.app_user
|
|
||||||
SELECT * FROM public.app_user
|
|
||||||
ON CONFLICT (user_id) DO UPDATE SET
|
|
||||||
loginid = EXCLUDED.loginid,
|
|
||||||
displayname = EXCLUDED.displayname,
|
|
||||||
loginpassword = EXCLUDED.loginpassword,
|
|
||||||
group_id = EXCLUDED.group_id,
|
|
||||||
createdon = EXCLUDED.createdon,
|
|
||||||
createdby = EXCLUDED.createdby,
|
|
||||||
activatedon = EXCLUDED.activatedon,
|
|
||||||
activatedby = EXCLUDED.activatedby,
|
|
||||||
lasteditedon = EXCLUDED.lasteditedon,
|
|
||||||
lasteditedby = EXCLUDED.lasteditedby,
|
|
||||||
branch_id = EXCLUDED.branch_id,
|
|
||||||
company_id = EXCLUDED.company_id,
|
|
||||||
isactive = EXCLUDED.isactive,
|
|
||||||
team_id = EXCLUDED.team_id,
|
|
||||||
emailid = EXCLUDED.emailid,
|
|
||||||
entry_time = EXCLUDED.entry_time;
|
|
||||||
|
|
||||||
INSERT INTO identity.pages
|
|
||||||
SELECT * FROM public.pages
|
|
||||||
ON CONFLICT (page_id) DO UPDATE SET
|
|
||||||
menulabel = EXCLUDED.menulabel,
|
|
||||||
targeturl = EXCLUDED.targeturl,
|
|
||||||
parentpage = EXCLUDED.parentpage,
|
|
||||||
targetwindow = EXCLUDED.targetwindow,
|
|
||||||
pageorder = EXCLUDED.pageorder,
|
|
||||||
isvisible = EXCLUDED.isvisible;
|
|
||||||
|
|
||||||
INSERT INTO identity.permission
|
|
||||||
SELECT * FROM public.permission
|
|
||||||
ON CONFLICT (permission_id) DO UPDATE SET
|
|
||||||
page_id = EXCLUDED.page_id,
|
|
||||||
group_id = EXCLUDED.group_id,
|
|
||||||
lasteditedon = EXCLUDED.lasteditedon,
|
|
||||||
lasteditedby = EXCLUDED.lasteditedby,
|
|
||||||
permission = EXCLUDED.permission,
|
|
||||||
requestval = EXCLUDED.requestval;
|
|
||||||
|
|
||||||
INSERT INTO identity.denied_pages
|
|
||||||
SELECT * FROM public.denied_pages
|
|
||||||
ON CONFLICT (uid) DO UPDATE SET
|
|
||||||
page_id = EXCLUDED.page_id,
|
|
||||||
user_id = EXCLUDED.user_id,
|
|
||||||
isdenied = EXCLUDED.isdenied;
|
|
||||||
|
|
||||||
INSERT INTO identity.user_loginhistory
|
|
||||||
SELECT * FROM public.user_loginhistory
|
|
||||||
ON CONFLICT (uid) DO UPDATE SET
|
|
||||||
loginid = EXCLUDED.loginid,
|
|
||||||
logintime = EXCLUDED.logintime,
|
|
||||||
logouttime = EXCLUDED.logouttime,
|
|
||||||
ipaddr = EXCLUDED.ipaddr,
|
|
||||||
user_id = EXCLUDED.user_id;
|
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_app_user_loginid_ci
|
|
||||||
ON identity.app_user (upper(loginid));
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_permission_group_page
|
|
||||||
ON identity.permission (group_id, page_id)
|
|
||||||
WHERE permission <> '000';
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_pages_menu
|
|
||||||
ON identity.pages (parentpage, pageorder DESC)
|
|
||||||
WHERE isvisible = 1;
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_denied_pages_user_page
|
|
||||||
ON identity.denied_pages (user_id, page_id)
|
|
||||||
WHERE isdenied = 1;
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_login_history_user_time
|
|
||||||
ON identity.user_loginhistory (user_id, logintime DESC);
|
|
||||||
|
|
||||||
SELECT setval(
|
|
||||||
'identity.app_user_user_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(user_id) FROM identity.app_user), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.app_user));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.company_company_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(company_id) FROM identity.company), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.company));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.company_branch_branch_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(branch_id) FROM identity.company_branch), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.company_branch));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.user_group_group_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(group_id) FROM identity.user_group), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.user_group));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.pages_page_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(page_id) FROM identity.pages), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.pages));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.permission_permission_id_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(permission_id) FROM identity.permission), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.permission));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.denied_pages_uid_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(uid) FROM identity.denied_pages), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.denied_pages));
|
|
||||||
SELECT setval(
|
|
||||||
'identity.user_loginhistory_uid_seq',
|
|
||||||
GREATEST(COALESCE((SELECT max(uid) FROM identity.user_loginhistory), 1), 1),
|
|
||||||
EXISTS (SELECT 1 FROM identity.user_loginhistory));
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
BEGIN;
|
|
||||||
|
|
||||||
-- DMLP phase 2: introduce the tenant, installation and license source of truth.
|
|
||||||
-- The fixed legacy tenant is a migration bridge for the identity data copied by
|
|
||||||
-- 001_identity_login_schema.sql. Replace its migration license through the
|
|
||||||
-- administration workflow before commercial enforcement is enabled.
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.client_account (
|
|
||||||
tenant_id uuid PRIMARY KEY,
|
|
||||||
client_slug character varying(80) NOT NULL,
|
|
||||||
client_name character varying(200) NOT NULL,
|
|
||||||
status character varying(20) NOT NULL,
|
|
||||||
created_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
updated_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
CONSTRAINT uq_identity_client_account_slug UNIQUE (client_slug),
|
|
||||||
CONSTRAINT ck_identity_client_account_slug
|
|
||||||
CHECK (client_slug ~ '^[a-z0-9]+(?:-[a-z0-9]+)*$'),
|
|
||||||
CONSTRAINT ck_identity_client_account_status
|
|
||||||
CHECK (status IN ('ACTIVE', 'SUSPENDED', 'CANCELLED'))
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.client_installation (
|
|
||||||
installation_id uuid PRIMARY KEY,
|
|
||||||
tenant_id uuid NOT NULL,
|
|
||||||
client_id character varying(80) NOT NULL,
|
|
||||||
installation_code character varying(100) NOT NULL,
|
|
||||||
assertion_public_key text NOT NULL,
|
|
||||||
allowed_scopes text[] NOT NULL DEFAULT ARRAY[]::text[],
|
|
||||||
enabled boolean NOT NULL DEFAULT true,
|
|
||||||
security_version integer NOT NULL DEFAULT 1,
|
|
||||||
last_authenticated_at timestamp with time zone,
|
|
||||||
created_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
updated_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
CONSTRAINT fk_identity_installation_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id),
|
|
||||||
CONSTRAINT uq_identity_installation_client_code
|
|
||||||
UNIQUE (client_id, installation_code),
|
|
||||||
CONSTRAINT ck_identity_installation_client_id
|
|
||||||
CHECK (client_id ~ '^[A-Za-z0-9][A-Za-z0-9_-]*$'),
|
|
||||||
CONSTRAINT ck_identity_installation_code
|
|
||||||
CHECK (installation_code ~ '^[A-Za-z0-9][A-Za-z0-9_-]*$'),
|
|
||||||
CONSTRAINT ck_identity_installation_security_version
|
|
||||||
CHECK (security_version > 0)
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS identity.client_license (
|
|
||||||
license_id uuid PRIMARY KEY,
|
|
||||||
tenant_id uuid NOT NULL,
|
|
||||||
license_type character varying(30) NOT NULL,
|
|
||||||
package_code character varying(50) NOT NULL,
|
|
||||||
valid_from timestamp with time zone NOT NULL,
|
|
||||||
valid_until timestamp with time zone NOT NULL,
|
|
||||||
status character varying(20) NOT NULL,
|
|
||||||
max_users integer,
|
|
||||||
max_installations integer,
|
|
||||||
created_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
updated_at timestamp with time zone NOT NULL DEFAULT now(),
|
|
||||||
CONSTRAINT fk_identity_license_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id),
|
|
||||||
CONSTRAINT ck_identity_license_period
|
|
||||||
CHECK (valid_until > valid_from),
|
|
||||||
CONSTRAINT ck_identity_license_status
|
|
||||||
CHECK (status IN ('ACTIVE', 'SUSPENDED', 'EXPIRED', 'CANCELLED')),
|
|
||||||
CONSTRAINT ck_identity_license_limits
|
|
||||||
CHECK ((max_users IS NULL OR max_users > 0)
|
|
||||||
AND (max_installations IS NULL OR max_installations > 0))
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_installation_tenant_enabled
|
|
||||||
ON identity.client_installation (tenant_id, enabled);
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_installation_lookup
|
|
||||||
ON identity.client_installation (client_id, installation_code, enabled);
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_license_tenant_period
|
|
||||||
ON identity.client_license (tenant_id, status, valid_from, valid_until);
|
|
||||||
|
|
||||||
-- Add tenant ownership without changing any legacy primary-key values.
|
|
||||||
ALTER TABLE identity.company
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.user_group
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
ADD COLUMN IF NOT EXISTS tenant_id uuid;
|
|
||||||
|
|
||||||
-- Seed a stable bridge tenant for all identity data that already exists.
|
|
||||||
INSERT INTO identity.client_account
|
|
||||||
(tenant_id, client_slug, client_name, status)
|
|
||||||
VALUES ('00000000-0000-4000-8000-000000000001', 'matrix', 'Matrix', 'ACTIVE')
|
|
||||||
ON CONFLICT (tenant_id) DO UPDATE SET
|
|
||||||
client_slug = EXCLUDED.client_slug,
|
|
||||||
client_name = EXCLUDED.client_name,
|
|
||||||
updated_at = now();
|
|
||||||
|
|
||||||
-- A non-expiring migration bridge keeps current users operational. It must be
|
|
||||||
-- replaced by a commercial license before license administration goes live.
|
|
||||||
INSERT INTO identity.client_license
|
|
||||||
(license_id, tenant_id, license_type, package_code,
|
|
||||||
valid_from, valid_until, status)
|
|
||||||
VALUES ('00000000-0000-4000-8000-000000000002',
|
|
||||||
'00000000-0000-4000-8000-000000000001',
|
|
||||||
'MIGRATION', 'LEGACY_FULL',
|
|
||||||
'2020-01-01 00:00:00+00', '2099-12-31 23:59:59+00', 'ACTIVE')
|
|
||||||
ON CONFLICT (license_id) DO NOTHING;
|
|
||||||
|
|
||||||
UPDATE identity.company
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.company_branch
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.user_group
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.app_user
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.permission
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.denied_pages
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
UPDATE identity.user_loginhistory
|
|
||||||
SET tenant_id = '00000000-0000-4000-8000-000000000001'
|
|
||||||
WHERE tenant_id IS NULL;
|
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_company_tenant
|
|
||||||
ON identity.company (tenant_id, company_id);
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_branch_tenant
|
|
||||||
ON identity.company_branch (tenant_id, company_id, branch_id);
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_group_tenant
|
|
||||||
ON identity.user_group (tenant_id, group_id);
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_user_tenant_login
|
|
||||||
ON identity.app_user (tenant_id, upper(loginid));
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_permission_tenant_group_page
|
|
||||||
ON identity.permission (tenant_id, group_id, page_id)
|
|
||||||
WHERE permission <> '000';
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_denied_tenant_user_page
|
|
||||||
ON identity.denied_pages (tenant_id, user_id, page_id)
|
|
||||||
WHERE isdenied = 1;
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_identity_login_history_tenant_user_time
|
|
||||||
ON identity.user_loginhistory (tenant_id, user_id, logintime DESC);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
@@ -1,231 +0,0 @@
|
|||||||
BEGIN;
|
|
||||||
|
|
||||||
-- DMLP phase 3: make tenant ownership mandatory and enforce same-tenant
|
|
||||||
-- relationships without changing any legacy primary keys.
|
|
||||||
|
|
||||||
ALTER TABLE identity.company
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.user_group
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
ALTER COLUMN tenant_id SET NOT NULL;
|
|
||||||
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS uq_identity_company_tenant_id
|
|
||||||
ON identity.company (tenant_id, company_id);
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS uq_identity_branch_tenant_id
|
|
||||||
ON identity.company_branch (tenant_id, branch_id, company_id);
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS uq_identity_group_tenant_id
|
|
||||||
ON identity.user_group (tenant_id, group_id);
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS uq_identity_user_tenant_id
|
|
||||||
ON identity.app_user (tenant_id, user_id);
|
|
||||||
|
|
||||||
DO $migration$
|
|
||||||
BEGIN
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_company_tenant'
|
|
||||||
AND conrelid = 'identity.company'::regclass) THEN
|
|
||||||
ALTER TABLE identity.company
|
|
||||||
ADD CONSTRAINT fk_identity_company_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_branch_tenant'
|
|
||||||
AND conrelid = 'identity.company_branch'::regclass) THEN
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
ADD CONSTRAINT fk_identity_branch_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_branch_company_tenant'
|
|
||||||
AND conrelid = 'identity.company_branch'::regclass) THEN
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
ADD CONSTRAINT fk_identity_branch_company_tenant
|
|
||||||
FOREIGN KEY (tenant_id, company_id)
|
|
||||||
REFERENCES identity.company (tenant_id, company_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_group_tenant'
|
|
||||||
AND conrelid = 'identity.user_group'::regclass) THEN
|
|
||||||
ALTER TABLE identity.user_group
|
|
||||||
ADD CONSTRAINT fk_identity_group_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_user_tenant'
|
|
||||||
AND conrelid = 'identity.app_user'::regclass) THEN
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ADD CONSTRAINT fk_identity_user_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_user_group_tenant'
|
|
||||||
AND conrelid = 'identity.app_user'::regclass) THEN
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ADD CONSTRAINT fk_identity_user_group_tenant
|
|
||||||
FOREIGN KEY (tenant_id, group_id)
|
|
||||||
REFERENCES identity.user_group (tenant_id, group_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_user_company_tenant'
|
|
||||||
AND conrelid = 'identity.app_user'::regclass) THEN
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ADD CONSTRAINT fk_identity_user_company_tenant
|
|
||||||
FOREIGN KEY (tenant_id, company_id)
|
|
||||||
REFERENCES identity.company (tenant_id, company_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_user_branch_tenant'
|
|
||||||
AND conrelid = 'identity.app_user'::regclass) THEN
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
ADD CONSTRAINT fk_identity_user_branch_tenant
|
|
||||||
FOREIGN KEY (tenant_id, branch_id, company_id)
|
|
||||||
REFERENCES identity.company_branch (tenant_id, branch_id, company_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_permission_tenant'
|
|
||||||
AND conrelid = 'identity.permission'::regclass) THEN
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ADD CONSTRAINT fk_identity_permission_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_permission_group_tenant'
|
|
||||||
AND conrelid = 'identity.permission'::regclass) THEN
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ADD CONSTRAINT fk_identity_permission_group_tenant
|
|
||||||
FOREIGN KEY (tenant_id, group_id)
|
|
||||||
REFERENCES identity.user_group (tenant_id, group_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_permission_page'
|
|
||||||
AND conrelid = 'identity.permission'::regclass) THEN
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
ADD CONSTRAINT fk_identity_permission_page
|
|
||||||
FOREIGN KEY (page_id)
|
|
||||||
REFERENCES identity.pages (page_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_denied_tenant'
|
|
||||||
AND conrelid = 'identity.denied_pages'::regclass) THEN
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ADD CONSTRAINT fk_identity_denied_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_denied_user_tenant'
|
|
||||||
AND conrelid = 'identity.denied_pages'::regclass) THEN
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ADD CONSTRAINT fk_identity_denied_user_tenant
|
|
||||||
FOREIGN KEY (tenant_id, user_id)
|
|
||||||
REFERENCES identity.app_user (tenant_id, user_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_denied_page'
|
|
||||||
AND conrelid = 'identity.denied_pages'::regclass) THEN
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
ADD CONSTRAINT fk_identity_denied_page
|
|
||||||
FOREIGN KEY (page_id)
|
|
||||||
REFERENCES identity.pages (page_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT 1 FROM pg_constraint
|
|
||||||
WHERE conname = 'fk_identity_login_history_tenant'
|
|
||||||
AND conrelid = 'identity.user_loginhistory'::regclass) THEN
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
ADD CONSTRAINT fk_identity_login_history_tenant
|
|
||||||
FOREIGN KEY (tenant_id)
|
|
||||||
REFERENCES identity.client_account (tenant_id)
|
|
||||||
NOT VALID;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
END
|
|
||||||
$migration$;
|
|
||||||
|
|
||||||
ALTER TABLE identity.company
|
|
||||||
VALIDATE CONSTRAINT fk_identity_company_tenant;
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
VALIDATE CONSTRAINT fk_identity_branch_tenant;
|
|
||||||
ALTER TABLE identity.company_branch
|
|
||||||
VALIDATE CONSTRAINT fk_identity_branch_company_tenant;
|
|
||||||
ALTER TABLE identity.user_group
|
|
||||||
VALIDATE CONSTRAINT fk_identity_group_tenant;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
VALIDATE CONSTRAINT fk_identity_user_tenant;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
VALIDATE CONSTRAINT fk_identity_user_group_tenant;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
VALIDATE CONSTRAINT fk_identity_user_company_tenant;
|
|
||||||
ALTER TABLE identity.app_user
|
|
||||||
VALIDATE CONSTRAINT fk_identity_user_branch_tenant;
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
VALIDATE CONSTRAINT fk_identity_permission_tenant;
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
VALIDATE CONSTRAINT fk_identity_permission_group_tenant;
|
|
||||||
ALTER TABLE identity.permission
|
|
||||||
VALIDATE CONSTRAINT fk_identity_permission_page;
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
VALIDATE CONSTRAINT fk_identity_denied_tenant;
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
VALIDATE CONSTRAINT fk_identity_denied_user_tenant;
|
|
||||||
ALTER TABLE identity.denied_pages
|
|
||||||
VALIDATE CONSTRAINT fk_identity_denied_page;
|
|
||||||
ALTER TABLE identity.user_loginhistory
|
|
||||||
VALIDATE CONSTRAINT fk_identity_login_history_tenant;
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
artifactId=cygnus-cloud-service
|
|
||||||
groupId=com.cygnus
|
|
||||||
version=1.0.0-SNAPSHOT
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
com/cygnus/cloud/security/JwtReplayProtectionService.class
|
|
||||||
com/cygnus/cloud/identity/repository/IdentityRowMapper.class
|
|
||||||
com/cygnus/cloud/security/TokenResponse.class
|
|
||||||
com/cygnus/cloud/identity/api/IdentityErrorHandler.class
|
|
||||||
com/cygnus/cloud/security/MachineTokenController.class
|
|
||||||
com/cygnus/cloud/cache/CacheProperties.class
|
|
||||||
com/cygnus/cloud/identity/service/AuthenticationException.class
|
|
||||||
com/cygnus/cloud/database/ReactiveDatabaseClient.class
|
|
||||||
com/cygnus/cloud/security/AudienceValidator.class
|
|
||||||
com/cygnus/cloud/security/MachineSecurityConfigurationValidator.class
|
|
||||||
com/cygnus/cloud/identity/api/EncryptedLoginRequest.class
|
|
||||||
com/cygnus/cloud/security/AccessTokenIssuer.class
|
|
||||||
com/cygnus/cloud/identity/api/LoginEncryptionProperties.class
|
|
||||||
com/cygnus/cloud/identity/service/LoginRequestReplayService.class
|
|
||||||
com/cygnus/cloud/identity/service/IdentityAuthenticationService.class
|
|
||||||
com/cygnus/cloud/security/MachineTokenErrorHandler.class
|
|
||||||
com/cygnus/cloud/security/MachineClientPrincipal.class
|
|
||||||
com/cygnus/cloud/system/SystemInfoResponse.class
|
|
||||||
com/cygnus/cloud/identity/api/LoginPayload.class
|
|
||||||
com/cygnus/cloud/security/CommunicationSecurityProperties.class
|
|
||||||
com/cygnus/cloud/system/SystemConfiguration.class
|
|
||||||
com/cygnus/cloud/security/MachineAuthenticationException.class
|
|
||||||
com/cygnus/cloud/security/PemKeyLoader.class
|
|
||||||
com/cygnus/cloud/security/CloudSecurityConfiguration.class
|
|
||||||
com/cygnus/cloud/database/VertxDatabaseConfiguration.class
|
|
||||||
com/cygnus/cloud/security/CommunicationSecurityProperties$MachineClient.class
|
|
||||||
com/cygnus/cloud/identity/repository/IdentityRepository.class
|
|
||||||
com/cygnus/cloud/identity/service/LegacyPasswordVerifier.class
|
|
||||||
com/cygnus/cloud/system/SystemInfoController.class
|
|
||||||
com/cygnus/cloud/CygnusCloudServiceApplication.class
|
|
||||||
com/cygnus/cloud/cache/ReactiveCacheService.class
|
|
||||||
com/cygnus/cloud/identity/model/MenuItem.class
|
|
||||||
com/cygnus/cloud/identity/model/AuthenticatedIdentity.class
|
|
||||||
com/cygnus/cloud/identity/api/CloudLoginController.class
|
|
||||||
com/cygnus/cloud/security/ClientAssertionValidator.class
|
|
||||||
com/cygnus/cloud/identity/model/IdentityUser.class
|
|
||||||
com/cygnus/cloud/identity/api/RsaLoginPayloadDecryptor.class
|
|
||||||
com/cygnus/cloud/database/DatabaseProperties.class
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/CygnusCloudServiceApplication.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/cache/CacheProperties.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/cache/ReactiveCacheService.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/database/DatabaseProperties.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/database/ReactiveDatabaseClient.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/database/VertxDatabaseConfiguration.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/CloudLoginController.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/EncryptedLoginRequest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/IdentityErrorHandler.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/LoginEncryptionProperties.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/LoginPayload.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/api/RsaLoginPayloadDecryptor.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/model/AuthenticatedIdentity.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/model/IdentityUser.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/model/MenuItem.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/repository/IdentityRepository.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/repository/IdentityRowMapper.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/service/AuthenticationException.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/service/IdentityAuthenticationService.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/service/LegacyPasswordVerifier.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/identity/service/LoginRequestReplayService.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/AccessTokenIssuer.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/AudienceValidator.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/ClientAssertionValidator.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/CloudSecurityConfiguration.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/CommunicationSecurityProperties.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/JwtReplayProtectionService.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/MachineAuthenticationException.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/MachineClientPrincipal.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/MachineSecurityConfigurationValidator.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/MachineTokenController.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/MachineTokenErrorHandler.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/PemKeyLoader.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/security/TokenResponse.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/system/SystemConfiguration.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/system/SystemInfoController.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/main/java/com/cygnus/cloud/system/SystemInfoResponse.java
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
com/cygnus/cloud/identity/service/IdentityAuthenticationServiceTest.class
|
|
||||||
com/cygnus/cloud/InfrastructureConfigurationTest.class
|
|
||||||
com/cygnus/cloud/identity/service/LegacyPasswordVerifierTest.class
|
|
||||||
com/cygnus/cloud/security/MachineTokenFlowTest.class
|
|
||||||
com/cygnus/cloud/system/SystemInfoControllerTest$FixedClockConfiguration.class
|
|
||||||
com/cygnus/cloud/system/SystemInfoControllerTest.class
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/test/java/com/cygnus/cloud/InfrastructureConfigurationTest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/test/java/com/cygnus/cloud/identity/service/IdentityAuthenticationServiceTest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/test/java/com/cygnus/cloud/identity/service/LegacyPasswordVerifierTest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/test/java/com/cygnus/cloud/security/MachineTokenFlowTest.java
|
|
||||||
/Users/maddy/Projects/matrix/cygnus-cloud-service/src/test/java/com/cygnus/cloud/system/SystemInfoControllerTest.java
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,130 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.cloud.InfrastructureConfigurationTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.766 s <<< FAILURE! -- in com.cygnus.cloud.InfrastructureConfigurationTest
|
|
||||||
com.cygnus.cloud.InfrastructureConfigurationTest.communicationInfrastructureStartsWithoutOpeningExternalConnections -- Time elapsed: 0.001 s <<< ERROR!
|
|
||||||
java.lang.IllegalStateException: Failed to load ApplicationContext for [ReactiveWebMergedContextConfiguration@5c7c22ce testClass = com.cygnus.cloud.InfrastructureConfigurationTest, locations = [], classes = [com.cygnus.cloud.CygnusCloudServiceApplication], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["cygnus.security.enabled=false", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@6ad6443, org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@545d2560, org.springframework.boot.test.http.client.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@46bb0bdf, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7ceb6c45, org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@723742b2, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@605d3a8b], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
|
|
||||||
at org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
|
|
||||||
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
|
|
||||||
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:156)
|
|
||||||
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
|
|
||||||
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
|
|
||||||
at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:242)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|
|
||||||
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
|
|
||||||
at java.base/java.util.Optional.orElseGet(Optional.java:364)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
Caused by: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:423)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:409)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:613)
|
|
||||||
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:379)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:306)
|
|
||||||
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1013)
|
|
||||||
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:69)
|
|
||||||
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
|
|
||||||
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
|
|
||||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$2(SpringBootContextLoader.java:155)
|
|
||||||
at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
|
|
||||||
at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
|
|
||||||
at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:155)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
|
|
||||||
... 21 more
|
|
||||||
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start Netty
|
|
||||||
at org.springframework.boot.reactor.netty.NettyWebServer.start(NettyWebServer.java:140)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.WebServerManager.start(WebServerManager.java:55)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:41)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:420)
|
|
||||||
... 41 more
|
|
||||||
Caused by: reactor.netty.ChannelBindException: Failed to bind on [0.0.0.0:0]
|
|
||||||
Suppressed: java.lang.Exception: #block terminated with an error
|
|
||||||
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:145)
|
|
||||||
at reactor.core.publisher.Mono.block(Mono.java:1800)
|
|
||||||
at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:160)
|
|
||||||
at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:145)
|
|
||||||
at org.springframework.boot.reactor.netty.NettyWebServer.startHttpServer(NettyWebServer.java:188)
|
|
||||||
at org.springframework.boot.reactor.netty.NettyWebServer.start(NettyWebServer.java:123)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.WebServerManager.start(WebServerManager.java:55)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:41)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:420)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:409)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:613)
|
|
||||||
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:379)
|
|
||||||
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:306)
|
|
||||||
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1013)
|
|
||||||
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
|
|
||||||
at org.springframework.boot.web.server.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:69)
|
|
||||||
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
|
|
||||||
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
|
|
||||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$2(SpringBootContextLoader.java:155)
|
|
||||||
at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
|
|
||||||
at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
|
|
||||||
at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:155)
|
|
||||||
at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
|
|
||||||
at org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
|
|
||||||
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
|
|
||||||
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
|
|
||||||
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:156)
|
|
||||||
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
|
|
||||||
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
|
|
||||||
at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:242)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
|
|
||||||
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
|
|
||||||
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
|
|
||||||
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
|
|
||||||
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
|
|
||||||
at java.base/java.util.Optional.orElseGet(Optional.java:364)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
Caused by: java.net.SocketException: Operation not permitted
|
|
||||||
at java.base/sun.nio.ch.Net.bind0(Native Method)
|
|
||||||
at java.base/sun.nio.ch.Net.bind(Net.java:565)
|
|
||||||
at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:344)
|
|
||||||
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:301)
|
|
||||||
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:148)
|
|
||||||
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:431)
|
|
||||||
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1353)
|
|
||||||
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:500)
|
|
||||||
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:994)
|
|
||||||
at io.netty.channel.Channel.bind(Channel.java:302)
|
|
||||||
at reactor.netty.transport.TransportConnector.lambda$null$0(TransportConnector.java:93)
|
|
||||||
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:148)
|
|
||||||
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:141)
|
|
||||||
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:535)
|
|
||||||
at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:201)
|
|
||||||
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1195)
|
|
||||||
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
|
|
||||||
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
|
|
||||||
at java.base/java.lang.Thread.run(Thread.java:1583)
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.cloud.identity.service.IdentityAuthenticationServiceTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 21.33 s <<< FAILURE! -- in com.cygnus.cloud.identity.service.IdentityAuthenticationServiceTest
|
|
||||||
com.cygnus.cloud.identity.service.IdentityAuthenticationServiceTest.rejectsInactiveUserWithoutLoadingMenu -- Time elapsed: 21.32 s <<< ERROR!
|
|
||||||
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader$1.invoke(PluginLoader.java:85)
|
|
||||||
at jdk.proxy2/jdk.proxy2.$Proxy46.isTypeMockable(Unknown Source)
|
|
||||||
at org.mockito.internal.util.MockUtil.typeMockabilityOf(MockUtil.java:78)
|
|
||||||
at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
|
|
||||||
at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:275)
|
|
||||||
at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:236)
|
|
||||||
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:82)
|
|
||||||
at org.mockito.Mockito.mock(Mockito.java:2198)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:79)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25)
|
|
||||||
at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44)
|
|
||||||
at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72)
|
|
||||||
at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:62)
|
|
||||||
at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47)
|
|
||||||
at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81)
|
|
||||||
at org.mockito.internal.framework.DefaultMockitoSession.<init>(DefaultMockitoSession.java:43)
|
|
||||||
at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83)
|
|
||||||
at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:160)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
Caused by: java.lang.IllegalStateException: Internal problem occurred, please report it. Mockito is unable to load the default implementation of class that is a part of Mockito distribution. Failed to load interface org.mockito.plugins.MockMaker
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:105)
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.getDefaultPlugin(DefaultMockitoPlugins.java:79)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:75)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:49)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:29)
|
|
||||||
at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:26)
|
|
||||||
at org.mockito.internal.MockitoCore.<clinit>(MockitoCore.java:71)
|
|
||||||
at org.mockito.Mockito.<clinit>(Mockito.java:1777)
|
|
||||||
at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:156)
|
|
||||||
... 2 more
|
|
||||||
Caused by: java.lang.reflect.InvocationTargetException
|
|
||||||
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
|
|
||||||
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:103)
|
|
||||||
... 10 more
|
|
||||||
Caused by: org.mockito.exceptions.base.MockitoInitializationException:
|
|
||||||
Could not initialize inline Byte Buddy mock maker.
|
|
||||||
|
|
||||||
It appears as if your JDK does not supply a working agent attachment mechanism.
|
|
||||||
Java : 21
|
|
||||||
JVM vendor name : Microsoft
|
|
||||||
JVM vendor version : 21.0.8+9-LTS
|
|
||||||
JVM name : OpenJDK 64-Bit Server VM
|
|
||||||
JVM version : 21.0.8+9-LTS
|
|
||||||
JVM info : mixed mode, sharing
|
|
||||||
OS name : Mac OS X
|
|
||||||
OS version : 26.5.2
|
|
||||||
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<init>(InlineDelegateByteBuddyMockMaker.java:275)
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.<init>(InlineByteBuddyMockMaker.java:23)
|
|
||||||
... 13 more
|
|
||||||
Caused by: java.lang.IllegalStateException: Could not self-attach to current VM using external process - set a property net.bytebuddy.agent.attacher.dump to dump the process output to a file at the specified location
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.installExternal(ByteBuddyAgent.java:672)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:599)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:579)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:531)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:508)
|
|
||||||
at org.mockito.internal.PremainAttachAccess.getInstrumentation(PremainAttachAccess.java:80)
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<clinit>(InlineDelegateByteBuddyMockMaker.java:138)
|
|
||||||
... 14 more
|
|
||||||
|
|
||||||
com.cygnus.cloud.identity.service.IdentityAuthenticationServiceTest.authenticatesActiveUserAndReturnsStructuredSessionData -- Time elapsed: 0.003 s <<< ERROR!
|
|
||||||
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader$1.invoke(PluginLoader.java:85)
|
|
||||||
at jdk.proxy2/jdk.proxy2.$Proxy46.isTypeMockable(Unknown Source)
|
|
||||||
at org.mockito.internal.util.MockUtil.typeMockabilityOf(MockUtil.java:78)
|
|
||||||
at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
|
|
||||||
at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:275)
|
|
||||||
at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:236)
|
|
||||||
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:82)
|
|
||||||
at org.mockito.Mockito.mock(Mockito.java:2198)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:79)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:28)
|
|
||||||
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:25)
|
|
||||||
at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44)
|
|
||||||
at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72)
|
|
||||||
at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:62)
|
|
||||||
at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47)
|
|
||||||
at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81)
|
|
||||||
at org.mockito.internal.framework.DefaultMockitoSession.<init>(DefaultMockitoSession.java:43)
|
|
||||||
at org.mockito.internal.session.DefaultMockitoSessionBuilder.startMocking(DefaultMockitoSessionBuilder.java:83)
|
|
||||||
at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:160)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
||||||
Caused by: java.lang.IllegalStateException: Internal problem occurred, please report it. Mockito is unable to load the default implementation of class that is a part of Mockito distribution. Failed to load interface org.mockito.plugins.MockMaker
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:105)
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.getDefaultPlugin(DefaultMockitoPlugins.java:79)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:75)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:49)
|
|
||||||
at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:29)
|
|
||||||
at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:26)
|
|
||||||
at org.mockito.internal.MockitoCore.<clinit>(MockitoCore.java:71)
|
|
||||||
at org.mockito.Mockito.<clinit>(Mockito.java:1777)
|
|
||||||
at org.mockito.junit.jupiter.MockitoExtension.beforeEach(MockitoExtension.java:156)
|
|
||||||
... 2 more
|
|
||||||
Caused by: java.lang.reflect.InvocationTargetException
|
|
||||||
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
|
|
||||||
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
|
|
||||||
at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:103)
|
|
||||||
... 10 more
|
|
||||||
Caused by: org.mockito.exceptions.base.MockitoInitializationException:
|
|
||||||
Could not initialize inline Byte Buddy mock maker.
|
|
||||||
|
|
||||||
It appears as if your JDK does not supply a working agent attachment mechanism.
|
|
||||||
Java : 21
|
|
||||||
JVM vendor name : Microsoft
|
|
||||||
JVM vendor version : 21.0.8+9-LTS
|
|
||||||
JVM name : OpenJDK 64-Bit Server VM
|
|
||||||
JVM version : 21.0.8+9-LTS
|
|
||||||
JVM info : mixed mode, sharing
|
|
||||||
OS name : Mac OS X
|
|
||||||
OS version : 26.5.2
|
|
||||||
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<init>(InlineDelegateByteBuddyMockMaker.java:275)
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.<init>(InlineByteBuddyMockMaker.java:23)
|
|
||||||
... 13 more
|
|
||||||
Caused by: java.lang.IllegalStateException: Could not self-attach to current VM using external process - set a property net.bytebuddy.agent.attacher.dump to dump the process output to a file at the specified location
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.installExternal(ByteBuddyAgent.java:672)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:599)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:579)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:531)
|
|
||||||
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:508)
|
|
||||||
at org.mockito.internal.PremainAttachAccess.getInstrumentation(PremainAttachAccess.java:80)
|
|
||||||
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<clinit>(InlineDelegateByteBuddyMockMaker.java:138)
|
|
||||||
... 14 more
|
|
||||||
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.cloud.identity.service.LegacyPasswordVerifierTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 s -- in com.cygnus.cloud.identity.service.LegacyPasswordVerifierTest
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.cloud.security.MachineTokenFlowTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.101 s -- in com.cygnus.cloud.security.MachineTokenFlowTest
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
-------------------------------------------------------------------------------
|
|
||||||
Test set: com.cygnus.cloud.system.SystemInfoControllerTest
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.383 s -- in com.cygnus.cloud.system.SystemInfoControllerTest
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user