Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions inventory/api/os/v1/os.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ message OperatingSystemResource {
}
]; // Opaque JSON field storing metadata associated to this OS resource. Expected to be a JSON object with string keys and values, or an empty string.

string tls_ca_cert = 19 [
(ent.field) = {optional: true},
(buf.validate.field).string = {
pattern: "^$|^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
min_len: 0
max_len: 10000
}
]; // user-provided, TLS CA Certificate

string existing_cves_url = 42 [
(ent.field) = {
optional: true
Expand Down
1 change: 1 addition & 0 deletions inventory/docs/api/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
| platform_bundle | [string](#string) | | An opaque JSON string storing a reference to custom installation script(s) that supplements the base OS with additional OS-level dependencies/configurations. If empty, the default OS installation will be used. |
| description | [string](#string) | | user-provided, human-readable description of OS |
| metadata | [string](#string) | | Opaque JSON field storing metadata associated to this OS resource. Expected to be a JSON object with string keys and values, or an empty string. |
| tls_ca_cert | [string](#string) | | user-provided, TLS CA Certificate |
| existing_cves_url | [string](#string) | | URL of the file containing information about the existing CVEs on the Operating System. |
| existing_cves | [string](#string) | | The CVEs that are currently present on the Operating System, encoded as a JSON list. |
| fixed_cves_url | [string](#string) | | URL of the file containing information about the CVEs that have been fixed by this OS Resource version. |
Expand Down
130 changes: 67 additions & 63 deletions inventory/docs/inventory-er-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "operating_system_resources" table
ALTER TABLE "operating_system_resources" ADD COLUMN "tls_ca_cert" character varying NULL;
3 changes: 2 additions & 1 deletion inventory/internal/ent/migrate/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:jT4I+4ERemvFf9eiNbU4vzA+hFnwxzARnXwlSvb7MJc=
h1:C4E+T/PVHPfBhBe9WCPuVGZDl+bt29X6Q5hFjzXj3Pc=
20230600000000_empty.sql h1:WTkYlwWwrdJjax+pXqrJYBNu1BIdqqnF9WoasjlGLUk=
20250324165719_all.sql h1:YEGDRbDPwxh5fBkoaGAwXpPu3nDCsCDdrvTt2EzBekk=
20250520125803_add_osprof_desc.sql h1:RQBqrgNfdTJlElMRdsizeMIRLsfw2Dq1LzzdiIV/JmE=
Expand All @@ -16,3 +16,4 @@ h1:jT4I+4ERemvFf9eiNbU4vzA+hFnwxzARnXwlSvb7MJc=
20250926132933_add_lvm_size.sql h1:TBEf371YjevfmQyElf+Q6MFnuELnYqn+/S/mUj6H2Ys=
20251002164125_modify_OSUpdatePolicy.sql h1:ndAWm2d/NX/npyT4ZoIOR3MvsTMdEUOOPx9NB5wRxDw=
20251002165719_datamigration_OSUpdatePolicy.sql h1:q+jxXd0teE6l0DUJT9VtHyg+B5/mRta+bX6ugHcOefY=
20251013103949_add_tls_ca_cert.sql h1:TfIzciCx0fTG9GdnagieZWZTscGUqNvn0ELdMNhPCrc=
5 changes: 3 additions & 2 deletions inventory/internal/ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 74 additions & 1 deletion inventory/internal/ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion inventory/internal/ent/operatingsystemresource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions inventory/internal/ent/operatingsystemresource/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading