Johan Brandhorst-Satzkorn
fc9b26efa7
internal/target: sort public_id descending
...
The previous sort would run the risk of missing items which
collide on update or create times because of the compound
comparison using strictly less than for both the timestamp
and the public_id. Sorting both descending avoids thi issue.
2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn
27393a8227
internal/db: add host set indexes
2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn
21c593ab71
internal/db: add host indexes
2024-01-05 07:43:21 -08:00
Todd
5aa560387c
Add pagination for iam Roles ( #4161 )
...
* Add pagination for iam Roles
2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn
77b76ae685
internal/db: reorder pagination schema files
2024-01-05 07:43:20 -08:00
Johan Brandhorst-Satzkorn
22ce2b4468
internal/db: add cred store pagination schema changes
...
Add create time, update time columns to base table,
add indexes used by list queries.
2024-01-05 07:43:20 -08:00
Johan Brandhorst-Satzkorn
780dfe20ad
internal/db: move pagination migrations to same folder ( #4142 )
...
Since rebasing on main, we are no longer working in 79, but 80 instead.
2024-01-05 07:43:20 -08:00
Johan Brandhorst-Satzkorn
fcb47f3772
internal/db: add cred library pagination schema changes
2024-01-05 07:43:20 -08:00
Johan Brandhorst-Satzkorn
497c158b9d
internal/db: add migration for static credential table
...
The static credential table is used rather than the credential
table as all credentials returned by ListCredentials are static
at this time.
2024-01-05 07:43:20 -08:00
Johan Brandhorst-Satzkorn
6181f34497
internal/db: move new migrations to new folder
2024-01-05 07:43:20 -08:00
Damian Debkowski
2f62f65252
fix(db): make bucket_prefix column immutable for storage buckets ( #4108 )
2024-01-02 08:53:49 -08:00
Michael Gaffney
4488f5f8cd
refactor(sql): Move and rename history table migrations
...
This moves and renames the history table migration files into the
correct migration directory.
2023-05-31 12:18:14 +00:00
Michael Gaffney
463f1e36af
feat(sql): Add history table for iam_user
...
This adds a history table for `iam_user`.
2023-05-31 12:18:14 +00:00
Michael Gaffney
8ae658a570
feat(sql): Add history table and triggers for iam_scope
...
This adds a history table for `iam_scope`. It also includes reusable
triggers to maintain the included history table and future history
tables.
This also includes a test suite that runs on any table ending in `_hst`.
2023-05-31 12:18:14 +00:00
Michael Gaffney
327d950a1e
feat(sql): Add function to generate a URL safe ID
...
This adds a SQL function that generates a secure random ID of at least
14 characters suitable for use as a public or private ID. IDs generated
with the function will only contain characters from the unreserved
character set defined in RFC 3986 Section 2.3 making them safe for use
in a URL.
2023-05-31 12:18:14 +00:00
Michael Gaffney
94f77d36b3
feat(sql): Add a domain type for URL safe IDs
...
This creates a new domain in SQL that constrains the characters of an ID
to the unreserved character set defined RFC 3986 Section 2.3.
2023-05-31 12:18:13 +00:00
Michael Gaffney
647cf0d33d
feat(sql): Add URL safe base64 encoding function
...
This adds a SQL function to encode binary data into the URL safe base64
encoding defined in RFC 4648.
2023-05-31 12:18:13 +00:00