Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow-list model and parsing #19850

Closed
Closed
Assignees
ThomasK33
@ThomasK33

Description

@ThomasK33

Description

  • Support optional allow-lists that restrict the scope of application to specific resources. Accept values*:*,<resource_type>:*, and<resource_type>:<uuid>.
  • Normalize/validate on input; store as strings inallow_list column.

Progress

Remaining work

  • Implement parsing/normalization from user-provided strings (e.g.,workspace:<uuid>,template:*,*:*) into the typed representation with validation and helpful errors.
  • Enforce size limits and deduplication; normalize wildcard forms.
  • Integrate parsing in API handlers and CLI/UI; persist normalized string form in DB.
  • Document the final format in admin and API docs.

Key files/areas

  • Parsing/validation helpers incoderd/rbac/ (new package or file, e.g.,allowlist.go).
  • Reuse/refactor existing allow-list mechanics from workspace agent tokens where practical.

Acceptance criteria

  • Unit tests cover parsing, normalization, wildcard handling, and invalid input rejection.
  • Large lists are rejected or capped by a sane limit (config or constant).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp