-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#736): prototype of mTLS security scope isolation only to gRPC s…
…ervice
- Loading branch information
tpz
committed
Nov 7, 2024
1 parent
5af649a
commit ca634f6
Showing
8 changed files
with
294 additions
and
7 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
.../src/main/java/io/evitadb/externalApi/exception/ClientCertificateNotAllowedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* | ||
* _ _ ____ ____ | ||
* _____ _(_) |_ __ _| _ \| __ ) | ||
* / _ \ \ / / | __/ _` | | | | _ \ | ||
* | __/\ V /| | || (_| | |_| | |_) | | ||
* \___| \_/ |_|\__\__,_|____/|____/ | ||
* | ||
* Copyright (c) 2024 | ||
* | ||
* Licensed under the Business Source License, Version 1.1 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://github.com/FgForrest/evitaDB/blob/master/LICENSE | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.evitadb.externalApi.exception; | ||
|
||
|
||
import javax.annotation.Nonnull; | ||
import java.io.Serial; | ||
|
||
/** | ||
* Exception is raised when client accesses the API endpoint secured by client certificate (mTLS) with not allowed one | ||
* on the server side. | ||
* | ||
* @author Jan Novotný ([email protected]), FG Forrest a.s. (c) 2024 | ||
*/ | ||
public class ClientCertificateNotAllowedException extends ExternalApiInvalidUsageException { | ||
@Serial private static final long serialVersionUID = 3934858455674566277L; | ||
|
||
public ClientCertificateNotAllowedException(@Nonnull String publicMessage) { | ||
super(publicMessage); | ||
} | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
...src/main/java/io/evitadb/externalApi/exception/ClientCertificateNotProvidedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* | ||
* _ _ ____ ____ | ||
* _____ _(_) |_ __ _| _ \| __ ) | ||
* / _ \ \ / / | __/ _` | | | | _ \ | ||
* | __/\ V /| | || (_| | |_| | |_) | | ||
* \___| \_/ |_|\__\__,_|____/|____/ | ||
* | ||
* Copyright (c) 2024 | ||
* | ||
* Licensed under the Business Source License, Version 1.1 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://github.com/FgForrest/evitaDB/blob/master/LICENSE | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.evitadb.externalApi.exception; | ||
|
||
|
||
import javax.annotation.Nonnull; | ||
import java.io.Serial; | ||
|
||
/** | ||
* Exception is raised when client accesses the API endpoint secured by client certificate (mTLS) without providing it. | ||
* | ||
* @author Jan Novotný ([email protected]), FG Forrest a.s. (c) 2024 | ||
*/ | ||
public class ClientCertificateNotProvidedException extends ExternalApiInvalidUsageException { | ||
@Serial private static final long serialVersionUID = 3934858455674566277L; | ||
|
||
public ClientCertificateNotProvidedException(@Nonnull String publicMessage) { | ||
super(publicMessage); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.