Skip to content

fix(qryptinvite): validate quota and TTL env values#93

Open
rissrice2105-agent wants to merge 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/qryptinvite-invalid-env
Open

fix(qryptinvite): validate quota and TTL env values#93
rissrice2105-agent wants to merge 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/qryptinvite-invalid-env

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • ignore non-positive Qrypt invite TTL values so token minting keeps the valid default
  • reject negative invite quotas instead of accidentally treating them as unlimited
  • preserve the documented zero-quota unlimited behavior and add regression coverage

Why

The store intentionally interprets quotas at or below zero as unlimited. Accepting a negative environment value therefore disabled invite limits instead of falling back to the configured default.

Tests

  • go test ./internal/qryptinvite ./internal/store
  • go vet ./internal/qryptinvite ./internal/store
  • git diff --check

The full Windows suite additionally reaches two unrelated platform-specific failures: direct execution of a shell script and symlink creation without the Windows privilege.

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