We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
role
1 parent f6d2fbc commit 9486b37Copy full SHA for 9486b37
src/storage/object.ts
@@ -540,6 +540,10 @@ export class ObjectStorage {
540
return all
541
}, metadata || {})
542
543
+ // security-in-depth: as signObjectUrl could be used as a signing oracle,
544
+ // make sure it's never able to specify a role JWT claim
545
+ delete metadata['role']
546
+
547
const urlParts = url.split('/')
548
const urlToSign = decodeURI(urlParts.splice(3).join('/'))
549
const { secret: jwtSecret } = await getJwtSecret(this.db.tenantId)
0 commit comments