Skip to content

fix install codesphere#300

Open
OliverTrautvetter wants to merge 11 commits intomainfrom
fix_install_codesphere
Open

fix install codesphere#300
OliverTrautvetter wants to merge 11 commits intomainfrom
fix_install_codesphere

Conversation

@OliverTrautvetter
Copy link
Copy Markdown
Member

@OliverTrautvetter OliverTrautvetter commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates installer/bootstrap logic to avoid regenerating PostgreSQL TLS assets unnecessarily and fixes vault rewriting behavior by extracting secrets into a fresh vault, with added validation and regression tests.

Changes:

  • Switch vault writing to use RootConfig.ExtractVault() (avoids duplicate secret entries on re-write).
  • Add ValidateCertKeyPair and enforce cert/key validation during secret generation and GCP bootstrap updates.
  • Add tests covering cert/key validation and bootstrap “re-run” scenarios.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
NOTICE Updates dependency/version entries and license URLs.
internal/tmpl/NOTICE Mirrors NOTICE dependency/version updates in the template.
internal/installer/crypto.go Adds ValidateCertKeyPair helper using tls.X509KeyPair.
internal/installer/crypto_test.go Adds tests for matching/mismatched/invalid cert+key inputs.
internal/installer/config_manager.go Writes vault from a freshly extracted vault instead of mutating existing vault.
internal/installer/config_manager_test.go Extends mock FileIO + adds tests for vault de-dup and bootstrap re-run simulation.
internal/installer/config_manager_secrets.go Validates generated Postgres cert/key pairs.
internal/bootstrap/gcp/install_config.go Avoids regenerating Postgres certs unless inputs changed or key missing; validates pairs when generated.
internal/bootstrap/gcp/install_config_test.go Adds coverage for “ExistingConfigUsed” certificate regeneration rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: OliverTrautvetter <66372584+OliverTrautvetter@users.noreply.github.com>
@OliverTrautvetter OliverTrautvetter marked this pull request as ready for review April 10, 2026 08:30
Copy link
Copy Markdown
Member

@joka134 joka134 left a comment

Choose a reason for hiding this comment

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

Nice! Left a few comments, but still approved

Signed-off-by: OliverTrautvetter <66372584+OliverTrautvetter@users.noreply.github.com>
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