Skip to content

Commit 4499b3d

Browse files
author
Martin Lopes
authored
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
2 parents f071f00 + 75c4fef commit 4499b3d

File tree

6 files changed

+46
-12
lines changed

6 files changed

+46
-12
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Make sure the Docker container still builds
2+
3+
name: Build Docker image
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches-ignore:
11+
- translations
12+
13+
env:
14+
CI: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out repo
21+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
22+
- name: Build the container
23+
run: docker build .

Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
77
# A temporary image that installs production-only dependencies
88

99
FROM node:14-alpine as installation
10+
RUN apk add --no-cache python make g++
1011
ENV NODE_ENV production
1112
WORKDIR /usr/src/docs
1213
COPY package*.json ./
1314

1415
# Install the project's dependencies
15-
RUN npm ci
16+
RUN npm ci --production
1617

1718
# --------------------------------------------------------------------------------
1819
# BUNDLE IMAGE
1920
# A temporary image that installs dependencies and builds the production-ready front-end bundles.
2021

2122
FROM node:14-alpine as bundles
23+
RUN apk add --no-cache python make g++
24+
ENV NODE_ENV production
2225
WORKDIR /usr/src/docs
2326
# Install the files used to create the bundles
2427
COPY package*.json ./
@@ -27,7 +30,8 @@ COPY stylesheets ./stylesheets
2730
COPY lib ./lib
2831
COPY webpack.config.js ./webpack.config.js
2932
# Install the project's dependencies and build the bundles
30-
RUN npm ci && npm run build
33+
RUN npm ci --production
34+
RUN npm run build
3135

3236
# --------------------------------------------------------------------------------
3337
# MAIN IMAGE
@@ -52,16 +56,23 @@ COPY --chown=node:node --from=bundles /usr/src/docs/dist /usr/src/docs/dist
5256
# We should always be running in production mode
5357
ENV NODE_ENV production
5458

59+
# Use Lunr instead of Algolia
60+
ENV USE_LUNR true
61+
5562
# Copy only what's needed to run the server
5663
COPY --chown=node:node assets ./assets
5764
COPY --chown=node:node content ./content
5865
COPY --chown=node:node data ./data
5966
COPY --chown=node:node includes ./includes
67+
COPY --chown=node:node layouts ./layouts
6068
COPY --chown=node:node lib ./lib
6169
COPY --chown=node:node middleware ./middleware
6270
COPY --chown=node:node translations ./translations
6371
COPY --chown=node:node server.js ./server.js
6472
COPY --chown=node:node package*.json ./
73+
COPY --chown=node:node feature-flags.json ./
6574

75+
EXPOSE 80
6676
EXPOSE 443
77+
EXPOSE 4000
6778
CMD ["node", "server.js"]
3.53 KB
Loading

content/admin/configuration/configuring-data-encryption-for-your-enterprise.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For encryption in transit, {% data variables.product.product_name %} uses Transp
2020

2121
The key that you provide is stored in a hardware security module (HSM) in a key vault that {% data variables.product.company_short %} manages.
2222

23-
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and delete your encryption key. Note that deleting your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
23+
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and disable your encryption key. Note that disabling your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
2424

2525
### Adding or updating an encryption key
2626

