Skip to content

Some new users added via SCIM are getting suspended #13588

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

Open
ns-mkusper opened this issue Jun 17, 2024 · 8 comments
Open

Some new users added via SCIM are getting suspended #13588

ns-mkusper opened this issue Jun 17, 2024 · 8 comments
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this. waiting-for-info The issue creator is asked to provide more information.

Comments

@ns-mkusper
Copy link

I am currently running Coder v2.12.1+3fbfb53 with SCIM integration enabled (via OKTA). This integration is working to add and remove users, but I'm finding that new users seem to get suspended after a seemingly-random amount of time (usually in the first 12--24 horus) once they're added. After I un-suspend them it seems that they remain active indefinitely.

I'm not sure what the issue could be, and I don't see anything useful in our Audit log. I'm willing to dig more deeply and perform some additional debugging steps but it's difficult to find what else might be available.

@coder-labeler coder-labeler bot added the waiting-for-info The issue creator is asked to provide more information. label Jun 17, 2024
@kylecarbs
Copy link
Member

This is very odd.

@coadler do we audit all SCIM events? Is there any logging we do that could help?

@coadler
Copy link
Contributor

coadler commented Jun 18, 2024

Is it possible your SCIM provider is marking them as suspended? There shouldn't be anything on our side that would just suspend them..

I'll take a look at the auditing rq

@ns-mkusper
Copy link
Author

I don't see anything on the Okta side besides these users first being added, and their status seems unchanged.

Would it be possible in the Coder logs to see what caused the suspension?

@coadler
Copy link
Contributor

coadler commented Jun 18, 2024

If you have debug logs enabled you should see a post/patch to /scim/v2/Users/{id} if it came through SCIM.

@ns-mkusper
Copy link
Author

I do not have debug logging currently enabled. Let me try and reproduce this issue over the next day or two with debug logging enabled and I'll report back.

@ns-mkusper
Copy link
Author

@coadler I currently have the following set as part of my Coder logging config:

          CODER_VERBOSE=true
          CODER_LOG_FILTER=".*userauth.*|.*groups returned.*|.*scim.*"

We haven't added any users recently so I'll be testing later today manually. If this is insufficient to capture the SCIM events please let me know.

@ns-mkusper
Copy link
Author

@coadler I am not actually seeing any log lines with scim in them after adding this log filter to my coder deployment. I've been adding and removing users but see nothing (neither in the coder server logs or the audit log). Any ideas?

@ns-mkusper
Copy link
Author

@coadler I was able to reproduce this issue a few times but no luck as far as collecting any relevant log data with the added log config I mentioned. Any ideas of what I can do to further troubleshoot this? It has blocked more than a dozen new users for >1 day so far.

@sreya sreya added bug s2 Broken use cases or features (with a workaround). Only humans may set this. labels Jul 29, 2024
@matifali matifali removed the bug label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this. waiting-for-info The issue creator is asked to provide more information.
Projects
None yet
Development

No branches or pull requests

5 participants