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

Unique constraint failed on namespace name when registering clients using OIDC #814

Closed
juanfont opened this issue Sep 20, 2022 · 3 comments
Labels
bug Something isn't working stale

Comments

@juanfont
Copy link
Owner

juanfont commented Sep 20, 2022

When registering multiple clients at the same time using OIDC we might break the UNIQUE constraint on namespace name:

From oidc.go:

	namespace, err := h.GetNamespace(namespaceName)
	if errors.Is(err, ErrNamespaceNotFound) {
		namespace, err = h.CreateNamespace(namespaceName)

		if err != nil {
			log.Error().
				Err(err).
				Caller().
				Msgf("could not create new namespace '%s'", namespaceName)

I reckon this is a bit of a edge case in our integration tests, but seems to be there.

@juanfont juanfont added the bug Something isn't working label Sep 20, 2022
juanfont pushed a commit that referenced this issue Sep 20, 2022
juanfont pushed a commit that referenced this issue Sep 21, 2022
@kradalby
Copy link
Collaborator

Is this still relevant with the new integration tests?

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 180 days with no activity.

@github-actions github-actions bot added the stale label Oct 17, 2023
Copy link
Contributor

github-actions bot commented Nov 1, 2023

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants