Skip to content

Fix/admin install anon auth#13

Merged
carlosfunk merged 3 commits into
mainfrom
fix/admin-install-anon-auth
Jun 9, 2026
Merged

Fix/admin install anon auth#13
carlosfunk merged 3 commits into
mainfrom
fix/admin-install-anon-auth

Conversation

@carlosfunk

@carlosfunk carlosfunk commented May 29, 2026

Copy link
Copy Markdown
Member

Ran into an issue when trying to use datamasque-cli to to do an admin install, it was requiring auth on a fresh install with no users. /api/users/admin-install/ is anonymous (as is healthcheck).

  • New get_unauthenticated_client() factory
  • admin-install translates a 401 from /api/users/admin-install/ into a clear "already installed" message
  • Also added a "Running dm locally" section to the contributing doc

Ships fine against the current datamasque-python but I also added a small change there to avoid retrying the when the admin-install returns a 401 once its already configured.

Closes #12

@carlosfunk carlosfunk force-pushed the fix/admin-install-anon-auth branch from 060bcb9 to 00a7ca4 Compare June 9, 2026 04:21
@carlosfunk carlosfunk requested a review from kw-datamasque June 9, 2026 04:25
@kw-datamasque

Copy link
Copy Markdown
Collaborator

Would need to bump the pyproject.toml as well for the latest datamasque-python changes

Comment thread src/datamasque_cli/commands/system.py Outdated
Comment thread src/datamasque_cli/commands/system.py Outdated
@kw-datamasque

Copy link
Copy Markdown
Collaborator

Looks good and approved, with a nit and a question

Carl Robben added 3 commits June 10, 2026 10:20
…y installed' cleanly

- New get_unauthenticated_client() factory in client.py; only requires DATAMASQUE_URL (no username/password)
- admin-install and health switch to it; the endpoints themselves are anonymous and shouldn't gate on a token
- admin-install catches 401 from /api/users/admin-install/ and returns ErrorCode.CONFLICT with a clear message

Closes #12
…atamasque-python checkout

- Add 'Running dm locally' section: editable install, env-var vs profile auth
- Add cross-repo editable-install workflow for a sibling datamasque-python checkout
@carlosfunk carlosfunk force-pushed the fix/admin-install-anon-auth branch from 00a7ca4 to 5dfa199 Compare June 9, 2026 22:20
@carlosfunk carlosfunk self-assigned this Jun 9, 2026
@carlosfunk carlosfunk merged commit 63ada0c into main Jun 9, 2026
5 checks passed
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.

admin-install requires credentials

2 participants