Skip to content

core: add core_genesis SQLite table and repository#45

Merged
Undline merged 1 commit intomainfrom
dev
Apr 8, 2026
Merged

core: add core_genesis SQLite table and repository#45
Undline merged 1 commit intomainfrom
dev

Conversation

@Undline
Copy link
Copy Markdown
Contributor

@Undline Undline commented Apr 7, 2026

Migration 007: singleton row for genesis_complete, bootstrap_signing_pubkey_hex, modulr_apex_domain, updated_at — seed for modulr apex trust + wizard completion.

CoreGenesisRepository with validation; tests and package export.

Migration 007: singleton row for genesis_complete, bootstrap_signing_pubkey_hex, modulr_apex_domain, updated_at — seed for modulr apex trust + wizard completion.

CoreGenesisRepository with validation; tests and package export.

Made-with: Cursor
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a82b8c5933

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +37 to +40
d = domain.strip()
if not d:
raise ValueError("modulr_apex_domain must be non-empty when set")
if len(d) > _MODULR_APEX_DOMAIN_MAX_LEN:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Enforce dotted-domain format for apex domain

set_modulr_apex_domain currently accepts any non-empty trimmed string up to 253 chars, so values like "not a domain" or single-label names can be persisted as modulr_apex_domain. Because this field is described as the apex trust domain, storing non-domain values creates invalid persistent state that later policy checks can mis-handle; validate against the existing org-domain rules (dotted DNS-style) before writing.

Useful? React with 👍 / 👎.

@Undline Undline merged commit 425a282 into main Apr 8, 2026
1 check 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.

1 participant