T-4: M0.4b — Close sb-research.* holdout leak: 403 on dataset /export and ungranted project GETs
This commit is contained in:
parent
420e77f837
commit
7f4d3c7543
4 changed files with 383 additions and 30 deletions
|
|
@ -166,7 +166,8 @@ export function createResearchRoutes(
|
|||
c.json({
|
||||
artifacts: await service.listArtifacts(
|
||||
c.req.param('id'),
|
||||
includeArchived(c.req.query('includeArchived'))
|
||||
includeArchived(c.req.query('includeArchived')),
|
||||
agentScope(c.req.raw)
|
||||
),
|
||||
})
|
||||
);
|
||||
|
|
@ -183,10 +184,12 @@ export function createResearchRoutes(
|
|||
)
|
||||
);
|
||||
app.get('/api/v2/analysis-artifacts/:id', async c =>
|
||||
c.json({ artifact: await service.getArtifact(c.req.param('id')) })
|
||||
c.json({ artifact: await service.getArtifact(c.req.param('id'), agentScope(c.req.raw)) })
|
||||
);
|
||||
app.get('/api/v2/analysis-artifacts/:id/revisions', async c =>
|
||||
c.json({ revisions: await service.listArtifactRevisions(c.req.param('id')) })
|
||||
c.json({
|
||||
revisions: await service.listArtifactRevisions(c.req.param('id'), agentScope(c.req.raw)),
|
||||
})
|
||||
);
|
||||
app.post('/api/v2/analysis-artifacts/:id/revisions', async c =>
|
||||
c.json(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue