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
19 changes: 19 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
"changelog": [
"@fingerprintjs/changesets-changelog-format",
{
"repo": "fingerprintjs/fingerprint-pro-akamai-proxy-integration"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"privatePackages": {
"version": true,
"tag": true
}
}
12 changes: 11 additions & 1 deletion .github/workflows/analyze-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ permissions:
contents: write
jobs:
analyze-commits:
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}
name: Analyze Commits
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
with:
previewNotes: false

preview-changeset:
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}
name: Preview changeset
uses: fingerprintjs/dx-team-toolkit/.github/workflows/preview-changeset-release.yml@v1
with:
pr-title: ${{ github.event.pull_request.title }}
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main

jobs:
release-workflow:
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1
release:
name: 'Build project, run CI checks and publish new release'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-sdk-changesets.yml@v1
with:
appId: ${{ vars.APP_ID }}
runnerAppId: ${{ vars.RUNNER_APP_ID }}
version-command: pnpm exec changeset version
publish-command: pnpm exec changeset publish
language: node
language-version: 18
prepare-command: pnpm build
github-release-files: "dist/terraform/terraform-*.json"
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
RUNNER_APP_PRIVATE_KEY: ${{ secrets.RUNNER_APP_PRIVATE_KEY }}
57 changes: 0 additions & 57 deletions .releaserc.json

This file was deleted.

74 changes: 32 additions & 42 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,57 @@
## [1.0.1](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v1.0.0...v1.0.1) (2026-03-26)
## 1.0.1

### Patch Changes

### Bug Fixes
- supernet error due to ssl mismatch ([0d0c448](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/0d0c44872502439057c24bc1199be0ac711b1128))

* supernet error due to ssl mismatch ([0d0c448](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/0d0c44872502439057c24bc1199be0ac711b1128))
## 1.0.0

## [1.0.0](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v0.3.0...v1.0.0) (2025-04-28)
### Major Changes

- **release:** Integration out of beta

### ⚠ BREAKING CHANGES
### Patch Changes
- **release:** remove beta labels ([75b534e](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/75b534ee648ff11e18593982ed5a0892b5ec5bd1))

* **release:** Integration out of beta
## 0.3.0

### Miscellaneous Chores
### Minor Changes

* **release:** remove beta labels ([75b534e](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/75b534ee648ff11e18593982ed5a0892b5ec5bd1))
- ability to override ProCDN endpoint through property variables ([dc5ed07](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/dc5ed070482de9e1ef4d5f63743b9c632b121a83))
- change proxy secret variable type as sensitive ([247b31a](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/247b31a27460837c0e35e40a854d97ca0f8c21b3))

## [0.3.0](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v0.2.2...v0.3.0) (2025-04-09)
### Patch Changes

- add origin ip acl for dualstack support ([4341b0e](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/4341b0e4a679db465bdef25d264587e7df57686d))
- create edgehostname via IPv6 Compliance ([883f485](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/883f485775c498b56358e01f8b8a73e62da1ea04))
- re-enable deployer for playwright tests ([6752524](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/6752524ad1f846b766f2c966e02aae8121a3db87))
- support for ipv6 ([f57a2b5](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/f57a2b58f628d6271f665077e464288561d60582))

### Features
## 0.2.2

* ability to override ProCDN endpoint through property variables ([dc5ed07](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/dc5ed070482de9e1ef4d5f63743b9c632b121a83))
* change proxy secret variable type as sensitive ([247b31a](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/247b31a27460837c0e35e40a854d97ca0f8c21b3))
### Patch Changes

- prevent invalid regions to be parsed ([b372434](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/b3724341bba1bee128ee8c5136c517836cf957c2))
- update rule template for ip version ([8ea2352](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/8ea2352327e403eef3ee0b40318337db109fa483))

### Bug Fixes
## 0.2.1

* add origin ip acl for dualstack support ([4341b0e](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/4341b0e4a679db465bdef25d264587e7df57686d))
* create edgehostname via IPv6 Compliance ([883f485](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/883f485775c498b56358e01f8b8a73e62da1ea04))
* re-enable deployer for playwright tests ([6752524](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/6752524ad1f846b766f2c966e02aae8121a3db87))
* support for ipv6 ([f57a2b5](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/f57a2b58f628d6271f665077e464288561d60582))
### Patch Changes

## [0.2.2](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v0.2.1...v0.2.2) (2024-09-12)
- ingress api handler forwarding incorrect ip address ([76e2a77](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/76e2a770b9d312f84731346c0becd297761fb589))

## 0.2.0

### Bug Fixes
### Minor Changes

* prevent invalid regions to be parsed ([b372434](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/b3724341bba1bee128ee8c5136c517836cf957c2))
* update rule template for ip version ([8ea2352](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/8ea2352327e403eef3ee0b40318337db109fa483))
- support passing custom api url during build ([7571426](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/75714266eb61c257ec437e077d1779af05cfc525))

## [0.2.1](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v0.2.0...v0.2.1) (2024-04-22)
### Patch Changes

- error on regexp for ingress endpoint query parameters ([efca297](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/efca29723f2f7fdc9247aa65bbbb901d9e91e382))

### Bug Fixes
## 0.1.0

* ingress api handler forwarding incorrect ip address ([76e2a77](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/76e2a770b9d312f84731346c0becd297761fb589))
### Minor Changes

## [0.2.0](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/compare/v0.1.0...v0.2.0) (2024-03-21)


### Features

* support passing custom api url during build ([7571426](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/75714266eb61c257ec437e077d1779af05cfc525))


### Bug Fixes

* error on regexp for ingress endpoint query parameters ([efca297](https://github.com/fingerprintjs/fingerprint-pro-akamai-proxy-integration/commit/efca29723f2f7fdc9247aa65bbbb901d9e91e382))

## [0.1.0](https://github.com/fingerprintjs/fingerprint-pro-akamai-integration-property-rules/compare/v0.0.1...v0.1.0) (2023-11-13)


### Features

* beta version public release ([5c98553](https://github.com/fingerprintjs/fingerprint-pro-akamai-integration-property-rules/commit/5c98553773b97cde3558f79d6e122cb34f7bd73c))
- beta version public release ([5c98553](https://github.com/fingerprintjs/fingerprint-pro-akamai-integration-property-rules/commit/5c98553773b97cde3558f79d6e122cb34f7bd73c))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ These tests are run automatically by the `e2e.yml` workflow on every PR automati
You can use the `--ingress-url` and `--cdn-url` build flags to change URLs that the integration will use for making requests.
This should be only used for local development and not in production.

### How to release a new version
### How to publish

The workflow `release.yml` is responsible for releasing a new version.
We use [changesets](https://github.com/changesets/changesets) for handling release notes. If there are relevant changes, please add them to changeset via `pnpm exec changeset`. You need to run `pnpm install` before doing so.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ This is a quick overview of the installation setup. For detailed step-by-step in
```

3. Go to this repository [latest releases](https://github.com/fingerprintjs/fingerprint-pro-akamai-integration-property-rules/releases/latest) and download these two JSON files:

@JuroUhlar JuroUhlar Apr 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old repo name needs updating? Fix everywhere pls

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. The repo name will be akamai-property-proxy, but this will be handled in a separate PR after the upcoming changes are merged. It's out of scope for this PR. I'll make sure this is fixed in the PR for the repo name change

* `terraform/fingerprint-property-rules.json`
* `terraform/fingerprint-property-variables.json`
* `terraform-fingerprint-property-rules.json`
* `terraform-fingerprint-property-variables.json`
4. Add the files to the `rules` directory of your Terraform project.
5. Reference the files inside your `rules/main.json` file:

Expand All @@ -83,10 +83,10 @@ This is a quick overview of the installation setup. For detailed step-by-step in
"children": [
//...
// Add the downloaded rules file as a child
"#include:fingerprint-property-rules.json"
"#include:terraform-fingerprint-property-rules.json"
],
// Add the downloaded variables file (or merge it with existing variables file)
"variables": "#include:fingerprint-property-variables.json"
"variables": "#include:terraform-fingerprint-property-variables.json"
// ...
}
}
Expand Down Expand Up @@ -120,8 +120,8 @@ If you prefer, you can clone this repository and build the property rules and va
1. Run `pnpm install`.
2. Run `pnpm build --type terraform`. It will generate the following files you can use in your Terraform configuration as described above.

- `dist/terraform/json/fingerprint.json`
- `dist/terraform/json/variables.json`
- `dist/terraform/terraform-fingerprint-property-rules.json`
- `dist/terraform/terraform-fingerprint-property-variables.json`
- `dist/terraform/example.tf`

The JSON files are equivalent to the JSON files available in the [latest releases](https://github.com/fingerprintjs/fingerprint-pro-akamai-integration-property-rules/releases/latest).
Expand Down
19 changes: 12 additions & 7 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const defaults = {
ingressUrl: 'api.fpjs.io',
}

const distPath = path.relative(process.cwd(), 'dist')

export const patchBody = (_args?: PatchBodyArgs) => {
const bodyContent = generatePatchBody({
integrationPath: args['--integration-path'] ?? _args?.integrationPath,
Expand All @@ -40,9 +42,10 @@ export const patchBody = (_args?: PatchBodyArgs) => {
ingressUrl: args['--ingress-url'] ?? _args?.ingressUrl ?? defaults.ingressUrl,
})

fs.mkdirSync(path.relative(process.cwd(), 'dist/patch-body'), { recursive: true })
const patchBodyPath = path.join(distPath, 'patch-body')
fs.mkdirSync(patchBodyPath, { recursive: true })

const bodyPath = path.relative(process.cwd(), 'dist/patch-body/body.json')
const bodyPath = path.join(patchBodyPath, 'body.json')
fs.writeFile(bodyPath, bodyContent, (err) => {
if (err) {
console.error(err)
Expand All @@ -56,10 +59,12 @@ const terraform = () => {
cdnUrl: args['--cdn-url'] ?? defaults.cdnUrl,
ingressUrl: args['--ingress-url'] ?? defaults.ingressUrl,
})
const bodyPath = path.relative(process.cwd(), 'dist/terraform/json/fingerprint-property-rules.json')
const variablesPath = path.relative(process.cwd(), 'dist/terraform/json/fingerprint-property-variables.json')

fs.mkdirSync(path.relative(process.cwd(), 'dist/terraform/json'), { recursive: true })
const terraformPath = path.join(distPath, 'terraform')
fs.mkdirSync(terraformPath, { recursive: true })

const bodyPath = path.join(terraformPath, 'terraform-fingerprint-property-rules.json')
const variablesPath = path.join(terraformPath, 'terraform-fingerprint-property-variables.json')

fs.writeFile(variablesPath, variablesBody, (err) => {
if (err) {
Expand All @@ -68,8 +73,8 @@ const terraform = () => {
}
})

const terraformFilePath = path.relative(process.cwd(), 'assets/example.tf')
const targetPath = path.relative(process.cwd(), 'dist/terraform/example.tf')
const terraformFilePath = path.relative(process.cwd(), path.join('assets', 'example.tf'))
const targetPath = path.join(terraformPath, 'example.tf')
fs.copyFile(terraformFilePath, targetPath, (err) => {
if (err) {
console.error(err)
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Fingerprint Pro Akamai Proxy Integration",
"author": "FingerprintJS, Inc (https://fingerprint.com)",
"license": "MIT",
"private": true,
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
Expand All @@ -20,7 +21,9 @@
"prepare": "husky install"
},
"devDependencies": {
"@changesets/cli": "^2.31.0",
"@commitlint/cli": "^17.6.5",
"@fingerprintjs/changesets-changelog-format": "^0.2.0",
"@fingerprintjs/commit-lint-dx-team": "^0.0.2",
"@fingerprintjs/conventional-changelog-dx-team": "^0.1.0",
"@fingerprintjs/eslint-config-dx-team": "^0.1.0",
Expand Down
Loading
Loading