drodil / backstage-plugin-qeta

Backstage.io plugin for Q&A
https://www.npmjs.com/package/@drodil/backstage-plugin-qeta
MIT License
76 stars 24 forks source link

Migrate to new backstage auth services #167

Closed christianherweg0807 closed 1 month ago

christianherweg0807 commented 1 month ago

Since we updated all of our backstage plugins to the new backend & auth Services. We got an error message from the search-backend-module-qeta:

Someting like: Collating documents for qeta failed: Error: Unable to generate legacy token, no legacy keys are configured in 'backend.auth.keys' or 'backend.auth.externalAccess'

I think this is because you are using still the coreServices.tokenManager instead of coreServices.httpAuth.

https://github.com/drodil/backstage-plugin-qeta/blob/50b6af61d27aba6eaf5148b0f9fbeb6cfb252360/plugins/search-backend-module-qeta/src/module.ts#L18-L38

There is a good migration guide: https://backstage.io/docs/tutorials/auth-service-migration/

Would be wonderful, if we could through away the old auth service & config.

regards Christian

drodil commented 1 month ago

Ah, true, good catch. Other plugins were already migrated to the new backend system. I will make a fix for this, thanks for reporting!

christianherweg0807 commented 1 month ago

Should be just a small change...

drodil commented 1 month ago

Already released in v2.4.1, please try it out 👍

christianherweg0807 commented 1 month ago

LGTM. 👍

Thank you for this blazing fast release.