Commit Graph

47 Commits

Author SHA1 Message Date
devmrko
04cca64f10 feat: center DDS demo on sales knowledge authorization 2026-06-30 14:21:39 +09:00
devmrko
188b398dcb [Developer] #570 show vector VPD effective SQL trace 2026-06-30 14:16:42 +09:00
devmrko
cde5266a77 [Developer] #569 plain text vector Top-K probe 2026-06-30 13:23:49 +09:00
devmrko
084c5e59cf docs: clarify DDS bearer context adapter boundary 2026-06-30 13:22:21 +09:00
devmrko
7be7dacd5f docs: trace DDS token grant implementation 2026-06-30 13:20:27 +09:00
devmrko
a5e70bcff1 feat: enforce DDS token access through common grants 2026-06-30 13:20:00 +09:00
devmrko
3a07788e5c [Developer] #567 expose VPD effective SQL trace 2026-06-30 11:40:02 +09:00
devmrko
5c40a9aa33 docs: align DDS token WHERE flow and vector scenario 2026-06-30 11:21:51 +09:00
devmrko
9eccf98e11 docs: clarify independent VPD and DDS demos 2026-06-29 22:14:12 +09:00
devmrko
b8e36732a8 docs #565: align knowledge search language 2026-06-29 20:52:35 +09:00
devmrko
4ba6a57835 feat #565: add vector knowledge ingestion demo 2026-06-29 18:11:16 +09:00
devmrko
908ac9a386 fix #557: guide permission-driven VPD flow 2026-06-29 12:11:25 +09:00
devmrko
fbe3d4682b fix #557: guide permission-driven VPD flow 2026-06-29 07:01:53 +09:00
devmrko
8dc77f87ab fix #547: secure VM deployment behind HTTPS proxy 2026-06-28 23:03:32 +09:00
devmrko
e63b3af653 fix #546: add hermes VM deployment script 2026-06-28 21:12:25 +09:00
devmrko
5d864379bd fix #495: add schema preflight and DDL details 2026-06-26 16:32:38 +09:00
devmrko
cacf7b2bc4 fix #494: add delete impact confirmations 2026-06-26 14:33:25 +09:00
devmrko
c8326f954d fix #493: add effective access matrix 2026-06-26 14:14:22 +09:00
devmrko
210e0bd4d0 fix #492: add token context selection 2026-06-26 13:53:10 +09:00
devmrko
cd7860e253 fix #491: add permission effective preview 2026-06-26 13:32:39 +09:00
devmrko
9f63adeca5 fix #490: align vpd policy apply hierarchy 2026-06-26 10:26:09 +09:00
devmrko
f39cc49021 fix #489: add vpd target filtering 2026-06-26 10:13:45 +09:00
devmrko
a906dd0128 fix #488: improve mobile responsive layout 2026-06-26 09:58:52 +09:00
devmrko
91b03ed952 fix #477: list vpd target objects 2026-06-26 05:34:56 +09:00
devmrko
6e4a306dcd feat #477: show vpd ords control architecture 2026-06-26 05:17:27 +09:00
devmrko
8d2909e589 fix #475: label vpd targets as db objects 2026-06-26 05:12:07 +09:00
devmrko
b64f06d5d5 feat #475: consolidate vpd apply actions 2026-06-26 04:59:21 +09:00
devmrko
62f8abce5f fix #467: move masking grants into permission wizard 2026-06-26 04:51:22 +09:00
devmrko
3629c84861 feat #468: add permission setup wizard 2026-06-26 04:38:20 +09:00
devmrko
4961083f06 feat #467: separate column sensitivity policies 2026-06-25 22:36:33 +09:00
devmrko
d6c7533edd feat #466: add deny permission effect 2026-06-25 22:24:18 +09:00
devmrko
1f924f67de ux #463: streamline MCP reasoning flow 2026-06-25 22:10:21 +09:00
devmrko
8fddf1033e test #462: add VPD predicate injection checks 2026-06-25 22:05:24 +09:00
devmrko
2379e2c9ec feat #461: add operational status dashboard 2026-06-25 21:55:26 +09:00
devmrko
1869fe46a6 ops #460: add SQLcl environment check runbook 2026-06-25 21:45:41 +09:00
devmrko
ab190bf6fa test #459: document edge scenarios and invalid token smoke 2026-06-25 21:43:09 +09:00
devmrko
76227552d7 test #458: automate ORDS VPD regression matrix 2026-06-25 21:40:10 +09:00
devmrko
e347c1bc2f fix #457: align permission rule UI with VPD filters 2026-06-25 21:28:34 +09:00
devmrko
d97dab34bd fix #456: add VPD predicate rule tests 2026-06-25 21:21:48 +09:00
devmrko
cafacfaac1 [Developer] #424 add MCP reasoning tab 2026-06-23 16:03:36 +09:00
devmrko
7b45b3a028 [Developer] #424 implement VPD ORDS backoffice
Refs #424
2026-06-23 11:04:46 +09:00
devmrko
5cc8026538 [Architect] #424 design VPD ORDS backoffice
Refs #424
2026-06-23 10:44:35 +09:00
devmrko
21e7e9a526 Add Redmine/Gitea env placeholders and 2026-06-08 DDS Q&A session note
- .env.example: REDMINE_URL/API_KEY and GITEA_URL/USER/PASSWORD/TOKEN
  placeholders so a fresh clone surfaces the optional tracker/mirror
  hookups without exposing real credentials.
- docs/notes/2026-06-08-dds-qa-session.md: personal session reference
  covering DDS role model, scenario walkthrough, group/DB Link/Data
  Catalog patterns, and the mapping-table vs declarative-DDL decision.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-08 13:03:41 +09:00
devmrko
b7ee325b67 Fix DDS variant E2E + expand DDS capability docs
Real run against ADB 23.26.2.2.0 surfaced two issues:

- END USERs can't be direct grantees of a regular ROLE (ORA-01917).
  Connection privilege must flow through a DATA ROLE — added
  connect_only_role for ddsuser_none so it can authenticate
  without holding any data grant (mirrors VPDUSER_NONE UX).
- DDS Data Grants on top of the shared v_customers_* views silently
  returned 0 rows because the VPD policy on those views evaluates
  1=0 for sessions whose LOGON trigger didn't load the VPD context
  (i.e. all ddsuser_*). Created dedicated DDS-only views
  (v_dds_customers_pg / v_dds_customers_my) so DDS Data Grants are
  the sole authority.

E2E matrix now passes (ddsuser_my MY=17, ddsuser_pg PG=12,
ddsuser_both 12/17, ddsuser_none ORA-00942 on both). Notably DDS
returns ORA-00942 where VPD returned 0 rows — stronger object
hiding.

Expanded docs/05-dds-variant.md with:
- §1.1 capability matrix (End User, Data Role, Data Grant, MAC,
  ORA_END_USER_CONTEXT, OAuth2 federation, End User Context Object,
  ORA_IS_COLUMN_AUTHORIZED, dictionary views)
- §1.2 VPD/RAS-vs-DDS comparison
- §1.3 best-fit scenarios (multi-tenant SaaS, agentic AI, HR/PHI,
  federated identity, compliance)
- §1.4 limitations
- §5 operation-level grant example (manager-only UPDATE salary)
- §8 actual E2E results table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-26 15:44:05 +09:00
devmrko
9702349dbe Add optional Oracle 26ai Deep Data Security variant
Reimplements the same 4-user source-access matrix using Oracle AI
Database 26ai's Deep Data Security (DDS) — VPD's declarative SQL
successor. Coexists with the VPD demo (ddsuser_* / dds_* prefixes,
MAC intentionally not enabled on shared views).

- sql/adb/13_dds_variant.sql: CREATE END USER + CREATE DATA ROLE +
  CREATE DATA GRANT for the same 4-user matrix; row-filter and
  column-mask variants shown as commented examples.
