@hasna/uptime 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +2 -1
- package/dist/api.js +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cloud-plan.js +1 -1
- package/dist/index.js +2 -2
- package/docs/deployment-metadata.example.json +1 -1
- package/infra/aws/terraform.tfvars.example +1 -1
- package/infra/aws/variables.tf +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.22] - 2026-06-28
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Clarified production hosted-token errors and docs to cover both explicit
|
|
14
|
+
hosted auth production mode and `NODE_ENV=production`.
|
|
15
|
+
- Added built CLI entrypoint regression coverage for packaged hosted startup
|
|
16
|
+
rejecting raw hosted tokens under `NODE_ENV=production`.
|
|
17
|
+
|
|
9
18
|
## [0.1.21] - 2026-06-28
|
|
10
19
|
|
|
11
20
|
### Fixed
|
package/README.md
CHANGED
|
@@ -107,7 +107,8 @@ Hosted tokens can be provided as a single legacy token through
|
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Use scoped JSON for hosted deployments. A single raw hosted token is kept only
|
|
110
|
-
for local compatibility and expands to broad read/write/probe/report scopes
|
|
110
|
+
for local compatibility and expands to broad read/write/probe/report scopes;
|
|
111
|
+
it is rejected when hosted auth mode or `NODE_ENV` is `production`.
|
|
111
112
|
Endpoints that accept request bodies require `content-type: application/json`.
|
|
112
113
|
|
|
113
114
|
## Uptime Semantics
|
package/dist/api.js
CHANGED
|
@@ -4286,7 +4286,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
|
|
|
4286
4286
|
return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
|
|
4287
4287
|
}
|
|
4288
4288
|
if (isHostedProductionMode()) {
|
|
4289
|
-
throw new ApiError(`${source} must be scoped hosted token JSON when
|
|
4289
|
+
throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
|
|
4290
4290
|
}
|
|
4291
4291
|
return [{
|
|
4292
4292
|
token: trimmed,
|
package/dist/cli/index.js
CHANGED
|
@@ -6880,7 +6880,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
|
|
|
6880
6880
|
return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
|
|
6881
6881
|
}
|
|
6882
6882
|
if (isHostedProductionMode()) {
|
|
6883
|
-
throw new ApiError(`${source} must be scoped hosted token JSON when
|
|
6883
|
+
throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
|
|
6884
6884
|
}
|
|
6885
6885
|
return [{
|
|
6886
6886
|
token: trimmed,
|
|
@@ -7014,7 +7014,7 @@ function buildAwsDeploymentPlan(options = {}) {
|
|
|
7014
7014
|
const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
|
|
7015
7015
|
const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
|
|
7016
7016
|
const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
|
|
7017
|
-
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.
|
|
7017
|
+
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
|
|
7018
7018
|
const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
|
|
7019
7019
|
const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
|
|
7020
7020
|
const cluster = `${prefix}-${stage}`;
|
package/dist/cloud-plan.js
CHANGED
|
@@ -21,7 +21,7 @@ function buildAwsDeploymentPlan(options = {}) {
|
|
|
21
21
|
const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
|
|
22
22
|
const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
|
|
23
23
|
const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
|
|
24
|
-
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.
|
|
24
|
+
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
|
|
25
25
|
const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
|
|
26
26
|
const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
|
|
27
27
|
const cluster = `${prefix}-${stage}`;
|
package/dist/index.js
CHANGED
|
@@ -4286,7 +4286,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
|
|
|
4286
4286
|
return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
|
|
4287
4287
|
}
|
|
4288
4288
|
if (isHostedProductionMode()) {
|
|
4289
|
-
throw new ApiError(`${source} must be scoped hosted token JSON when
|
|
4289
|
+
throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
|
|
4290
4290
|
}
|
|
4291
4291
|
return [{
|
|
4292
4292
|
token: trimmed,
|
|
@@ -4420,7 +4420,7 @@ function buildAwsDeploymentPlan(options = {}) {
|
|
|
4420
4420
|
const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
|
|
4421
4421
|
const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
|
|
4422
4422
|
const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
|
|
4423
|
-
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.
|
|
4423
|
+
const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
|
|
4424
4424
|
const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
|
|
4425
4425
|
const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
|
|
4426
4426
|
const cluster = `${prefix}-${stage}`;
|
|
@@ -19,7 +19,7 @@ alb_ingress_cidr_blocks = []
|
|
|
19
19
|
private_subnet_ids = ["subnet-replace-private-a", "subnet-replace-private-b"]
|
|
20
20
|
private_route_table_ids = ["rtb-replace-private"]
|
|
21
21
|
container_image = "123456789012.dkr.ecr.us-east-1.amazonaws.com/open-uptime@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
22
|
-
runtime_package_version = "0.1.
|
|
22
|
+
runtime_package_version = "0.1.22"
|
|
23
23
|
certificate_arn = null
|
|
24
24
|
hosted_zone_id = null
|
|
25
25
|
app_env_secret_arn = "arn:aws:secretsmanager:us-east-1:123456789012:secret:open-uptime/prod/app/env"
|
package/infra/aws/variables.tf
CHANGED
|
@@ -201,7 +201,7 @@ variable "container_image" {
|
|
|
201
201
|
variable "runtime_package_version" {
|
|
202
202
|
description = "Published @hasna/uptime package version that CodeBuild should build into the ECR image."
|
|
203
203
|
type = string
|
|
204
|
-
default = "0.1.
|
|
204
|
+
default = "0.1.22"
|
|
205
205
|
|
|
206
206
|
validation {
|
|
207
207
|
condition = can(regex("^[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$", var.runtime_package_version))
|
package/package.json
CHANGED