Skip to content

Commit 215d853

Browse files
authored
Merge pull request #2 from Sentinel-One/jth-05282025
Updates for Python and Go SDK Examples
2 parents 627ee4a + c5220bc commit 215d853

68 files changed

Lines changed: 945 additions & 585 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM mcr.microsoft.com/devcontainers/base:bookworm
22

3-
ARG GO_VERSION=1.23.4
3+
ARG GO_VERSION=1.23.9
4+
ARG NVM_VERSION=0.40.3
45

56
COPY files /
67

@@ -12,7 +13,8 @@ RUN set -xe \
1213

1314
# install Python tools
1415
RUN set -xe \
15-
&& apt install -y python3 python3-pip
16+
&& su - vscode -c "curl -LsSf https://astral.sh/uv/install.sh | sh" \
17+
&& su - vscode -c "uv python install 3.12"
1618

1719
# install Go tools
1820
RUN set -xe \
@@ -27,7 +29,7 @@ RUN set -xe \
2729
# install NodeJS tools
2830
RUN set -xe \
2931
&& cd /tmp \
30-
&& wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh \
32+
&& wget https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh \
3133
&& chmod +x install.sh \
3234
&& mkdir /home/vscode/.nvm \
3335
&& chown -hR vscode /home/vscode \

.devcontainer/devcontainer.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
//"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
77
//"build": {
8-
//"dockerfile": "./Dockerfile"
9-
8+
//"dockerfile": "./Dockerfile"
109
//},
1110
"dockerComposeFile": "./docker-compose.yaml",
1211
"service": "devcontainer",
1312
"workspaceFolder": "/workspaces/s1-integration-examples",
14-
1513
// Features to add to the dev container. More info: https://containers.dev/features.
1614
"features": {
1715
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
@@ -21,13 +19,10 @@
2119
"dockerDashComposeVersion": "v2"
2220
}
2321
},
24-
2522
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2623
// "forwardPorts": [],
27-
2824
// Use 'postCreateCommand' to run commands after the container is created.
2925
"postCreateCommand": "bash .devcontainer/post-create.sh",
30-
3126
// Configure tool-specific properties.
3227
"customizations": {
3328
"vscode": {
@@ -43,15 +38,14 @@
4338
"uctakeoff.vscode-counter",
4439
"ms-azuretools.vscode-docker",
4540
"42Crunch.vscode-openapi",
46-
"Postman.postman-for-vscode"
41+
"Postman.postman-for-vscode",
42+
"ms-python.python"
4743
]
4844
}
4945
}
50-
5146
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
5247
// "remoteUser": "root"
53-
5448
//"runArgs": [
55-
//"--network=host"
49+
//"--network=host"
5650
//]
5751
}

.devcontainer/post-create.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
#!/bin/bash
22

33
git config --global --add safe.directory /workspaces/s1-integration-examples
4-
5-
# copy Nexus SDK files for development
6-
if [ -d ./SDK-examples/nexus-sdk ]; then
7-
# Go Quickstart
8-
cp ./SDK-examples/nexus-sdk/SDK/include/libdfi.h ./quickstart/go/pkg/scanner/nexus/include/
9-
cp ./SDK-examples/nexus-sdk/SDK/lib/linux/arm64/libdfi.so ./quickstart/go/pkg/scanner/nexus/lib/linux/arm64/
10-
cp ./SDK-examples/nexus-sdk/SDK/lib/linux/x64/libdfi.so ./quickstart/go/pkg/scanner/nexus/lib/linux/amd64/
11-
fi

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# general files to ignore
22
.codegpt
33
.DS_Store
4+
.venv
45
dist
5-
6-
# Nexus SDK files
7-
nexus-sdk
8-
libdfi*.*
9-
pyscanner.py
10-
SentinelDFI*.whl

API-UI-Examples/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [v0.5.0] - Released 2025-05-28
9+
10+
### Added
11+
12+
- API Browser example for both Python and Node.js
13+
- Nexus SDK examples for go, Python and Node.js
14+
15+
### Changed
16+
17+
- Refactored the repository for a more consistent layout

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22

33
## Description
44

5-
This repo contains artifacts used by the SentinelOne team in support of our OEM and Embedded business partners. There are a number of projects listed here to help speed the adoption of SentinelOne products in embedded environments.
5+
This repository contains artifacts used by the SentinelOne team in support of our OEM and Strategic Technology partners. There are a number of projects listed here to help speed the adoption of SentinelOne products in embedded and ISV partner environments.
66

7-
## Projects
8-
- [Nexus SDK Examples](./SDK-examples/)
9-
- [API UI Examples](./API-UI-Examples/)
10-
- Lightweight S1 Console Example (WIP)
11-
- On-Prem Console Installer Script (WIP)
7+
## Available Projects
8+
9+
- [API Browser](./api-browser/README.md): A simple web-based utility for browsing, exploring and interacting with the SentinelOne APIs
10+
- [Lightweight Console](./lightweight-console/README.md): A simplified console which interacts with SentinelOne APIs to manage endpoints without complexity
11+
- [Nexus SDK](./nexus-sdk/README.md): Examples for using the Nexus SDK product to embed SentinelOne scanning engine technology into an existing or a new product
12+
13+
## Support Information
14+
15+
The contents of this repository are _**NOT officially supported**_ by SentinelOne in any way, shape or form. The code here is provided as an example of the many capabilities of the SentinelOne products and platform.
16+
17+
To provide feedback, suggestions or to let us know you found a possible bug, please [open a new Issue](https://github.com/sentinel-one/s1-integration-examples/issues) through GitHub.
18+
19+
If you have general questions regarding any of the code in this repository or how to use it, please send a message to [techpartners@sentinelone.com](mailto:techpartners@sentinelone.com?subject=S1%20Integration%20Examples%20Inquiry) with the subject _**S1 Integration Examples Inquiry**_.

SDK-examples/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
-188 KB
Binary file not shown.

SDK-examples/quickstart/go/build/Dockerfile.amd64

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)