osbuild / osbuild/image-builder

Unify osbuild stage path validation

Open
#1,399 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
77
Forks
103
Avg merge
3d 6h
Merged PRs (30d)
53

Description

There are many stage options that represent filesystem paths. We don't always verify them and even when we do, we use slightly different regular expressions to validate them.

Create a single path validation regex and use a common function to validate all osbuild stage options that are meant to match filesystem paths.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the osbuild stage option definitions and the existing regular expressions used for filesystem paths. Trace which path-valued options are currently validated, then confirm that every such option uses one shared regex and validation function. Done means path validation is consistent across all applicable stage options.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, operating-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.