[Bug]: ExternalVolumeStatus.volume_type demands a prefix of "substrate.io" which we do not own

Open Beginner friendly
#4,129 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@msau42 is already working on this.

Since Nov 26, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go, kubernetes
Domain
api, backend

Research direction

The bad prefix check is in ValidateVolumeType in internal/resources/validate.go, which trims the "substrate.io/" prefix before running validation.IsDNS1123Subdomain. Read that function and find where the prefix constant is used elsewhere before changing it. Done means the accepted prefixes match the maintainers' decision (ate.dev/ and the agent-substrate domains) and the validation tests are updated, though the maintainers still need to confirm which prefixes to accept.

Written by the indexing model from the issue text.

Description

area/api area/storage kind/bug ready-for-pr
What happened?

Auditing code, I found this.

// ValidateVolumeType allows an optional "substrate.io/" prefix, followed by a    
// valid DNS-1123 subdomain.    
func ValidateVolumeType(fldPath *field.Path, volumeType string) field.ErrorList {                                                                                                                                           
    if volumeType == "" {    
        return nil    
    }    
    var errs field.ErrorList    
    for _, msg := range validation.IsDNS1123Subdomain(strings.TrimPrefix(volumeType, "substrate.io/")) {    
        errs = append(errs, field.Invalid(fldPath, volumeType, msg))    
    }    
    return errs    
}    

We do not own that domain

Expected Behavior

It should be "ate.dev/" or "agent-substrate.io/" or "agent-substrate.ai/" -- we almost always use "ate.dev", though.

@msau42 Should we fix this in 1.1 or leave it until the other changes land?

Steps to Reproduce

Look at internal/resources/validate.go

Sandbox Runtime

gVisor (runsc)

Agent Substrate Version / Commit SHA

1.0.1

Kubernetes Version & Environment

k8s 1.37

Host OS & Architecture

Linux

Relevant Logs and Diagnostic Output

Additional Context

No response

Confirmation
  • I have searched existing issues and verified that this is not a duplicate.
  • I have verified that this issue occurs on the latest commit on main.
Dominant language
Go
Stars
8.7k
Forks
969
Avg merge
5d 1h
Merged PRs (30d)
128

Getting set up

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.

More from agent-substrate/substrate

All issues in agent-substrate/substrate

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.