Merge pull request #4163 from backstage/freben/integration-config

integration: take over the config
This commit is contained in:
Fredrik Adelöw
2021-01-20 14:41:18 +01:00
committed by GitHub
2 changed files with 84 additions and 87 deletions
-77
View File
@@ -109,81 +109,4 @@ export interface Config {
*/
csp?: { [policyId: string]: string[] | false };
};
/** Configuration for integrations towards various external repository provider systems */
integrations?: {
/** Integration configuration for Azure */
azure?: Array<{
/**
* The hostname of the given Azure instance
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
}>;
/** Integration configuration for BitBucket */
bitbucket?: Array<{
/**
* The hostname of the given Bitbucket instance
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/**
* The base url for the BitBucket API, for example https://api.bitbucket.org/2.0
*/
apiBaseUrl?: string;
/**
* The username to use for authenticated requests.
* @visibility secret
*/
username?: string;
/**
* BitBucket app password used to authenticate requests.
* @visibility secret
*/
appPassword?: string;
}>;
/** Integration configuration for GitHub */
github?: Array<{
/**
* The hostname of the given GitHub instance
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/**
* The base url for the GitHub API, for example https://api.github.com
*/
apiBaseUrl?: string;
/**
* The base url for GitHub raw resources, for example https://raw.githubusercontent.com
*/
rawBaseUrl?: string;
}>;
/** Integration configuration for GitLab */
gitlab?: Array<{
/**
* The hostname of the given GitLab instance
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
}>;
};
}
+84 -10
View File
@@ -15,41 +15,115 @@
*/
export interface Config {
/** Configuration for integrations towards various external repository provider systems */
integrations?: {
/** Integration configuration for Azure */
azure?: Array<{
/** @visibility frontend */
/**
* The hostname of the given Azure instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
}>;
/** Integration configuration for Bitbucket */
bitbucket?: Array<{
/** @visibility frontend */
/**
* The hostname of the given Bitbucket instance
* @visibility frontend
*/
host: string;
/** @visibility frontend */
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/**
* The base url for the Bitbucket API, for example https://api.bitbucket.org/2.0
* @visibility frontend
*/
apiBaseUrl?: string;
/**
* The username to use for authenticated requests.
* @visibility secret
*/
username?: string;
/**
* Bitbucket app password used to authenticate requests.
* @visibility secret
*/
appPassword?: string;
}>;
/** Integration configuration for GitHub */
github?: Array<{
/** @visibility frontend */
/**
* The hostname of the given GitHub instance
* @visibility frontend
*/
host: string;
/** @visibility frontend */
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/**
* The base url for the GitHub API, for example https://api.github.com
* @visibility frontend
*/
apiBaseUrl?: string;
/** @visibility frontend */
/**
* The base url for GitHub raw resources, for example https://raw.githubusercontent.com
* @visibility frontend
*/
rawBaseUrl?: string;
/** GitHub Apps configuration */
apps?: Array<{
/**
* The numeric GitHub App ID
* @visibility frontend
*/
appId: number;
/** @visiblity secret */
/**
* The private key to use for auth against the app
* @visibility secret
*/
privateKey: string;
/** @visiblity secret */
/**
* The secret used for webhooks
* @visibility secret
*/
webhookSecret: string;
/**
* The client ID to use
*/
clientId: string;
/** @visiblity secret */
/**
* The client secret to use
* @visibility secret
*/
clientSecret: string;
}>;
}>;
/** Integration configuration for GitLab */
gitlab?: Array<{
/** @visibility frontend */
/**
* The hostname of the given GitLab instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
}>;
};
}