Is there any api to save private data(secrets) in store


In jira-server plugin, what is the correct way to store secrets in the database?

In Jira-cloud side, I could see below methods which can be used to achieve this.

export interface ForgeStorageAPI extends StorageAPI {
    getSecret: (key: string) => Promise<any>;
    setSecret: (key: string, value: any) => Promise<void>;
    deleteSecret: (key: string) => Promise<void>;

Is there any similar apis available for jira-server-app as well?

There is no similar API available in Jira server, but you can store any information in the Jira server database by using Active Objects.

1 Like