Skip to content

Commit

Permalink
style(security): format security section
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton authored Mar 31, 2021
1 parent f740c0a commit 4858456
Show file tree
Hide file tree
Showing 33 changed files with 61 additions and 54 deletions.
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.basque.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ Garrantzitsua da kontutan edukitzea, proiektu batek `.npmignore` eta `.gitignore
.npmignore fitxategiaren adibidea

```
#probak
# Probak
test
coverage
#eraikitze tresnak
# Eraikitze tresnak
.travis.yml
.jenkins.yml
#ingurunea
# Ingurunea
.env
.config
```

"files" zerrenda package.jsonen erabiltzearen adibidea

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ Para obter uma visão do que o npm publish realmente publicará no registro, o s
### Exemplo de Código
Exemplo de arquivo .npmignore
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

Exemplo uso de uma lista de arquivos no package.json

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.french.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ Il est important de noter que si un projet utilise à la fois des fichiers `.npm
### Exemple de code
Fichier d'exemple .npmignore
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

Exemple d'usage du tableau files de package.json

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.japanese.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ npm publish が実際にレジストリに何をパブリッシュするのか
### コード例
.npmignore file の例
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

package.json 内の files 配列の利用例

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ It is important to note that if a project is utilising both `.npmignore` and `.g
### Code example
Example .npmignore file
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

Example use of files array in package.json

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.polish.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ Ważne jest, aby pamiętać, że jeśli projekt wykorzystuje zarówno pliki `.np
### Przykład kodu
Example .npmignore file
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

Przykład zastosowania tablicy plików w package.json

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
8 changes: 4 additions & 4 deletions sections/security/avoid_publishing_secrets.russian.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
### Пример кода
Example .npmignore file
```
#tests
# Tests
test
coverage
#build tools
# Build tools
.travis.yml
.jenkins.yml
#environment
# Environment
.env
.config
```

Пример использования массива файлов в package.json

```
```json
{
"files" : [
"dist/moment.js",
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.basque.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HTML eta beste web lengoaia batzuek kode egikarigarriarekin nahasten dute edukia

### Kode adibidea: ez jarri fidagarritasunik gabeko daturik zure HTMLan

```javascript
```html
<script>...INOIZ EZ JARRI FIDAGARRIA EZ DEN KODEA HEMEN...</script> zuzenean scriptean

<!--...INOIZ EZ JARRI FIDAGARRIA EZ DEN KODEA HEMEN...--> HTML komentario baten barruan
Expand All @@ -23,7 +23,7 @@ HTML eta beste web lengoaia batzuek kode egikarigarriarekin nahasten dute edukia
### Kode adibidea: datu base batean txerta daitekeen eduki kaltegarria
```javascript
```html
<div>
<b>Komentario bat</b>
<script>
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.brazilian-portuguese.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HTML e outras linguagens da Web combinam conteúdo com código executável - um

### Exemplo de código: não coloque dados não confiáveis ​​no seu HTML

```javascript
```html
<script>...NUNCA COLOQUE DADOS NÃO CONFIÁVEIS AQUI...</script> direto em um script

<!--...NUNCA COLOQUE DADOS NÃO CONFIÁVEIS AQUI...--> dentro de um comentário HTML
Expand All @@ -22,7 +22,7 @@ HTML e outras linguagens da Web combinam conteúdo com código executável - um
### Exemplo de código - Conteúdo mal-intencionado que pode ser injetado em um banco de dados
```javascript
```html
<div>
<b>A pseudo comment to the a post</b>
<script>
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.french.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HTML and other web languages mix content with executable code - a single HTML pa

### Code example - Don't put untrusted data into your HTML

```javascript
```html
<script>...NEVER PUT UNTRUSTED DATA HERE...</script> directly in a script

<!--...NEVER PUT UNTRUSTED DATA HERE...--> inside an HTML comment
Expand All @@ -22,7 +22,7 @@ HTML and other web languages mix content with executable code - a single HTML pa
### Code example - Malicious content that might be injected into a DB
```javascript
```html
<div>
<b>A pseudo comment to the a post</b>
<script>
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HTML and other web languages mix content with executable code - a single HTML pa

### Code example - Don't put untrusted data into your HTML

```javascript
```html
<script>...NEVER PUT UNTRUSTED DATA HERE...</script> directly in a script

<!--...NEVER PUT UNTRUSTED DATA HERE...--> inside an HTML comment
Expand All @@ -22,7 +22,7 @@ HTML and other web languages mix content with executable code - a single HTML pa
### Code example - Malicious content that might be injected into a DB
```javascript
```html
<div>
<b>A pseudo comment to the a post</b>
<script>
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.polish.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HTML i inne języki internetowe mieszają zawartość z kodem wykonywalnym - poj

### Przykład kodu - Nie umieszczaj niezaufanych danych w swoim HTML

```javascript
```html
<script>...NEVER PUT UNTRUSTED DATA HERE...</script> directly in a script

<!--...NEVER PUT UNTRUSTED DATA HERE...--> inside an HTML comment
Expand All @@ -21,7 +21,7 @@ HTML i inne języki internetowe mieszają zawartość z kodem wykonywalnym - poj
### Przykład kodu - złośliwe treści, które mogą zostać wstrzyknięte do bazy danych
```javascript
```html
<div>
<b>A pseudo comment to the a post</b>
<script>
Expand Down
4 changes: 2 additions & 2 deletions sections/security/escape-output.russian.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HTML и другие веб-языки смешивают контент с ис

### Пример кода - не помещайте ненадежные данные в ваш HTML

```javascript
```html
<script>...NEVER PUT UNTRUSTED DATA HERE...</script> directly in a script

<!--...NEVER PUT UNTRUSTED DATA HERE...--> inside an HTML comment
Expand All @@ -22,7 +22,7 @@ HTML и другие веб-языки смешивают контент с ис
### Пример кода - вредоносный контент, который может быть введен в БД
```javascript
```html
<div>
<b>A pseudo comment to the a post</b>
<script>
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.basque.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
3 changes: 2 additions & 1 deletion sections/security/non-root-user.brazilian-portuguese.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ De acordo com o "Princípio do menor privilégio", um usuário/processo deve ser

### Exemplo de código - Criando uma imagem do Docker como não root

```javascript
```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.french.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ According to the 'Principle of least privilege' a user/process must be able to a

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.japanese.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ According to the 'Principle of least privilege' a user/process must be able to a

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.polish.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Zgodnie z „zasadą najmniejszych uprawnień” użytkownik / proces musi mieć

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
1 change: 1 addition & 0 deletions sections/security/non-root-user.russian.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

```dockerfile
FROM node:latest

COPY package.json .
RUN npm install
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion sections/security/ormodmusage.basque.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ db.balances.find({

### Adibidea: SQL injekzioa

```
```sql
SELECT username, firstname, lastname FROM users WHERE id = 'user input';

SELECT username, firstname, lastname FROM users WHERE id = 'evil'input';
Expand Down
2 changes: 1 addition & 1 deletion sections/security/ormodmusage.brazilian-portuguese.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ db.balances.find( { active: true, $where: function() { return obj.credits - obj.

### Exemplo - Injeção SQL

```
```sql
SELECT username, firstname, lastname FROM users WHERE id = 'user input';

SELECT username, firstname, lastname FROM users WHERE id = 'evil'input';
Expand Down
2 changes: 1 addition & 1 deletion sections/security/ormodmusage.french.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ db.balances.find({

### Exemple - injection SQL

```
```sql
SELECT username, firstname, lastname FROM users WHERE id = 'user input';

SELECT username, firstname, lastname FROM users WHERE id = 'evil'input';
Expand Down
2 changes: 1 addition & 1 deletion sections/security/ormodmusage.japanese.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ db.balances.find({

### 例 - SQL インジェクション

```
```sql
SELECT username, firstname, lastname FROM users WHERE id = 'user input';

SELECT username, firstname, lastname FROM users WHERE id = 'evil'input';
Expand Down
Loading

0 comments on commit 4858456

Please sign in to comment.