Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@equinor/fusion-framework-module-app-config
Advanced tools
Fusion module for application config
📦 Module for providing application with config as an service
- http is not required if
IHttpClient
is provided- service-discovery is not required if
IHttpClient
is configure with keyappConfig
in http module
This module should be implemented by the framework and provided by the application framework.
case 1: No reference modules are provided (Framework)
The IAppConfigConfigurator
will not have any default IHttpClient
case 2: HttpModule
and ServiceDiscoveryModule
are provided (App)
Before the configurator is created, the module will check ref modules if http has configured a client,
then if not, try to resolve client from service discovery. The client will be assigned to the IAppConfigConfigurator
case 1: No IHttpClient
is provided (Framework)
HttpModule
IHttpClient
ServiceDiscoveryModule
for clientIAppConfigProvider
which is provided to IAppConfigProvider
;case 2: IHttpClient
is provided (App)
The module will create an IAppConfigProvider
which is provided to IAppConfigProvider
;
🤙🏻 when working within the Fusion eco system none of these configs should be necessary.
import { appConfigModuleKey } from '@equinor/fusion-framework-module-app-config'
modules.http.configureClient(
appConfigModuleKey,
{
baseUri: 'https://foo.bar',
defaultScopes: ['foobar/.default'],
},
(client) => {
client.requestHandler.setHeader('x-api-version', '1.0.0-beta.2');
client.requestHandler.add('logger', console.log);
client.responseHandler.add('logger', console.log);
}
);
config.appConfig.generateUrl = (appKey: string, tag?: string) => {
return `/api/apps/${appKey}/config${tag ? `?tag=${tag}` : ''}`;
}
config.appConfig.selector = async(result: Response): Promise<AppConfig<TEnvironment>> => {
const data = await result.json();
/** custom logic for extracting and normalizing data to valid app config */
return normalizeAppConfigResponseData(data);
}
☢️ Boss mode only, really understand framework before even attempt
class MyCustomClient implements IHttpClient {}
config.appConfig.httpClient = new MyCustomClient
FAQs
Fusion module for application config
The npm package @equinor/fusion-framework-module-app-config receives a total of 0 weekly downloads. As such, @equinor/fusion-framework-module-app-config popularity was classified as not popular.
We found that @equinor/fusion-framework-module-app-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.