Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwarding #92

Closed
wants to merge 2 commits into from
Closed

Forwarding #92

wants to merge 2 commits into from

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jan 28, 2025

Forwarding dispatcher, that supports only decrypt (is "secure source") operation, and simply forwards all requests to some source, like for example 1Password source is.

@cstamas cstamas self-assigned this Jan 28, 2025
@cstamas cstamas requested a review from kwin January 28, 2025 11:44
@kwin
Copy link
Contributor

kwin commented Jan 28, 2025

Looks good in general, however the underlying SPI name MasterSource is no longer fitting here, as this is not only about the source of one master, but about arbitrary secrets. However any change here would require a new major version with backwards incompatibility. I am not sure about the name Forward either, wdyt about MasterSourceLookupDispatcher?

public class ForwardingDispatcher implements Dispatcher, DispatcherMeta {
public static final String NAME = "forwarding";

private static final String CONF_SOURCE = "source";
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't the source already encoded in the prefix? Why bind this dispatcher to a single source instead of leveraging all MasterSource implementations?

@kwin
Copy link
Contributor

kwin commented Jan 30, 2025

I proposed an alternative in #93. Please have a look @cstamas.

@cstamas
Copy link
Member Author

cstamas commented Feb 1, 2025

Superseded by #93

@cstamas cstamas closed this Feb 1, 2025
@cstamas cstamas deleted the forwarding branch February 1, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants