Using the documentation, I defined configuration for my plugin.
Here is the config.d.ts
export interface Config {
/**
* The configuration parameters for the Catalog Insights backend
*/
catalogInsights: {
/**
* The configuration parameters for Kubernetes
*/
k8s: Record<
string,
{
/**
* The service account token
* @visibility secret
*/
token: string;
/**
* The API endpoint of the target Kubernetes cluster
*/
api: string;
}
>;
};
}
The token is not treated as a secret. How do I fix this?
This became obvious to me after trying @backstage/plugin-devtools; I do not believe the problem is with this plugin.
Documentation: https://backstage.io/docs/conf/defining
DevTools plugin: https://github.com/backstage/backstage/tree/master/plugins/devtools