- docs/05-dds-variant.md: prereqs (23.26.2+, COMPATIBLE>=20.0),
  VPD <-> DDS 1:1 mapping table, run + teardown snippets.
- .env.example: DDSUSER_*_PASSWORD block (3b).
- README.md: tree + "더 깊이" link.

Not wired into run.sh — kept manual since DDS requires 26ai.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-26 15:25:08 +09:00
devmrko
ed91306ee3 Pivot scenario from region-based 2 users to source-based 4 users
Replaces the original APAC-vs-all 2-user demo (vpduser_a/b on
KR_ANALYSTS/GLOBAL_ADMINS groups) with a 2x2 source-access matrix:

  vpduser_my    -> MY_ONLY      group  -> MySQL view only
  vpduser_pg    -> PG_ONLY      group  -> Postgres view only
  vpduser_both  -> BOTH_SOURCES group  -> both views
  vpduser_none  -> (no group)          -> nothing (default deny)

Why: source-level segmentation is the more common production
permission story than region-level filtering. Region filtering
remains available as an opt-in variant via commented UPDATE in
sql/adb/03_seed.sql.

Key changes:
- 03_seed.sql, 07_end_users.sql, 00_cleanup.sql, .env.example,
  run.sh updated for the new 4-user model. All 4 users get
  identical view GRANTs; the only differentiator is the
  permission table (proves the model is "data-driven, not
  GRANT-driven").
- 08-11 split into one file per user: my (+ 5 bypass attempts),
  pg, both, none (default-deny verification).
- 12_tests_admin_audit.sql uses LEFT JOIN so vpduser_none shows
  up as NULL permissions, and filters by object_owner=USER to
  exclude cross-schema policies.
- Removed inline "-- comment" after ";" lines in 03_seed.sql:
  SQL*Plus silently skipped the inserts (documented gotcha).
- README.md + docs/01,02 updated for the 4-user matrix. docs/03
  detailed guide keeps the region-filter example but now has a
  preface explaining it's a variant of the default 4-user model.
- docs/04: db_type='mysql_community' note added (RDS MySQL).

E2E verified: PG=0/MY=17, PG=12/MY=0, PG=12/MY=17, PG=0/MY=0
plus all 5 bypass attempts blocked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-26 14:42:11 +09:00
devmrko
68d53dc5a9 Initial commit — VPD Permission POC (clone-and-go)
ADB-centered row-level access control across heterogeneous DB sources
(AWS RDS Postgres + MySQL) using Oracle VPD + Data Redaction +
Secure Application Context, packaged as a one-click demo.

Mechanism:
- LOGON trigger calls ctx_pkg.init once per session to load the user's
  allowed regions from the permission mapping tables into a Secure App
  Context (VPD_CTX, USING ctx_pkg).
- VPD policy function vpd_region_filter reads SYS_CONTEXT and returns
  an IN-list predicate (or '1=0' for fail-closed, NULL for '*'),
  which Oracle injects into every SELECT on the protected views.
- Data Redaction reuses the same context to mask PII (email, full_name)
  when the allowed-regions value is not '*'.
- 5 documented bypass attempts (direct DB link SELECT, SET_CONTEXT
  spoof, DBMS_RLS drop, mapping table SELECT) all blocked by GRANT
  scoping + DEFINER rights on ctx_pkg.

One-click entrypoint:
- ./run.sh {prereq|source|adb|tests|audit|all|teardown}
- Source DDL (Postgres + MySQL customers + 12-row seed each) is
  applied via local psql/mysql; ADB-side setup via sqlplus with .env
  values injected as SQL*Plus DEFINE substitutions.

Verified E2E on ADB 26ai + AWS RDS PG + RDS MySQL (mysql_community
gateway) on 2026-05-26: VPDUSER_A sees only APAC rows (PG 2 / MySQL 6,
PII masked), VPDUSER_B sees all (PG 12 / MySQL 17, PII unmasked).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-26 14:03:32 +09:00