Skip to content

Commit 98e5914

Browse files
authored
More broken PR translations reverted (#16691)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
1 parent 5daf4ed commit 98e5914

21 files changed

Lines changed: 542 additions & 537 deletions

File tree

translations/pt-BR/content/developers/webhooks-and-events/securing-your-webhooks.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Protegendo seus webhooks
3-
intro: 'Certifique-se de que seu servidor só esteja recebendo as solicitações esperadas do {% data variables.product.prodname_dotcom %} por motivos de segurança.'
2+
title: Securing your webhooks
3+
intro: 'Ensure your server is only receiving the expected {% data variables.product.prodname_dotcom %} requests for security reasons.'
44
redirect_from:
55
- /webhooks/securing
66
versions:
@@ -11,41 +11,42 @@ versions:
1111

1212

1313

14-
Assim que seu servidor estiver configurado para receber cargas, ele ouvirá qualquer carga enviada para o ponto de extremidade que você configurou. Por motivos de segurança, você provavelmente vai querer limitar os pedidos para aqueles provenientes do GitHub. Existem algumas maneiras de fazer isso. Você poderia, por exemplo, optar por permitir solicitações do endereço IP do GitHub. No entanto, um método muito mais fácil é configurar um token secreto e validar a informação.
14+
Once your server is configured to receive payloads, it'll listen for any payload sent to the endpoint you configured. For security reasons, you probably want to limit requests to those coming from GitHub. There are a few ways to go about this--for example, you could opt to allow requests from GitHub's IP address--but a far easier method is to set up a secret token and validate the information.
1515

1616
{% data reusables.webhooks.webhooks-rest-api-links %}
1717

18-
### Definir seu token secreto
18+
### Setting your secret token
1919

20-
Você precisará configurar seu token secreto em dois lugares: no GitHub e no seu servidor.
20+
You'll need to set up your secret token in two places: GitHub and your server.
2121

22-
Para definir seu token no GitHub:
22+
To set your token on GitHub:
2323

24-
1. Navegue até o repositório onde você está configurando seu webhook.
25-
2. Preencha a caixa de texto do segredo. Use uma string aleatória com alta entropia (por exemplo, pegando a saída de `ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'` no terminal). ![Campo de webhook e token secreto](/assets/images/webhook_secret_token.png)
26-
3. Clique em **Atualizar o webhook**.
24+
1. Navigate to the repository where you're setting up your webhook.
25+
2. Fill out the Secret textbox. Use a random string with high entropy (e.g., by taking the output of `ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'` at the terminal).
26+
![Webhook secret token field](/assets/images/webhook_secret_token.png)
27+
3. Click **Update Webhook**.
2728

28-
Em seguida, configure uma variável de ambiente em seu servidor que armazene este token. Normalmente, isso é tão simples quanto executar:
29+
Next, set up an environment variable on your server that stores this token. Typically, this is as simple as running:
2930

3031
```shell
3132
$ export SECRET_TOKEN=<em>your_token</em>
3233
```
3334

34-
**Nunca** pré-programe o token no seu aplicativo!
35+
**Never** hardcode the token into your app!
3536

36-
### Validar cargas do GitHub
37+
### Validating payloads from GitHub
3738

38-
Quando seu token secreto está definido, {% data variables.product.product_name %} o utiliza para criar uma assinatura de hash com cada carga. Esta assinatura hash está incluída com os cabeçalhos de cada solicitação como {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2. 2" ou currentVersion == "github-ae@latest" %}`X-Hub-Signature-256`{% elsif currentVersion ver_lt "enterprise-server@2.23" %}`X-Hub-Signature`{% endif %}.
39+
When your secret token is set, {% data variables.product.product_name %} uses it to create a hash signature with each payload. This hash signature is included with the headers of each request as {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" or currentVersion == "github-ae@latest" %}`X-Hub-Signature-256`{% elsif currentVersion ver_lt "enterprise-server@2.23" %}`X-Hub-Signature`{% endif %}.
3940

4041
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
4142
{% note %}
4243

43-
**Observação:** Para compatibilidade com versões anteriores, também incluímos o cabeçalho `X-Hub-Signature` gerado usando a função de hash SHA-1. Se possível, recomendamos que você use o cabeçalho `X-Hub-Signature-256` para melhorar a segurança. O exemplo abaixo demonstra o uso do cabeçalho `X-Hub-Signature-256`.
44+
**Note:** For backward-compatibility, we also include the `X-Hub-Signature` header that is generated using the SHA-1 hash function. If possible, we recommend that you use the `X-Hub-Signature-256` header for improved security. The example below demonstrate using the `X-Hub-Signature-256` header.
4445

4546
{% endnote %}
4647
{% endif %}
4748

48-
Por exemplo, se você tem um servidor básico que ouve webhooks, ele poderá ser configurado de forma semelhante a isso:
49+
For example, if you have a basic server that listens for webhooks, it might be configured similar to this:
4950

5051
``` ruby
5152
require 'sinatra'
@@ -57,7 +58,7 @@ post '/payload' do
5758
end
5859
```
5960

60-
O objetivo é calcular um hash usando seu `SECRET_TOKEN` e garantir que o resultado corresponda ao hash de {% data variables.product.product_name %}. {% data variables.product.product_name %} usa um resumo hexadecimal HMAC para calcular o hash. Portanto, você pode reconfigurar o seu servidor para que se pareça mais ou menos assim:
61+
The intention is to calculate a hash using your `SECRET_TOKEN`, and ensure that the result matches the hash from {% data variables.product.product_name %}. {% data variables.product.product_name %} uses an HMAC hex digest to compute the hash, so you could reconfigure your server to look a little like this:
6162

6263
``` ruby
6364
post '/payload' do
@@ -79,10 +80,10 @@ def verify_signature(payload_body)
7980
end{% endif %}
8081
```
8182
82-
A sua linguagem e implementações do servidor podem ser diferentes deste código de exemplo. No entanto, há uma série de aspectos muito importantes a destacar:
83+
Your language and server implementations may differ from this example code. However, there are a number of very important things to point out:
8384
84-
* Não importa qual implementação você usar, a assinatura hash começa com {% if currentVersion == "free-pro-team@latest" ou currentVersion ver_gt "enterprise-server@2. 2" or "github-ae@latest" %}`sha256=`{% elsif currentVersion ver_lt "enterprise-server@2. 3" %}`sha1=`{% endif %}, usando a chave do seu token secreto e o seu texto de carga.
85+
* No matter which implementation you use, the hash signature starts with {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" or "github-ae@latest" %}`sha256=`{% elsif currentVersion ver_lt "enterprise-server@2.23" %}`sha1=`{% endif %}, using the key of your secret token and your payload body.
8586

86-
* Não **se recomenda** usar um operador simples de`==`. Um método como [`secure_compare`][secure_compare] executa uma comparação de strings "tempo constante", o que ajuda a mitigar certos ataques de tempo contra operadores de igualdade regular.
87+
* Using a plain `==` operator is **not advised**. A method like [`secure_compare`][secure_compare] performs a "constant time" string comparison, which helps mitigate certain timing attacks against regular equality operators.
8788

8889
[secure_compare]: http://rubydoc.info/github/rack/rack/master/Rack/Utils.secure_compare

translations/pt-BR/content/github/authenticating-to-github/index.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Autenticar com o GitHub
3-
shortTitle: Autenticação
4-
intro: 'Mantenha sua conta e dados protegidos com recursos como {% if currentVersion != "github-ae@latest" %}autenticação de dois fatores, {% endif %}SSH{% if currentVersion ! "github-ae@latest" %},{% endif %} e verificação de assinatura do commit.'
2+
title: Authenticating to GitHub
3+
shortTitle: Authentication
4+
intro: 'Keep your account and data secure with features like {% if currentVersion != "github-ae@latest" %}two-factor authentication, {% endif %}SSH{% if currentVersion != "github-ae@latest" %},{% endif %} and commit signature verification.'
55
redirect_from:
66
- /categories/56/articles/
77
- /categories/ssh/
@@ -20,7 +20,7 @@ versions:
2020
---
2121

2222

23-
### Índice
23+
### Table of Contents
2424

2525
{% topic_link_in_list /keeping-your-account-and-data-secure %}
2626
{% link_in_list /about-authentication-to-github %}
@@ -35,11 +35,9 @@ versions:
3535
{% link_in_list /reviewing-your-authorized-applications-oauth %}
3636
{% link_in_list /reviewing-your-security-log %}
3737
{% link_in_list /removing-sensitive-data-from-a-repository %}
38-
<!-- if currentVersion == "free-pro-team@latest" -->
3938
{% link_in_list /about-anonymized-image-urls %}
4039
{% link_in_list /about-githubs-ip-addresses %}
4140
{% link_in_list /githubs-ssh-key-fingerprints %}
42-
<!-- endif -->
4341
{% link_in_list /sudo-mode %}
4442
{% link_in_list /preventing-unauthorized-access %}
4543
{% topic_link_in_list /securing-your-account-with-two-factor-authentication-2fa %}
@@ -48,18 +46,14 @@ versions:
4846
{% link_in_list /configuring-two-factor-authentication-recovery-methods %}
4947
{% link_in_list /accessing-github-using-two-factor-authentication %}
5048
{% link_in_list /recovering-your-account-if-you-lose-your-2fa-credentials %}
51-
<!-- if currentVersion == "free-pro-team@latest" -->
5249
{% link_in_list /changing-two-factor-authentication-delivery-methods-for-your-mobile-device %}
5350
{% link_in_list /countries-where-sms-authentication-is-supported %}
54-
<!-- endif -->
5551
{% link_in_list /disabling-two-factor-authentication-for-your-personal-account %}
56-
<!-- if currentVersion == "free-pro-team@latest" -->
5752
{% topic_link_in_list /authenticating-with-saml-single-sign-on %}
5853
{% link_in_list /about-authentication-with-saml-single-sign-on %}
5954
{% link_in_list /authorizing-an-ssh-key-for-use-with-saml-single-sign-on %}
6055
{% link_in_list /authorizing-a-personal-access-token-for-use-with-saml-single-sign-on %}
6156
{% link_in_list /viewing-and-managing-your-active-saml-sessions %}
62-
<!-- endif -->
6357
{% topic_link_in_list /connecting-to-github-with-ssh %}
6458
{% link_in_list /about-ssh %}
6559
{% link_in_list /checking-for-existing-ssh-keys %}
@@ -68,23 +62,17 @@ versions:
6862
{% link_in_list /testing-your-ssh-connection %}
6963
{% link_in_list /working-with-ssh-key-passphrases %}
7064
{% topic_link_in_list /troubleshooting-ssh %}
71-
<!-- if currentVersion == "free-pro-team@latest" -->
7265
{% link_in_list /using-ssh-over-the-https-port %}
73-
<!-- endif -->
7466
{% link_in_list /recovering-your-ssh-key-passphrase %}
75-
<!-- if currentVersion == "free-pro-team@latest" -->
7667
{% link_in_list /deleted-or-missing-ssh-keys %}
77-
<!-- endif -->
7868
{% link_in_list /error-permission-denied-publickey %}
7969
{% link_in_list /error-bad-file-number %}
8070
{% link_in_list /error-key-already-in-use %}
8171
{% link_in_list /error-permission-to-userrepo-denied-to-other-user %}
8272
{% link_in_list /error-permission-to-userrepo-denied-to-userother-repo %}
8373
{% link_in_list /error-agent-admitted-failure-to-sign %}
8474
{% link_in_list /error-ssh-add-illegal-option----k %}
85-
<!-- if currentVersion == "free-pro-team@latest" -->
8675
{% link_in_list /error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok %}
87-
<!-- endif -->
8876
{% link_in_list /error-were-doing-an-ssh-key-audit %}
8977
{% topic_link_in_list /managing-commit-signature-verification %}
9078
{% link_in_list /about-commit-signature-verification %}
Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Atualizar credenciais de acesso do GitHub
3-
intro: 'As credenciais de {% data variables.product.product_name %} incluem{% if currentVersion ! "github-ae@latest" %} não apenas sua senha, mas também{% endif %} os tokens de acesso, Chaves SSH e tokens do aplicativo da API que você usa para se comunicar com {% data variables.product.product_name %}. Se houver necessidade, você mesmo pode redefinir todas essas credenciais de acesso.'
2+
title: Updating your GitHub access credentials
3+
intro: '{% data variables.product.product_name %} credentials include{% if currentVersion != "github-ae@latest" %} not only your password, but also{% endif %} the access tokens, SSH keys, and application API tokens you use to communicate with {% data variables.product.product_name %}. Should you have the need, you can reset all of these access credentials yourself.'
44
redirect_from:
55
- /articles/rolling-your-credentials/
66
- /articles/how-can-i-reset-my-password/
@@ -12,49 +12,51 @@ versions:
1212
---
1313

1414
{% if currentVersion != "github-ae@latest" %}
15-
### Solicitar uma nova senha
15+
### Requesting a new password
1616

17-
1. Para solicitar uma nova senha, acesse {% if currentVersion == "free-pro-team@latest" %}https://{% data variables.product.product_url %}/password_reset{% else %}`https://{% data variables.product.product_url %}/password_reset`{% endif %}.
18-
2. Digite o endereço de e-mail associado à sua conta pessoal do {% data variables.product.product_name %} e clique em **Send password reset email** (Enviar e-mail de redefinição de senha). O e-mail será enviado para o endereço de e-mail de backup, se você tiver um configurado. ![Caixa de diálogo para solicitar e-mail de redefinição de senha](/assets/images/help/settings/password-recovery-email-request.png)
19-
3. Nós enviaremos por e-mail um link para você redefinir sua senha. Clique nele em até 3 horas após o recebimento do e-mail. Se você não receber o e-mail com o link, verifique sua pasta de spam.
20-
4. Depois de clicar no link contido no e-mail, você precisará digitar uma nova senha.![Caixa para recuperar senha](/assets/images/help/settings/password_recovery_page.png)
17+
1. To request a new password, visit {% if currentVersion == "free-pro-team@latest" %}https://{% data variables.product.product_url %}/password_reset{% else %}`https://{% data variables.product.product_url %}/password_reset`{% endif %}.
18+
2. Enter the email address associated with your personal {% data variables.product.product_name %} account, then click **Send password reset email.** The email will be sent to the backup email address if you have one configured.
19+
![Password reset email request dialog](/assets/images/help/settings/password-recovery-email-request.png)
20+
3. We'll email you a link that will allow you to reset your password. You must click on this link within 3 hours of receiving the email. If you didn't receive an email from us, make sure to check your spam folder.
21+
4. After clicking on the link in your email, you'll be asked to enter a new password.
22+
![Password recovery box](/assets/images/help/settings/password_recovery_page.png)
2123

2224
{% tip %}
2325

24-
Para evitar que você perca a senha, sugerimos que você use um gerenciador de senhas seguras, como [LastPass](https://lastpass.com/), [1Password](https://1password.com/), ou [Keeper](https://keepersecurity.com/).
26+
To avoid losing your password in the future, we suggest using a secure password manager, like [LastPass](https://lastpass.com/), [1Password](https://1password.com/), or [Keeper](https://keepersecurity.com/).
2527

2628
{% endtip %}
2729

28-
### Alterar uma senha existente
30+
### Changing an existing password
2931

3032
{% data reusables.repositories.blocked-passwords %}
3133

32-
1. {% data variables.product.signin_link %} para o {% data variables.product.product_name %}.
34+
1. {% data variables.product.signin_link %} to {% data variables.product.product_name %}.
3335
{% data reusables.user_settings.access_settings %}
3436
{% data reusables.user_settings.security %}
35-
4. Em "Change password" (Alterar senha), insira a senha antiga, digite uma nova senha forte e confirme a nova senha. Consulte "[Criar uma senha forte](/articles/creating-a-strong-password)" para obter ajuda sobre esse assunto.
36-
5. Clique em **Update password** (Atualizar senha).
37+
4. Under "Change password", type your old password, a strong new password, and confirm your new password. For help creating a strong password, see "[Creating a strong password](/articles/creating-a-strong-password)"
38+
5. Click **Update password**.
3739

3840
{% tip %}
3941

40-
Para maior segurança, além de alterar a senha, habilite também a autenticação de dois fatores. Consulte [Sobre a autenticação de dois fatores](/articles/about-two-factor-authentication) para ver mais detalhes.
42+
For greater security, enable two-factor authentication in addition to changing your password. See [About two-factor authentication](/articles/about-two-factor-authentication) for more details.
4143

4244
{% endtip %}
4345
{% endif %}
44-
### Atualizar tokens de acesso
46+
### Updating your access tokens
4547

46-
Consulte "[Revisar integrações autorizadas](/articles/reviewing-your-authorized-integrations)" para ver instruções sobre como revisar e excluir tokens de acesso. Para gerar novos tokens de acesso, consulte "[Criar um token de acesso pessoal](/github/authenticating-to-github/creating-a-personal-access-token)."
48+
See "[Reviewing your authorized integrations](/articles/reviewing-your-authorized-integrations)" for instructions on reviewing and deleting access tokens. To generate new access tokens, see "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)."
4749

48-
### Atualizar chaves SSH
50+
### Updating your SSH keys
4951

50-
Consulte "[Revisar as chaves SSH](/articles/reviewing-your-ssh-keys)" para ver instruções sobre como revisar e excluir chaves SSH. Para gerar e adicionar novas chaves SSH, consulte "[Gerar uma chave SSH](/articles/generating-an-ssh-key)".
52+
See "[Reviewing your SSH keys](/articles/reviewing-your-ssh-keys)" for instructions on reviewing and deleting SSH keys. To generate and add new SSH keys, see "[Generating an SSH key](/articles/generating-an-ssh-key)."
5153

52-
### Redefinir tokens da API
54+
### Resetting API tokens
5355

54-
Se você tiver algum aplicativo registrado no {% data variables.product.product_name %}, talvez precise redefinir os tokens OAuth dele. Para obter mais informações, consulte o ponto de extremidade "[Redefinir uma autorização](/rest/reference/apps#reset-an-authorization)".
56+
If you have any applications registered with {% data variables.product.product_name %}, you'll want to reset their OAuth tokens. For more information, see the "[Reset an authorization](/rest/reference/apps#reset-an-authorization)" endpoint.
5557

5658
{% if currentVersion != "github-ae@latest" %}
57-
### Impedir acesso não autorizado
59+
### Preventing unauthorized access
5860

59-
Consulte "[Impedir acesso não autorizado](/articles/preventing-unauthorized-access)" para obter mais dicas sobre como proteger a conta e impedir acesso não autorizado.
61+
For more tips on securing your account and preventing unauthorized access, see "[Preventing unauthorized access](/articles/preventing-unauthorized-access)."
6062
{% endif %}

0 commit comments

Comments
 (0)