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

Remove DataStore pluggability #1707

Merged
merged 3 commits into from
Jul 7, 2020

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Jul 6, 2020

See #1650 for background. As part of the fix, extends the PluginInfo interface to include information about whether or not the plugin is built in (to facilitate the newly added check).

Fixes #1650 .

See spiffe#1650 for background. As part of the fix, extends the PluginInfo
interface to include information about whether or not the plugin is
built in (to facilitate the newly added check).

Fixes spiffe#1650

Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
@azdagron azdagron force-pushed the remove-datastore-pluggability branch from e35f02e to 4245f0c Compare July 6, 2020 23:43
mcpherrinm
mcpherrinm previously approved these changes Jul 7, 2020
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

Woo-hoo!

We may point in https://github.com/spiffe/spire/blob/master/doc/plugin_server_datastore_sql.md that it is the only DataStore supported.

p.DataStore = datastore_telemetry.WithMetrics(p.DataStore, config.Metrics)
// The DataStore interface is no longer pluggable (see #1650).
if !p.DataStore.BuiltIn() {
return nil, fmt.Errorf("pluggability for the DataStore is deprecated; only the built-in SQL plugin is supported")
Copy link
Member

Choose a reason for hiding this comment

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

no format needed

Suggested change
return nil, fmt.Errorf("pluggability for the DataStore is deprecated; only the built-in SQL plugin is supported")
return nil, errors.New("pluggability for the DataStore is deprecated; only the built-in SQL plugin is supported")

Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
@azdagron azdagron force-pushed the remove-datastore-pluggability branch from c3d23f7 to 1a8e13e Compare July 7, 2020 15:48
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

🚀

@azdagron azdagron merged commit 06973b5 into spiffe:master Jul 7, 2020
@azdagron azdagron deleted the remove-datastore-pluggability branch July 7, 2020 22:16
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.

[RFC] Deprecate SPIRE DataStore pluggability
3 participants