From da669cd76f0b330cd9f76ce0fb834e99ede60663 Mon Sep 17 00:00:00 2001 From: nojaf Date: Thu, 22 Jan 2026 16:14:19 +0100 Subject: [PATCH] Shorten changeset Signed-off-by: nojaf --- .../elasticsearch-auth-extension-point.md | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/.changeset/elasticsearch-auth-extension-point.md b/.changeset/elasticsearch-auth-extension-point.md index 6ece6c4451..e2e1152e65 100644 --- a/.changeset/elasticsearch-auth-extension-point.md +++ b/.changeset/elasticsearch-auth-extension-point.md @@ -3,38 +3,3 @@ --- Added `elasticsearchAuthExtensionPoint` to enable dynamic authentication mechanisms such as bearer tokens with automatic rotation. - -This extension point allows adopters to provide custom auth providers that inject headers per-request, enabling: - -- Bearer token authentication -- Automatic token rotation -- Integration with corporate identity providers - -**Example usage:** - -```typescript -import { createBackendModule } from '@backstage/backend-plugin-api'; -import { elasticsearchAuthExtensionPoint } from '@backstage/plugin-search-backend-module-elasticsearch'; - -export default createBackendModule({ - pluginId: 'search', - moduleId: 'elasticsearch-custom-auth', - register(env) { - env.registerInit({ - deps: { - elasticsearchAuth: elasticsearchAuthExtensionPoint, - }, - async init({ elasticsearchAuth }) { - elasticsearchAuth.setAuthProvider({ - async getAuthHeaders() { - const token = await myTokenService.getToken(); - return { Authorization: `Bearer ${token}` }; - }, - }); - }, - }); - }, -}); -``` - -The auth provider takes precedence over static auth config when set. Note: AWS provider (SigV4) does not support custom auth providers.