-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backend] Fix Cross-site Scripting (XSS) & Fix Server-Side Request Fo…
…rgery
- Loading branch information
1 parent
354cec4
commit 1002ad4
Showing
3 changed files
with
135 additions
and
4 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
openbas-api/src/main/java/io/openbas/utils/AgentUtils.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,20 @@ | ||
package io.openbas.utils; | ||
|
||
import io.openbas.database.model.Endpoint; | ||
import java.util.List; | ||
|
||
public class AgentUtils { | ||
|
||
private AgentUtils() {} | ||
|
||
public static final List<String> AVAILABLE_PLATFORMS = | ||
List.of( | ||
Endpoint.PLATFORM_TYPE.Linux.name().toLowerCase(), | ||
Endpoint.PLATFORM_TYPE.Windows.name().toLowerCase(), | ||
Endpoint.PLATFORM_TYPE.MacOS.name().toLowerCase()); | ||
|
||
public static final List<String> AVAILABLE_ARCHITECTURES = | ||
List.of( | ||
Endpoint.PLATFORM_ARCH.x86_64.name().toLowerCase(), | ||
Endpoint.PLATFORM_ARCH.arm64.name().toLowerCase()); | ||
} |