Skip to content

Prepare lfguard 0.2.0 policy authoring release - #1

Merged
yongjip merged 1 commit into
mainfrom
codex/lfguard-0.2.0
May 29, 2026
Merged

yongjip merged 1 commit into
mainfrom
codex/lfguard-0.2.0

Conversation

@yongjip

@yongjip yongjip commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Python-native lakeformation_guard.policy authoring with reader(), editor(), table_creator(), and database_creator() templates.
  • Add lfguard generate, generated desired-state metadata, bootstrap/pre-commit/GitHub Actions updates, and generic examples.
  • Tighten LF-Tag assignment scope linting and the partial-column SELECT/mutation guardrail.
  • Update docs, README, changelog, and v0.2.0 release notes for the shorter lfguard CLI and publish path.

Verification

  • PYTHONPATH=src python3 -m unittest discover -s tests
  • PYTHONPYCACHEPREFIX=/tmp/lfguard-pycache PYTHONPATH=src python3 -m compileall -q src
  • git diff --check
  • built lfguard-0.2.0 sdist/wheel
  • twine check
  • installed built wheel and smoke-tested lfguard generate / lfguard check

@yongjip
yongjip merged commit 1e71403 into main May 29, 2026
6 checks passed

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

Copy link
Copy Markdown

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: 1e7140395c

ℹ️ 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".

"""Serializable Lake Formation state used for desired policy and snapshots."""

lf_tags: Tuple[LFTagDefinition, ...] = field(default_factory=tuple)
lf_tag_key_metadata: Tuple[LFTagKeyMetadata, ...] = field(default_factory=tuple)

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 Preserve positional state constructor arguments

For callers that instantiate the exported DesiredState/CurrentState dataclasses positionally (for example DesiredState(tags, assignments, grants)), inserting lf_tag_key_metadata before the existing fields shifts the old resource_tags argument into metadata and the old grants argument into resource tags, often producing broken serialization or plans with missing grants. Add the new optional field after the existing resource_tags and grants fields (or otherwise prevent positional construction) so existing public API calls keep their meaning.

Useful? React with 👍 / 👎.

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