@@ -48,24 +48,24 @@ Your 2048 bit RSA private key should be in PEM format, for example in a file cal
4848
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
4949
```
5050

51-
### Deleting your encryption key
51+
### Disabling your encryption key
5252

53-
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by deleting your encryption key.
53+
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by marking your encryption key as disabled.
5454

55-
To unfreeze your enterprise after you've deleted your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
56-
57-
1. To delete your key and disable encryption at rest, use the `DELETE /enterprise/encryption` endpoint.
55+
1. To disable your key and encryption at rest, use the `DELETE /enterprise/encryption` endpoint. This operation does not delete the key permanently.
5856

5957
```shell
6058
curl -X DELETE http(s)://<em>hostname</em>/api/v3/enterprise/encryption
6159
```
6260

63-
2. Optionally, check the status of the delete operation.
61+
2. Optionally, check the status of the delete operation. It takes approximately ten minutes to disable encryption at rest.
6462

6563
```shell
6664
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
6765
```
6866

67+
To unfreeze your enterprise after you've disabled your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
68+
6969
### Further reading
7070

7171
- "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation

lib/rest/static/decorated/github.ae.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6153,7 +6153,7 @@
61536153
}
61546154
],
61556155
"summary": "Disable encryption at rest",
6156-
"description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nDisables encryption at rest and deletes the encryption key. To freeze your enterprise, you can disable encryption at rest. For example, you can freeze your enterprise in the case of a breach. It takes approximately ten minutes to disable encryption at rest. To check the status, use the \"[Get an encryption status](https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status)\" REST API.\n\nTo unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"[Receiving enterprise support](/admin/enterprise-support/receiving-help-from-github-support).\"",
6156+
"description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nMarks your encryption key as disabled and disables encryption at rest. This will freeze your enterprise. For example, you can use this operation to freeze your enterprise in case of a breach. Note: This operation does not delete the key permanently.\n\nIt takes approximately ten minutes to disable encryption at rest. To check the status, use the \"[Get an encryption status](https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status)\" REST API.\n\nTo unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"[Receiving enterprise support](/admin/enterprise-support/receiving-help-from-github-support).\"",
61576157
"operationId": "enterprise-admin/disable-encryption",
61586158
"tags": [
61596159
"enterprise-admin"
@@ -6176,7 +6176,7 @@
61766176
"subcategoryLabel": "Encryption at rest",
61776177
"notes": [],
61786178
"bodyParameters": [],
6179-
"descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Disables encryption at rest and deletes the encryption key. To freeze your enterprise, you can disable encryption at rest. For example, you can freeze your enterprise in the case of a breach. It takes approximately ten minutes to disable encryption at rest. To check the status, use the \"<a href=\"https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status\">Get an encryption status</a>\" REST API.</p>\n<p>To unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"<a href=\"/admin/enterprise-support/receiving-help-from-github-support\">Receiving enterprise support</a>.\"</p>",
6179+
"descriptionHTML": "<p><strong>Warning:</strong> The encryption at rest endpoints are currently in beta and are subject to change.</p>\n<p>Marks your encryption key as disabled and disables encryption at rest. This will freeze your enterprise. For example, you can use this operation to freeze your enterprise in case of a breach. Note: This operation does not delete the key permanently.</p>\n<p>It takes approximately ten minutes to disable encryption at rest. To check the status, use the \"<a href=\"https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status\">Get an encryption status</a>\" REST API.</p>\n<p>To unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"<a href=\"/admin/enterprise-support/receiving-help-from-github-support\">Receiving enterprise support</a>.\"</p>",
61806180
"responses": [
61816181
{
61826182
"httpStatusCode": "202",

lib/rest/static/dereferenced/github.ae.deref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12328,7 +12328,7 @@
1232812328
},
1232912329
"delete": {
1233012330
"summary": "Disable encryption at rest",
12331-
"description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nDisables encryption at rest and deletes the encryption key. To freeze your enterprise, you can disable encryption at rest. For example, you can freeze your enterprise in the case of a breach. It takes approximately ten minutes to disable encryption at rest. To check the status, use the \"[Get an encryption status](https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status)\" REST API.\n\nTo unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"[Receiving enterprise support](/admin/enterprise-support/receiving-help-from-github-support).\"",
12331+
"description": "**Warning:** The encryption at rest endpoints are currently in beta and are subject to change.\n\nMarks your encryption key as disabled and disables encryption at rest. This will freeze your enterprise. For example, you can use this operation to freeze your enterprise in case of a breach. Note: This operation does not delete the key permanently.\n\nIt takes approximately ten minutes to disable encryption at rest. To check the status, use the \"[Get an encryption status](https://docs.github.com/github-ae@latest/rest/reference/enterprise-admin#get-an-encryption-status)\" REST API.\n\nTo unfreeze your enterprise after you've disabled encryption at rest, you must contact Support. For more information, see \"[Receiving enterprise support](/admin/enterprise-support/receiving-help-from-github-support).\"",
1233212332
"operationId": "enterprise-admin/disable-encryption",
1233312333
"tags": [
1233412334
"enterprise-admin"

0 commit comments

Comments
 (0)