Skip to content

Conversation

@brichet
Copy link
Collaborator

@brichet brichet commented Mar 6, 2025

This PR adds a default connector plugin, storing the password in memory.

The passwords live only during the current session.

@brichet brichet added the enhancement New feature or request label Mar 6, 2025
@brichet brichet force-pushed the in-memory-connector branch from e399ffa to b30dae5 Compare March 6, 2025 16:54
@jtpio
Copy link
Member

jtpio commented Mar 6, 2025

Nice, this looks good.

FYI #2 should include a couple of CI fixes, if that can help.

@brichet brichet force-pushed the in-memory-connector branch from b30dae5 to b948eb4 Compare March 7, 2025 10:11
ids.push(key);
}
});
return { ids, values: [] };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the values contain the actual secrets?

Copy link
Collaborator Author

@brichet brichet Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, but currently it would be useless because of the interface of the SecretManager

list(namespace: string): Promise<string[]>;

async list(namespace: string): Promise<string[]> {
return (await this._connector.list(namespace)).ids;
}

I would be useful if there was a UI displaying all the secrets.
Maybe we can change it now (probably in another PR to also update the SecretManager), to avoid future breaking changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, probably fine either way.

For now the most important is being able to set and get individual secrets.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I updated it and opened #3

@brichet
Copy link
Collaborator Author

brichet commented Mar 7, 2025

Thanks for the review @jtpio

@brichet brichet merged commit 9acc94c into jupyterlab-contrib:main Mar 7, 2025
6 checks passed
@brichet brichet deleted the in-memory-connector branch March 7, 2025 15:57
brichet added a commit to brichet/jupyter-secrets-manager that referenced this pull request Mar 7, 2025
* Add a default connector

* Connector list() method returns also the values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants