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

feat(entities): config store secret #1601

Merged
merged 6 commits into from
Sep 10, 2024
Merged

feat(entities): config store secret #1601

merged 6 commits into from
Sep 10, 2024

Conversation

Leopoldthecoder
Copy link
Member

Summary

Integrate Konnect Vault with Konnect Config Store

KM-445

Resources

@Leopoldthecoder Leopoldthecoder marked this pull request as ready for review September 9, 2024 09:20
@Leopoldthecoder Leopoldthecoder requested review from a team as code owners September 9, 2024 09:20
Comment on lines +405 to +416
const deleteAssociatedConfigStore = async (configStoreId: string): Promise<void> => {
const { apiBaseUrl, app, controlPlaneId } = (props.config as KonnectVaultListConfig)
const url = `${apiBaseUrl}${endpoints.list[app].deleteConfigStore}`
.replace(/{controlPlaneId}/gi, controlPlaneId || '')
.replace(/{id}/gi, configStoreId)
try {
await axiosInstance.delete(url)
} catch (error: any) {
// There is a rare case where more than 1 vaults are linked to the config store (i.e. created via API).
// In this case, the deletion will fail but the UI can safely ignore the error.
}
}
Copy link
Member

Choose a reason for hiding this comment

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

qq: Would we delete the associated config store if a user tries to delete a Konnect vault from the vault detail page as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I think we should. I'll add this logic in the host app.

Copy link
Member

@sumimakito sumimakito left a comment

Choose a reason for hiding this comment

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

Functionally tested the vault and secret picker features and LGTM. Left a non-blocking question.

@Leopoldthecoder Leopoldthecoder merged commit 3fcc3b9 into main Sep 10, 2024
8 checks passed
@Leopoldthecoder Leopoldthecoder deleted the feat/config-store branch September 10, 2024 02:45
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