Skip to content
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
52929c4
updated api/envd clients
sitole Apr 7, 2025
b79503c
updated api spec
sitole Apr 17, 2025
5e5a6e7
added support for secure flag to javascript sdk
sitole Apr 17, 2025
4da4abe
support for sandbox re-connecting
sitole Apr 17, 2025
f46605a
test running command in secured envd
sitole Apr 17, 2025
f387572
fixed schema names after regenerated client
sitole Apr 17, 2025
6399f14
tests for secured envd access
sitole Apr 22, 2025
a8c8093
inject access token to request if connection is secured
sitole Apr 22, 2025
b1c0e58
regenerated opanapi schema
sitole Apr 30, 2025
0f527c6
javascript sbx connect test
sitole Apr 30, 2025
455a563
python sdk adjustments, test for sbx connect with secured envd
sitole Apr 30, 2025
3b35e03
typo fix
sitole Apr 30, 2025
523adf9
prefixed node module
sitole May 12, 2025
be75094
refreshed openapi schema
sitole May 13, 2025
b07999c
disable keep alive for now
sitole May 13, 2025
5a6a367
format
sitole May 13, 2025
507f224
parse json for integration tests responses
sitole May 13, 2025
add67ca
data container for listed sandboxes
sitole May 13, 2025
8bacc14
separated signature generation, added tests for signing
sitole May 13, 2025
cffb639
python linted
sitole May 13, 2025
e16d133
data class for listed sandbox
sitole May 13, 2025
3c57ae3
removed unused method for request headers
sitole May 13, 2025
0703bb0
call sbx get for connect inside init method
sitole May 13, 2025
5657e77
test python sdk with connect to running secured sandbox
sitole May 13, 2025
048d134
add always random dir for tests
sitole May 13, 2025
1f496fa
download/upload url signing
sitole May 13, 2025
5b9215c
client id in javascript list sandbox deprecated
sitole May 13, 2025
05fa41d
added missing props to listed sandbox dataclass
sitole May 13, 2025
8502603
fixed
sitole May 13, 2025
748ee64
union fixes
sitole May 13, 2025
9973833
added changeset
sitole May 13, 2025
df2ff5f
removed sandbox state that is not yet public
sitole May 14, 2025
041495f
envd access token marked as private
sitole May 14, 2025
11d24c4
inject auth headers directly into grcp pool so we donte need to assig…
sitole May 14, 2025
5a7c538
unused import
sitole May 14, 2025
1361f0d
simplified headers inject
sitole May 14, 2025
21b6dff
gp
sitole May 14, 2025
5a66fd1
Revert "removed sandbox state that is not yet public"
sitole May 14, 2025
37b6d9c
auth headers for fs operation
sitole May 14, 2025
332155c
Merge branch 'main' into api-support-for-start-sandbox-with-envd-auth…
jakubno May 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/brave-clocks-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@e2b/python-sdk': minor
'e2b': minor
---

Added ability to secure communication with sandbox envd
2 changes: 1 addition & 1 deletion packages/cli/src/commands/sandbox/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const listCommand = new commander.Command('list')
})

export async function listSandboxes(): Promise<
e2b.components['schemas']['RunningSandbox'][]
e2b.components['schemas']['ListedSandbox'][]
> {
ensureAPIKey()

Expand Down
127 changes: 109 additions & 18 deletions packages/js-sdk/src/api/schema.gen.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/js-sdk/src/envd/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ class EnvdApiClient {
readonly version: string | undefined

constructor(
config: Pick<ConnectionConfig, 'apiUrl' | 'logger'>,
config: Pick<ConnectionConfig, 'apiUrl' | 'logger' | 'accessToken'> & { fetch?: (request: Request) => ReturnType<typeof fetch>, headers?: Record<string, string> },
metadata: {
version?: string
}
},
) {
this.api = createClient({
baseUrl: config.apiUrl,
fetch: config?.fetch,
headers: config?.headers,
// keepalive: true, // TODO: Return keepalive
})
this.version = metadata.version
Expand Down
Loading