-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validation of CA certificate inside SUSE Manager settings (#2581)
* Add x509 to dependencies * Validate CA certificate * Fix tests * Migrate SUSE Manager integration settings to single table inheritance * Add tests for certificate validation * Move some case statement directly to pattern matching in signatures * Address review comments
- Loading branch information
1 parent
46e17e2
commit 88cb7a7
Showing
8 changed files
with
177 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
15 changes: 15 additions & 0 deletions
15
priv/repo/migrations/20240502105156_migrate_suma_settings_sti.exs
This file contains 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,15 @@ | ||
defmodule Trento.Repo.Migrations.MigrateSumaSettingsSti do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:settings) do | ||
add :suse_manager_settings_url, :string | ||
add :suse_manager_settings_username, :string | ||
add :suse_manager_settings_password, :binary | ||
add :suse_manager_settings_ca_cert, :binary | ||
add :suse_manager_settings_ca_uploaded_at, :utc_datetime_usec | ||
end | ||
|
||
drop table(:software_update_settings) | ||
end | ||
end |
This file contains 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 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
Oops, something went wrong.