Skip to content
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

Extract embedded secrets and make them configurable #30

Merged
merged 15 commits into from
Feb 20, 2024
Merged

Conversation

Ndpnt
Copy link
Member

@Ndpnt Ndpnt commented Feb 15, 2024

  • Extract embedded secrets and make them configurable
  • Remove the insecure SSH option used to clone repositories, which disabled protection against Man-in-the-Middle attacks.
  • No longer force the use of the OTA-Bot's SSH key to connect to GitHub.com at server level, it's now done at the command level
  • Move the installation of the OTA-Bot's SSH key from the infrastructure role to the engine role, where it is actually used.
  • Simplify the setup of snapshots and versions repositories by using the ansible builtin Git module

@Ndpnt Ndpnt force-pushed the externalize-secrets branch from bf00369 to 8e71cf4 Compare February 15, 2024 16:23
@Ndpnt Ndpnt marked this pull request as ready for review February 15, 2024 17:01
Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love the switch to using Ansible's built-in git!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
tests/inventory.yml Outdated Show resolved Hide resolved
roles/engine/tasks/main.yml Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
roles/infrastructure/git/files/.gitconfig Show resolved Hide resolved
README.md Outdated
@@ -168,6 +234,8 @@ Then the code can be deployed to the running machine with all the options descri

### Test collection

_The testing environment is preconfigured for Open Terms Archive maintainers. For other contributors, the configuration file `tests/engine_config.json` needs to be updated to specify repositories where they have authorizations. Additionally, the `ota_engine_github_bot_private_key` value in the inventory file `tests/inventory.yml` should be updated._

Test locally the changes to the collection before opening a pull request:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a missing command or sentence here? 🤔

Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job, congrats! 👏

README.md Outdated
@@ -168,6 +234,8 @@ Then the code can be deployed to the running machine with all the options descri

### Test collection

_The testing environment is preconfigured for Open Terms Archive maintainers. For other contributors, the configuration file `tests/engine_config.json` needs to be updated to specify repositories where they have authorizations. Additionally, the `ota_engine_github_bot_private_key` value in the inventory file `tests/inventory.yml` should be updated._
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the need to use italic 🙂

@Ndpnt Ndpnt merged commit ac709b4 into main Feb 20, 2024
1 check passed
@Ndpnt Ndpnt deleted the externalize-secrets branch February 20, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants