-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jh-multithreading-blurb
- Loading branch information
Showing
41 changed files
with
3,372 additions
and
2,895 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: gha-runner-x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: yarn@4.1.1 | ||
run: | | ||
corepack enable && corepack prepare yarn@4.1.1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- name: Get yarn cache | ||
uses: actions/cache@v4 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-yarn-docs-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ runner.arch }}-yarn-docs- | ||
- name: Install dependencies | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: install --immutable | ||
|
||
- name: Build | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: build | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
||
- name: Lint | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: lint | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Deploy to Dev | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: gha-runner-x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: yarn@4.1.1 | ||
run: | | ||
corepack enable && corepack prepare yarn@4.1.1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- name: Get yarn cache | ||
uses: actions/cache@v4 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-yarn-docs-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ runner.arch }}-yarn-docs- | ||
- name: Install dependencies | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: install --immutable | ||
|
||
- name: Build | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: build | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
credentials_json: '${{ secrets.DOCKER_REGISTRY_WRITER }}' | ||
|
||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
|
||
- name: Docker Build | ||
run: | | ||
gcloud auth configure-docker ${{ secrets.GCLOUD_DOCKER_HOST }} | ||
docker build -t ${{ secrets.GCLOUD_DOCKER_HOST }}/${{ secrets.GCLOUD_PROJECT_ID }}/zt-docker/docs-zerotier-com:${{ github.sha }} . --push | ||
- name: Deploy docs-dev | ||
run: | | ||
curl -s -L -X POST -H 'Accept: application/vnd.github+json' -H 'Authorization: Bearer ${{ secrets.DEPLOY_TOKEN }}' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/zerotier/${{ secrets.INFRA_REPO_NAME }}/dispatches -d '{"event_type": "deploy_docs_dev", "client_payload": {"docker_tag": "${{ github.sha }}", "actor": "${{ github.actor }}"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Deploy Release | ||
runs-on: gha-runner-x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: yarn@4.1.1 | ||
run: | | ||
corepack enable && corepack prepare yarn@4.1.1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- name: Get yarn cache | ||
uses: actions/cache@v4 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-${{ runner.arch }}-yarn-docs-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ runner.arch }}-yarn-docs- | ||
- name: Install dependencies | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: install --immutable | ||
|
||
- name: Build | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: build | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
credentials_json: '${{ secrets.DOCKER_REGISTRY_WRITER }}' | ||
|
||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
|
||
- name: Docker Build | ||
run: | | ||
gcloud auth configure-docker ${{ secrets.GCLOUD_DOCKER_HOST }} | ||
docker build -t ${{ secrets.GCLOUD_DOCKER_HOST }}/${{ secrets.GCLOUD_PROJECT_ID }}/zt-docker/docs-zerotier-com:${{ github.ref_name }} . --push | ||
- name: Deploy docs to prod | ||
run: | | ||
curl -s -L -X POST -H 'Accept: application/vnd.github+json' -H 'Authorization: Bearer ${{ secrets.DEPLOY_TOKEN }}' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/zerotier/${{ secrets.INFRA_REPO_NAME }}/dispatches -d '{"event_type": "deploy_docs_prod", "client_payload": {"docker_tag": "${{ github.ref_name }}", "actor": "${{ github.actor }}"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,8 @@ zerotier-idtool | |
ztdest | ||
ztsrc | ||
SonicWall | ||
Deauthorized | ||
ndppd | ||
SNAT | ||
POSTROUTING | ||
dialup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Audit Logs | ||
description: Audit logs provide visibility into use of the Central dashboard and API. | ||
--- | ||
|
||
:::note | ||
Audit Logs are a paid feature available to Essential and Commercial subscribers. Details about what we charge for and how to manage your subscription are available on the [pricing](/pricing) guide. | ||
|
||
For an overview of current pricing and terms including suggested use cases, please see the [Pricing](https://www.zerotier.com/pricing) page on our website. | ||
::: | ||
|
||
You can view the full history of API requests made through Central to manage your ZeroTier networks using audit logs. We capture logs for the last 30 days of API traffic for every paid Central account, including requests made through both the Central dashboard and our [public API](/api/central). | ||
|
||
To access your logs, scroll down to the Organization section of the [Account](https://my.zerotier.com) page and find the link labeled "Organization Audit Log". | ||
|
||
![audit-log-link](./images/audit-logs-01.png) | ||
|
||
On that page, you can see a list of the recent API requests that impacted any resources (networks, members, account settings) associated with your organization. | ||
|
||
![audit-log-detail](./images/audit-logs-02.png) |
Oops, something went wrong.