Can i create virtual instances in zitadel selfhosted?
This comes from the confusion that what should even be the CUSTOM DOMAIN here, and what would be the token be? (from an existing instance?)
https://zitadel.com/docs/apis/resources/system/system-service-create-instance
It seems like virtual instances are a feature of hosted zitadel setup?
ZITADEL Docs
Creates a new instance with all needed setup data
19 Replies
ZITADEL Docs
This guide focuses on the ZITADEL System API. To access the other APIs (Admin, Auth, Management), please checkout this guide.
Haha, yeah through the system api you can manage new instances.
https://github.com/zitadel/zitadel/issues/9494
https://github.com/zitadel/zitadel/issues/7937
@FFO the systemsAPI seems unusable because of this?^ how are people working around this?
GitHub
[Bug]: Token verification failure when accessing system API · Issu...
Preflight Checklist I could not find a solution in the documentation, the existing issues or discussions I have joined the ZITADEL chat Environment Self-hosted Version v2.71.1 Database PostgreSQL D...
GitHub
Use a single token verifier in the auth middleware · Issue #7937 ...
Acceptance criteria Unify the the VerifySystemToken with VerifyAccessToken and return a single error Resolve the different keysources on query level (yaml for system user vs DB for regular user) Or...
used this comment: https://github.com/zitadel/zitadel/issues/7937#issuecomment-2589415764
GitHub
Use a single token verifier in the auth middleware · Issue #7937 ...
Acceptance criteria Unify the the VerifySystemToken with VerifyAccessToken and return a single error Resolve the different keysources on query level (yaml for system user vs DB for regular user) Or...
will try updating the docs related to this
but this still does not work!
is the systemsAPI stable?
The system Api is stable but a little tricky to work with 😄
ZITADEL Docs
This guide focuses on the ZITADEL System API. To access the other APIs (Admin, Auth, Management), please checkout this guide.
That doc should give you pointers, or did that not work?
No I get the error mentioned in the issue:
logs:
API response
This is exactly following the mentioned docs.
added a comment here: https://github.com/zitadel/zitadel/issues/7937#issuecomment-2984903749
GitHub
Use a single token verifier in the auth middleware · Issue #7937 ...
Acceptance criteria Unify the the VerifySystemToken with VerifyAccessToken and return a single error Resolve the different keysources on query level (yaml for system user vs DB for regular user) Or...
How did you create the token, did you use the docs guide?
Just trying to complete the picture on my end whats broken 😄
hold on, I am dropping a reproducible example..
Hi @FFO sorry for the delay, I've updated my comment with all details:
https://github.com/zitadel/zitadel/issues/7937#issuecomment-2984903749
Please let me know if not enough info, will create a complete version which can be runnable
GitHub
Use a single token verifier in the auth middleware · Issue #7937 ...
Acceptance criteria Unify the the VerifySystemToken with VerifyAccessToken and return a single error Resolve the different keysources on query level (yaml for system user vs DB for regular user) Or...
@FFO I was finally able to create it!
The issue was filepath! I had an absolute path, in the config! I corrected the absolute path to the actual absolute path.
So the fix here would be to catch the incorrect path mentioned (i.e if no file actually exists, which was my case, we should be raising that error instead of the JWT related errors we're raising)
Oh wow, is it really that easy 😄
Looking at go
os.ReadFile(s.Path)
should allow absolute and relative :thinkspin:Looking at go os.ReadFile(s.Path) should allow absolute and relative :thinkspin:yes but I had a absolutefilepath which had no actual file, so os.ReadFile ought to throw an error about it but guess that got skipped somehow and we ended up trying to figure the issue at JWT claims level instead of looking at the core issue Thanks for your help!
Ahhhh, we swallow the error somehow
Got it
🙂 Now I have to solve for this:
now I have to solve this reverse proxy issue, I think some header issue it is. Will get this resolved. Really liking zitadel so far!
now I have to solve this reverse proxy issue, I think some header issue it is. Will get this resolved. Really liking zitadel so far!resolved.
yeah the host header is a little a tricky thing 😄
but great you enjoy it so far even with some small kinks