Releases: spreadshirt/backstage-plugin-s3
Releases · spreadshirt/backstage-plugin-s3
@spreadshirt/backstage-plugin-s3-viewer@0.2.0
@spreadshirt/backstage-plugin-s3-viewer-common@0.2.0
Minor Changes
- caaac67: Add permissions to plugin
@spreadshirt/backstage-plugin-s3-viewer-backend@0.2.0
Minor Changes
-
aa8f726: BREAKING: The s3-viewer-backend
createRouter
now requires that theidentityApi
,permissionEvaluator
andtokenManager
are passed to the router.These changes are required to
packages/backend/src/plugins/s3.ts
This change makes the requests to the s3 endpoint to be sent by a logged in user.
import { S3Builder } from '@spreadshirt/backstage-plugin-s3-viewer-backend'; import { Router } from 'express'; import { PluginEnvironment } from '../types'; export default async function createPlugin( env: PluginEnvironment, ): Promise<Router> { const { router } = S3Builder.createBuilder({ config: env.config, logger: env.logger, scheduler: env.scheduler, discovery: env.discovery, + identity: env.identity, + permissions: env.permissions, + tokenManager: env.tokenManager, }).build(); return router; }
Also possible to attach a middleware, which will be required to use the permissions in the plugin. For that, use the async function
useMiddleware()
. A custom middleware can also be used if that is needed.
Patch Changes
- Updated dependencies [caaac67]
- @spreadshirt/backstage-plugin-s3-viewer-common@0.2.0
@spreadshirt/backstage-plugin-s3-viewer@0.1.4
@spreadshirt/backstage-plugin-s3-viewer-common@0.1.4
Patch Changes
- 74fef18: Update dependencies to backstage 1.8.2
@spreadshirt/backstage-plugin-s3-viewer-backend@0.1.7
@spreadshirt/backstage-plugin-s3-viewer@0.1.3
@spreadshirt/backstage-plugin-s3-viewer-common@0.1.3
Patch Changes
- 91c40a8: Update dependencies to backstage 1.7.0