-
Notifications
You must be signed in to change notification settings - Fork 73
ARNG-720 Bloquear login se o certificado do AGR for diferente do certificado cadastrado #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tmarcorfl
wants to merge
6
commits into
master
Choose a base branch
from
ARNG-720
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d180e6b
ARNG-720: Add fill-registration-agents-certificate-thumbprint.md docu…
tmarcorfl fdacacb
ARNG-720: Add fill-registration-agents-certificate-thumbprint.md in p…
tmarcorfl 107aa51
Merge branch 'master' into ARNG-720
tmarcorfl ba87ed0
ARNG-720: Add article to show how to update to AmpliaRegNg version 7.0.0
tmarcorfl b8678f2
ARNG-720: Add session showing the improvements of AmpliaRegNg version…
tmarcorfl 0d15148
ARNG-720: Add fill-registration-agents-certificate-thumbprint.md in i…
tmarcorfl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.../amplia-reg/on-premises/tool/fill-registration-agents-certificate-thumbprint.md
This file contains hidden or 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,41 @@ | ||
| # Amplia Reg command: **fill-registration-agents-certificate-thumbprint** | ||
|
tmarcorfl marked this conversation as resolved.
|
||
|
|
||
| ## Name | ||
|
|
||
| `fill-registration-agents-certificate-thumbprint` - Fills the certificate thumbprint for registration agents | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```sh | ||
| dotnet Lacuna.AmpliaRegNg.Site.dll [settings] -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| Or, on Docker: | ||
|
|
||
| ```sh | ||
| docker run -i lacunasoftware/ampliareg:x.y.z [settings] -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| > [!IMPORTANT] | ||
| > Replace `x.y.z` above with the version of Amplia Reg you are running | ||
|
|
||
| [!include[About settings](includes/about-settings.md)] | ||
|
|
||
| Options: | ||
|
|
||
| * `--batchsize <batch-size>`: Number of records to process per iteration. Default: 100 | ||
| * `--logfrequency <log-frequency>`: Frequency of progress logging. Default: 100 | ||
|
|
||
| ## Description | ||
|
|
||
| The `fill-registration-agents-certificate-thumbprint` command reads the stored certificates from blob storage for registration | ||
| agents that have a certificate stored but no thumbprint recorded, calculates the thumbprint for each certificate, and persists it. | ||
|
|
||
| > [!IMPORTANT] | ||
| > This command must be run **once** after upgrading to the version that introduced certificate thumbprint validation. | ||
| > Failing to run it will cause registration agents with previously stored certificates to be unable to sign in | ||
| > until their certificate is re-uploaded. | ||
|
|
||
| ## See also | ||
|
|
||
| * [Amplia Reg command-line tool](index.md) | ||
This file contains hidden or 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 hidden or 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,27 @@ | ||
| # Update Amplia Reg from Version 6.x to 7.0 | ||
|
|
||
| ## 1. Before Updating (Brazil Only) | ||
|
|
||
| This command populates the `CertificateThumbprint` column in the `RegistrationAgent` table. | ||
|
|
||
| ## 2. Update Amplia Reg | ||
|
|
||
| Update AmpliaRegNg to version `7.0.0`. Earlier versions **must not** be used. Later versions are **not recommended**. | ||
|
|
||
| ## 3. Migrate Data | ||
|
|
||
| Follow the steps described in [fill-registration-agents-certificate-thumbprint](tool/fill-registration-agents-certificate-thumbprint.md). | ||
|
|
||
| On Linux: | ||
|
|
||
| ```sh | ||
| dotnet Lacuna.AmpliaRegNg.Site.dll -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| On Docker: | ||
|
|
||
| ```sh | ||
| docker run -i lacunasoftware/ampliareg:7.0.0 -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| Make sure to follow the steps described in the referenced article to ensure that no errors occurred during the data migration process. |
This file contains hidden or 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
40 changes: 40 additions & 0 deletions
40
.../amplia-reg/on-premises/tool/fill-registration-agents-certificate-thumbprint.md
This file contains hidden or 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,40 @@ | ||
| # Comando Amplia Reg: `fill-registration-agents-certificate-thumbprint` | ||
|
|
||
| ## Nome | ||
|
|
||
| `fill-registration-agents-certificate-thumbprint` – Preenche a impressão digital (thumbprint) do certificado para os agentes de registro. | ||
|
|
||
| ## Sintaxe | ||
|
|
||
| ```sh | ||
| dotnet Lacuna.AmpliaRegNg.Site.dll [configurações] -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| Ou, no Docker: | ||
|
|
||
| ```sh | ||
| docker run -i lacunasoftware/ampliareg:x.y.z [configurações] -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| > [!IMPORTANT] | ||
| > Substitua `x.y.z` acima pela versão do Amplia Reg que você está utilizando. | ||
|
|
||
| Consulte a documentação de configurações para mais detalhes sobre os parâmetros disponíveis. | ||
|
|
||
| ### Opções | ||
|
|
||
| * `--batchsize <tamanho-do-lote>`: Número de registros processados por iteração. Padrão: `100`. | ||
| * `--logfrequency <frequencia-do-log>`: Frequência de registro do progresso em log. Padrão: `100`. | ||
|
|
||
| ## Descrição | ||
|
|
||
| O comando `fill-registration-agents-certificate-thumbprint` lê os certificados armazenados no blob storage para agentes de registro que possuem um certificado armazenado, mas não têm uma impressão digital (thumbprint) registrada. Em seguida, calcula a thumbprint de cada certificado e a persiste no banco de dados. | ||
|
|
||
| > [!IMPORTANT] | ||
| > Este comando deve ser executado **uma única vez** após a atualização para a versão que introduziu a validação da impressão digital (thumbprint) do certificado. | ||
| > | ||
| > Caso ele não seja executado, os agentes de registro que já possuíam certificados armazenados anteriormente não conseguirão fazer login até que o certificado seja reenviado (upload) novamente. | ||
|
|
||
| ## Veja também | ||
|
|
||
| * Ferramenta de linha de comando do Amplia Reg. |
This file contains hidden or 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 hidden or 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,27 @@ | ||
| # Atualizando o Amplia Reg da versão 6.x para 7.0 | ||
|
|
||
| ## 1. Antes de atualizar (somente Brasil) | ||
|
|
||
| Este comando preenche a coluna CertificateThumbprint da tabela RegistrationAgent. | ||
|
|
||
| ## 2. Atualizar o Amplia Reg | ||
|
|
||
| Atualize o AmpliaRegNg para a versão `7.0.0`. Versões anteriores **não** devem ser usadas. Versões posteriores **não** são recomendadas. | ||
|
|
||
| ## 3. Migrar dados | ||
|
|
||
| Siga os passos de [fill-registration-agents-certificate-thumbprint](tool/fill-registration-agents-certificate-thumbprint.md). | ||
|
|
||
| No Linux: | ||
|
|
||
| ```sh | ||
| dotnet Lacuna.AmpliaRegNg.Site.dll -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| No Docker: | ||
|
|
||
| ```sh | ||
| docker run -i lacunasoftware/ampliareg:7.0.0 -- fill-registration-agents-certificate-thumbprint | ||
| ``` | ||
|
|
||
| Certifique-se de seguir as etapas descritas no artigo mencionado para garantir que não ocorreram erros durante a migração de dados. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.