Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Notable changes, newest first. Release notes on GitHub list every commit;
this file collects what users and scripts need to know.

## Unreleased
## 0.23.0 (2026-11-05)

### New

Expand All @@ -24,6 +24,20 @@ this file collects what users and scripts need to know.
scope, which no other scope includes. Any Norcube Monitor scope reads
them.

### Fixes

- Norcube Monitor's help no longer mentions a plan: Monitor is metered, so
`monitors create | update --interval` and `status-pages create` now refer
to your organization's limit.

### Changes for scripts

- `nrc commands -o json`: `service.name` now holds the short product name
(`Backup`, `Billing`, `Monitor`, `Auth`) instead of `Norcube Backup`,
`Norcube Billing`, `Norcube Monitor` and `Norcube Auth`. Match on
`service.key`, which doesn't change. Error messages name products the same
way.

## 0.22.0 (2026-11-04)

### New
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ What it's best at: proving you're never locked in to Norcube Backup. `norcube ba

<sub>Scripted demo with sanitized names: whoami, Backup health, scripting with `-o json --query`, any endpoint with `norcube api`, and your CLI sessions. The tape and stub live in [`demo/`](demo/).</sub>

> **Status**: pre-1.0. Norcube Backup (data sources, backups on demand and downloads, restores, restore tests and their settings, health, policies), LangSync (namespaces, terms, translations, languages, prompts, glossary, API keys, CSV import, audit log, project sync), DomainRadar (domain checks, bulk checks, saved domains, brand monitoring, name generation), Norcube Monitor (uptime, SSL and domain expiry monitors, check history, incidents, alert channels, a CI status gate), Billing (status, subscriptions, usage, invoices, spending caps), organizations, profiles, and `norcube api` for everything else. See the [changelog](CHANGELOG.md).
> **Status**: pre-1.0. Backup (data sources, backups on demand and downloads, restores, restore tests and their settings, health, policies), LangSync (namespaces, terms, translations, languages, prompts, glossary, API keys, CSV import, audit log, project sync), DomainRadar (domain checks, bulk checks, saved domains, brand monitoring, name generation), Monitor (uptime, SSL and domain expiry monitors, check history, incidents, alert channels, a CI status gate), Billing (status, subscriptions, usage, invoices, spending caps), organizations, profiles, and `norcube api` for everything else. See the [changelog](CHANGELOG.md).

## Install

Expand Down
2 changes: 1 addition & 1 deletion internal/auth/citoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func audienceLabel(audience string) string {
}
}
if audience == AudienceCMS { // CI tokens can hold CMS scopes; the CLI has no CMS commands yet
return "Norcube CMS"
return "CMS"
}
return audience
}
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/citoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestCIExchangerErrors(t *testing.T) {
inMsg string
}{
{"revoked token", true, map[string]string{AudienceSnapDB: "backup.read"}, 0, clierr.CodeLoginRequired, clierr.ExitAuth, "invalid, expired or revoked"},
{"no scope for the service", false, map[string]string{}, 0, clierr.CodeInsufficientScope, clierr.ExitAccess, "no scope for Norcube Backup"},
{"no scope for the service", false, map[string]string{}, 0, clierr.CodeInsufficientScope, clierr.ExitAccess, "no scope for Backup"},
{"rate limited", false, nil, http.StatusTooManyRequests, clierr.CodeRateLimited, clierr.ExitRateLimited, "rate limited"},
}
for _, tt := range tests {
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/billing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ func init() {
for k, v := range map[string]string{
"GET /billing/status": `{"status":"grace","graceStartedAt":"2026-10-20T08:00:00Z","graceExpiresAt":"2026-11-03T08:00:00Z"}`,
"GET /billing/services": `[
{"code":"snapdb","name":"Norcube Backup","billingMode":"plans","subscription":{"id":"sub-1","planCode":"backup-team","planName":"Team","status":"active","currentPeriodStart":"2026-10-01T00:00:00Z","currentPeriodEnd":"2026-11-01T00:00:00Z"}},
{"code":"snapdb","name":"Backup","billingMode":"plans","subscription":{"id":"sub-1","planCode":"backup-team","planName":"Team","status":"active","currentPeriodStart":"2026-10-01T00:00:00Z","currentPeriodEnd":"2026-11-01T00:00:00Z"}},
{"code":"domainradar","name":"DomainRadar","billingMode":"metered"}
]`,
"GET /billing/estimate": `{"currentUsage":12.3,"estimatedTotal":31.5,"linearEstimate":29.1,"historicalAverage":27.75,"daysElapsed":12,"daysInMonth":31,"periodStart":"2026-10-01","periodEnd":"2026-10-31"}`,
"GET /billing/free-tier": `{"metrics":[
{"serviceCode":"domainradar","serviceName":"DomainRadar","metricCode":"domainradar.check.rdap","metricName":"RDAP checks","metricType":"usage","unit":"checks","freeTierUnits":1000,"currentUnits":640,"projectedEndOfMonthUnits":1653.33,"previousMonthUnits":900,"overflowProjected":true},
{"serviceCode":"snapdb","serviceName":"Norcube Backup","metricCode":"snapdb.storage","metricName":"Backup storage","metricType":"storage","unit":"GB","freeTierUnits":0,"freeTierUnlimited":false,"currentUnits":2.5,"projectedEndOfMonthUnits":2.5,"previousMonthUnits":2}
{"serviceCode":"snapdb","serviceName":"Backup","metricCode":"snapdb.storage","metricName":"Backup storage","metricType":"storage","unit":"GB","freeTierUnits":0,"freeTierUnlimited":false,"currentUnits":2.5,"projectedEndOfMonthUnits":2.5,"previousMonthUnits":2}
]}`,
"GET /billing/invoices": `{"list":[
{"id":"1042","organizationId":"org-1","periodStart":"2026-09-01T00:00:00Z","periodEnd":"2026-09-30T23:59:59Z","status":"draft","currency":"usd","subtotal":25,"tax":5.25,"total":30.25,"billingName":"Acme Inc","billingCity":"Prague","billingCountryCode":"CZ","billingPostalCode":"11000","billingState":"","billingStreet":"Main 1","billingType":"company"}
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/monitor/monitor_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func addMonitorFlags(cmd *cobra.Command, f *monitorFlags, update bool) {
fl.StringVar(&f.name, "name", "", "New name")
}
fl.StringVar(&f.description, "description", "", "A note on what the monitor is for")
fl.DurationVar(&f.interval, "interval", 0, "How often to check, e.g. 30s, 5m, 1h (default 1m for HTTP, 1h for SSL, 12h for domains; your plan sets the minimum)")
fl.DurationVar(&f.interval, "interval", 0, "How often to check, e.g. 30s, 5m, 1h (default 1m for HTTP, 1h for SSL, 12h for domains; your organization's limit sets the minimum)")
fl.StringVar(&f.fromFile, "from-file", "", "Read the request body as JSON from this file (- for standard input), in the API's shape; no other setting flags then")

fl.StringVar(&f.url, "url", "", "HTTP: the URL to request")
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/monitor/statuspages.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ set", check it with "preview-link", then "publish" it. Every setting is
required: the page's public face is your choice, so nothing is filled in
for you. A boolean takes =false to turn it off.

Your plan limits how many pages an organization has, published or not.`,
Your organization's limit sets how many pages it can have, published or not.`,
Example: ` norcube monitor status-pages create "Acme status" --slug acme --time-zone Europe/Prague --uptime-days 90 --history-days 90 --show-uptime-bars --show-uptime-percent --show-response-time=false --search-indexing`,
Args: cobra.ExactArgs(1),
RunE: cmdutil.Run(func(cmd *cobra.Command, args []string) (any, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"billingMode": "plans",
"code": "snapdb",
"name": "Norcube Backup",
"name": "Backup",
"subscription": {
"currentPeriodEnd": "2026-11-01T00:00:00Z",
"currentPeriodStart": "2026-10-01T00:00:00Z",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Norcube Backup plans Team active 2026-11-01
Backup plans Team active 2026-11-01
DomainRadar metered pay as you go
6 changes: 3 additions & 3 deletions internal/cli/testdata/golden/billing-subscriptions-list.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SERVICE BILLING PLAN STATUS PERIOD_END
Norcube Backup plans Team active 2026-11-01
DomainRadar metered pay as you go
SERVICE BILLING PLAN STATUS PERIOD_END
Backup plans Team active 2026-11-01
DomainRadar metered pay as you go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- billingMode: plans
code: snapdb
name: Norcube Backup
name: Backup
subscription:
currentPeriodEnd: "2026-11-01T00:00:00Z"
currentPeriodStart: "2026-10-01T00:00:00Z"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/testdata/golden/billing-usage-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"previousMonthUnits": 2,
"projectedEndOfMonthUnits": 2.5,
"serviceCode": "snapdb",
"serviceName": "Norcube Backup",
"serviceName": "Backup",
"unit": "GB"
}
]
2 changes: 1 addition & 1 deletion internal/cli/testdata/golden/billing-usage-metrics.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DomainRadar RDAP checks 1000 640 1653.33 900 checks yes
Norcube Backup Backup storage 0 2.5 2.5 2 GB
Backup Backup storage 0 2.5 2.5 2 GB
6 changes: 3 additions & 3 deletions internal/cli/testdata/golden/billing-usage-metrics.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SERVICE METRIC FREE SO_FAR PROJECTED LAST_MONTH UNIT OVER
DomainRadar RDAP checks 1000 640 1653.33 900 checks yes
Norcube Backup Backup storage 0 2.5 2.5 2 GB
SERVICE METRIC FREE SO_FAR PROJECTED LAST_MONTH UNIT OVER
DomainRadar RDAP checks 1000 640 1653.33 900 checks yes
Backup Backup storage 0 2.5 2.5 2 GB
2 changes: 1 addition & 1 deletion internal/cli/testdata/golden/billing-usage-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
previousMonthUnits: 2
projectedEndOfMonthUnits: 2.5
serviceCode: snapdb
serviceName: Norcube Backup
serviceName: Backup
unit: GB
26 changes: 13 additions & 13 deletions internal/cli/testdata/golden/commands-billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"group": true,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"confirm": false,
Expand All @@ -155,7 +155,7 @@
"group": true,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"confirm": false,
Expand All @@ -177,7 +177,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down Expand Up @@ -207,7 +207,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "write",
Expand Down Expand Up @@ -267,7 +267,7 @@
"group": true,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"confirm": false,
Expand All @@ -291,7 +291,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down Expand Up @@ -329,7 +329,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down Expand Up @@ -358,7 +358,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down Expand Up @@ -388,7 +388,7 @@
"group": true,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"confirm": false,
Expand All @@ -411,7 +411,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand All @@ -438,7 +438,7 @@
"group": true,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"confirm": false,
Expand All @@ -461,7 +461,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down Expand Up @@ -491,7 +491,7 @@
"group": false,
"service": {
"key": "billing",
"name": "Norcube Billing",
"name": "Billing",
"audience": "billing"
},
"effect": "read",
Expand Down
26 changes: 13 additions & 13 deletions internal/cli/testdata/golden/commands-billing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: 'See the organization''s billing: status, subscriptions, usage, invoices, spending caps'
usage: norcube billing <command>
wait: false
Expand All @@ -42,7 +42,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show and set the organization's monthly spending caps
usage: norcube billing budget <command>
wait: false
Expand All @@ -68,7 +68,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show the monthly spending caps and alert thresholds
usage: norcube billing budget get
wait: false
Expand Down Expand Up @@ -125,7 +125,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Set the monthly spending caps or alert thresholds
usage: norcube billing budget set [flags]
wait: false
Expand All @@ -143,7 +143,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: List invoices and download them as PDF
usage: norcube billing invoices <command>
wait: false
Expand Down Expand Up @@ -179,7 +179,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Download an invoice as PDF
usage: norcube billing invoices download <invoice-id> [flags]
wait: false
Expand Down Expand Up @@ -208,7 +208,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: List the organization's invoices
usage: norcube billing invoices list
wait: false
Expand Down Expand Up @@ -238,7 +238,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show whether the organization's account is in good standing
usage: norcube billing status
wait: false
Expand All @@ -256,7 +256,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show the organization's subscriptions
usage: norcube billing subscriptions <command>
wait: false
Expand Down Expand Up @@ -286,7 +286,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: List each service's billing and the plan the organization is on
usage: norcube billing subscriptions list
wait: false
Expand All @@ -302,7 +302,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: See this month's usage and what it will cost
usage: norcube billing usage <command>
wait: false
Expand Down Expand Up @@ -332,7 +332,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show this month's charges so far and the estimate for the whole month
usage: norcube billing usage estimate
wait: false
Expand Down Expand Up @@ -362,7 +362,7 @@ commands:
service:
audience: billing
key: billing
name: Norcube Billing
name: Billing
short: Show usage per metric against its free tier
usage: norcube billing usage metrics
wait: false
Expand Down
Loading
Loading