1
14
Fork
You've already forked s3mini
1

Support STS Temp Credentials? #1

Open
opened 2026年05月08日 08:05:56 +02:00 by ricky11 · 1 comment

Can this package use sessionTokens and STS keys?

example:

const s3 = new S3mini({
accessKeyId: data.AccessKeyId,
secretAccessKey: data.AccessKeySecret,
sessionToken: data.SecurityToken,
endpoint: 'https://....',
region: 'auto',
});

It seems it can only use fully scoped accesskeys and not temp credentials that require a sessionToken?

Also, has it been tested with Alibaba Cloud , ill do that for you but need it to work with sessionTokens

Can this package use sessionTokens and STS keys? example: const s3 = new S3mini({ accessKeyId: data.AccessKeyId, secretAccessKey: data.AccessKeySecret, sessionToken: data.SecurityToken, endpoint: 'https://....', region: 'auto', }); It seems it can only use fully scoped accesskeys and not temp credentials that require a sessionToken? Also, has it been tested with Alibaba Cloud , ill do that for you but need it to work with sessionTokens

Yes, no sessionTokens so far. It's the first time I see that "feature" unfortunately. But, if you need it and it won't slow down or increase the lib size, I can try to implement it within a few weeks (I'm currently busy) or you can send me PR.

Regarding Alibaba - I haven't tested their S3 implementation, but if they don't change key prefixes like Google does (from amz-* to goo-*), it should be fine. And I would appreciate if you spawn/setup testing bucket for it as well 👍 Let me know what you prefer ...

Yes, no sessionTokens so far. It's the first time I see that "feature" unfortunately. But, if you need it and it won't slow down or increase the lib size, I can try to implement it within a few weeks (I'm currently busy) or you can send me PR. Regarding Alibaba - I haven't tested their S3 implementation, but if they don't change key prefixes like Google does (from amz-* to goo-*), it should be fine. And I would appreciate if you spawn/setup testing bucket for it as well 👍 Let me know what you prefer ...
Sign in to join this conversation.
No Branch/Tag specified
dev
release
v0.9.4
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thinking_tools/s3mini#1
Reference in a new issue
thinking_tools/s3mini
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?