Commit Graph
100 Commits
Author SHA1 Message Date
Johan Brandhorst-Satzkorn fe0d2b3465 Makefile: check for existence of dist in build-ui-ifne (#6119)
The build-ui-ifne target is responsible for deciding
whether the UI assets already exist on disk, or need
to be built by cloning the UI repo and running its build
scripts.

The old configuration would check whether the UI
repo folder existed, and assume that as long as this
folder exists, it can be used to embed the UI assets.
However, if the clone or ui build fails at any point, the
Makefile target isn't able to retry the script.

Correct the path that is checked for to be the path that
is actually included in the assets.go file. This way, the
Makefile script will retry building the UI until a dist
folder is created.
2025-10-23 16:33:01 -04:00
Johan Brandhorst-Satzkorn 8f5bb3a8b1 config: remove unused telemetry stanza (#6137)
I think this was somehow accidentally included from Vault
back in the day and never removed. As far as I can tell
these options have absolutely no effect on anything
in Boundary and will probably only cause confusion.
2025-10-10 23:33:36 -04:00
Johan Brandhorst-Satzkorn 21fce7c5eb Update Go version to 1.25.1 (#6013)
Note that we do not need to update the go version
in our go.mod files - the meaning of that does not
change with a patch update.
2025-09-03 15:44:42 -04:00
Johan Brandhorst-Satzkorn 30d97687b5 Upgrade Go to 1.25 (#6011)
* Upgrade Go to 1.25

* Upgrade to golangci-lint v2

* Remove use of apt-key
2025-09-02 18:27:22 -04:00
Johan Brandhorst-Satzkorn 77eee19c59 mod: upgrade cap version (#5968) 2025-08-06 12:44:07 -04:00
Johan Brandhorst-Satzkorn c186f8e819 docs: add Alias, Storage Policy to domain model overview (#5941)
* docs: add Alias to domain model overview

Also fix a typo in the Aliases page.

* docs: add storage policy to domain model overview
2025-07-22 13:27:32 -04:00
Johan Brandhorst-Satzkorn 723f40291e dependabot: round two, group all Go modules (#5781) 2025-05-22 15:07:56 -04:00
Johan Brandhorst-Satzkorn b97a337cfa dependabot: add go modules, groups (#5767) 2025-05-22 14:55:30 -04:00
Johan Brandhorst-Satzkorn 343675ebf5 Update mod files and oauth2 dep (#5714)
* Update mod files

* Update golang.org/x/oauth2
2025-05-02 15:03:37 -07:00
Johan Brandhorst-Satzkorn a833981eae update golang.org deps (#5660) 2025-04-17 09:16:48 -07:00
Johan Brandhorst-Satzkorn 3a49c8c483 Update golang.org deps and Go version (#5595)
* Update golang.org deps and Go version

* Upgrade golangci-lint

* all: fix new vet warnings

https://github.com/golang/go/issues/60529 introduced a new
vet warning for when format strings are used without arguments,
which is technically a bug since it shouldn't be using the functions
taking format string arguments in those cases.
2025-03-17 09:45:22 -07:00
Johan Brandhorst-Satzkorn 3d2fa8b9d0 plugins/boundary/mains/azure: update dependency (#5464)
v0.2.0 of the Azure plugin adds support for Virtual Machine
Scale Sets (VMSS) in addition to Virtual Machines.
2025-02-24 11:22:28 -08:00
Johan Brandhorst-SatzkornandMichael Li 262693f47c Restore soft deleted users on authentication (#5549)
* internal/clientcache: restore user on login

A user that previously had its last auth token deleted
(for example, if they logged out), should be restored
again when they successfully authenticate again.

* internal/clientcache: delete keyringless expired auth tokens

Previously, we would only correctly delete auth tokens
that were expired (or deleted) if they were also in the
keyring.

* internal/clientcache: remove tautological condition

At this stage we already know that at is non-nil, because
the case above would have been true if it was nil.

* internal/clientcache: improve error handling

The previous error handling would have ignored API errors that were not ErrUnauthorized or ErrNotFound.
Handle all API errors the same as other unexpected errors.

* internal/clientcache: make errors distinct

These two error conditions are otherwise impossible
to tell apart.

* test(e2e): Update search test to catch bug (#5551)

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
2025-02-24 09:16:07 -08:00
Johan Brandhorst-Satzkorn 99f4bc092f Update go-plugin dep (#5552)
* mod: remove unnecessary import groupings

Move all imports into one of two groupings:

1. Direct dependencies
2. Indirect dependencies

This is the standard used by the go tool. The old groupings
seemed very random.

* mod: update go-plugin dependency
2025-02-19 09:14:41 -08:00
Johan Brandhorst-SatzkornandRobin Beck c593943209 docs/client-agent: add warning about MacOS 15 (#5543)
* docs/client-agent: add warning about MacOS 15

MacOS 15.3 has been known to sometimes block users
from using the client agent altogether. Explicitly
allowing it access to incoming network connections
resolves the issue.

* Update website/content/docs/api-clients/client-agent.mdx

Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>

---------

Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
2025-02-11 15:50:40 -08:00
Johan Brandhorst-Satzkorn 5de0c8c102 internal: ensure schema manager is closed (#5521)
This releases the connection it holds indefinitely
2025-02-06 13:49:49 -08:00
Johan Brandhorst-Satzkorn 35943cb408 docs: add note about MacOS 15.1, 15.2 incompatibility (#5515) 2025-02-05 09:14:38 -08:00
Johan Brandhorst-Satzkorn 936d320ca6 internal/scheduler/job: fix test failure (#5472)
This was failing because the compared values weren't
pointers. It was probably caused by a depedency version
update changing the behavior of this function.
2025-01-24 10:25:56 -08:00
Johan Brandhorst-Satzkorn 40cb9f5c9e Restrict concurrent password hashes (#5437)
* internal/auth/password: add resizable pool

The resizable pool wraps the permit pool with a mutex
to allow it to be resized at runtime.

* internal/auth/password: add concurrency limit

The default concurrency limit is 1, and it can be
set using the SetHashingPermits function.

* internal/cmd/config: allow configuring hashing limits

The new concurrent_password_hash_workers configuration
value can be used to loosen the constraints on the
userpass auth method hashing operation.

* internal/cmd: set password hashing constraints

Sets the password hashing concurrency constraints on
startup and config reload.

* CHANGELOG: add notice about password concurrency limit
2025-01-22 13:31:42 -08:00
Johan Brandhorst-Satzkorn aad833fe09 CHANGELOG: add note about worker status refactor (#5465) 2025-01-22 11:53:35 -08:00
Johan Brandhorst-Satzkorn a43cb90a32 internal/session: ensure orphaned connection cleanup (#5438)
Previously, the orphaned connection cleanup job would
not detect that a connection that was created before a
worker had submitted a successful session info was
orphaned. We now fall back to using the worker update
time as an indicator if the session info time is not set.
2025-01-21 11:09:15 -08:00
Johan Brandhorst-SatzkornandDamian Debkowski ec0a3f964b Worker status refactor (#5417)
* oss: feat(proto): statistics rpc added to server coordination service

* oss: feat(session): add update statistics status service

* oss: feat(handlers): add Statistics method to worker service server

* oss: feat(worker): add statistics ticking

* oss: internal/proto: define the new RoutingInfo RPC

* oss: internal/server: repository changes for RoutingInfo RPC

* oss: internal/daemon: add RoutingInfo handler to worker service

The new RoutingInfo RPC is used to get information from the worker
that is used to make routing decisions on the controller. It also
handles the initial request from the worker.

* oss: feat(db): server_worker_session_info table

* oss: feat(proto): session info rpc for server coordination service

* oss: feat(server): worker session info request data type

* oss: feat(worker): session info ticker

* oss: feat(handler): server coordination handler for session info

* oss: feat(session): utilize session info request time for session cleanup

* oss: proto: fix some gotags comments

Some of these fields were missing comments, while others had
incorrectly formatted comments.

* oss: worker: send connection status to server

This is required for the correct tracking of orphaned connections

* oss: internal/daemon/worker: add function to wait for Statistics RPC

* oss: internal/daemon/worker: add routing info RPC

The new RoutingInfo RPC replaces part of the Status RPC,
namely the part which is used by the controller and worker
to perform decisions around the establishment of new sessions
and new worker connections.

* oss: internal/daemon/worker: remove unnecessary error check

* oss: internal/daemon/worker: lock access to config and upstreams

The new confLock protects access to the conf value and to the
addressReceivers slice.

* oss: worker: replace Status RPC with RoutingInfo

* oss: worker: deprecate the Status RPC and related types

The Status RPC and related messages have been replaced
by the RoutingInfo/SessionInfo/Statistics RPCs. The controller
will continue to support the Status RPC until two new minor
versions have been released.

* oss: internal/event: add default deny for new worker RPCs

* oss: internal/daemon/worker: allow RPC interval to be set

The new SessionInfo/RoutingInfo/Statistics RPCs run at
long intervals, which make some of our cluster tests take
a long time to complete. This allows their interval to be
configured in tests.

* oss: all: use TestWorkerRPCInterval in slow tests

This should speed up these tests significantly.

* oss: internal/tests/cluster: reset sys eventer in test

---------

Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
2025-01-09 10:26:37 -08:00
Johan Brandhorst-Satzkorn 1cbe1ca463 internal/event: fix log processor race (#5401)
The cloud events formatter Process function would call
the signer without protecting it, which was racy with the Rotate
function.
2025-01-07 09:11:52 -08:00
Johan Brandhorst-Satzkorn ae916727e5 Dockerfile: bump alpine version (#5411)
Should hopefully resolve the wget warning
2025-01-07 09:10:45 -08:00
Johan Brandhorst-Satzkorn a21f0f109a mod: update golang.org/x/net dependency (#5405)
Fixes CVE-2024-45338, GO-2024-3333
2025-01-03 15:33:28 -08:00
Johan Brandhorst-Satzkorn 7b30697ddd internal/session: fix race condition in connection cleanup (#5402)
The totalClosed variable was accessed in both the Status and the Run
functions, which may be called from independent goroutines.
2025-01-03 10:28:21 -08:00
Johan Brandhorst-Satzkorn 1a6320794e cmd: propagate keyring reading errors (#5360)
Reading a token from the keyring can sometimes fail for reasons
other than the token not being present in the keyring. This PR
introduces a new error used to indicate that the token requested
could not be found in the keyring and propagates errors from the
keyring up to the caller, so that the caller can act on them.

Additionally, this fixes a bug in the client cache where it would
incorrectly assume that a token had been removed from the
keyring, when in fact there was an error reading from the keyring.
2024-12-23 09:21:18 -08:00
Johan Brandhorst-Satzkorn 1b6b22ef4f internal/daemon/worker: improve runtime and reduce noise (#5387)
TestRotationTicking would previously wait for 5 rotations, which is
pretty slow considering each rotation takes 20 seconds. Reduce
the number to 3, and use require instead of assert to remove
noise during flaky test runs.

This doesn't fix the flakiness of this test, but it should reduce the log spam.
2024-12-20 12:02:22 -08:00
Johan Brandhorst-Satzkorn 20f11ab01b Revert "internal/daemon: speed up multi-worker tests (#5370)" (#5386)
Unfortunately, this started causing the enterprise tests to break in
an unexpected way. Reverting to spend some more time testing the changes.
2024-12-19 09:29:48 -08:00
Johan Brandhorst-Satzkorn 862a30c389 internal/daemon: speed up multi-worker tests (#5370)
Instead of sleeping, we can poll for the desired state. Also,
run shutdowns in parallel.
2024-12-17 09:18:27 -08:00
Johan Brandhorst-Satzkorn e5b655b9e5 Update CHANGELOG.md with 0.18.2 changes (#5361) 2024-12-12 15:54:17 -08:00
Johan Brandhorst-Satzkorn 87fc86847b all: update crypto dependency (#5356)
This resolves a vulnerability in the SSH package that we're
not vulnerable to.
2024-12-12 11:26:16 -08:00
Johan Brandhorst-Satzkorn c85fad27f6 internal/event: avoid reusing canceled context (#5304)
Don't error in ReleaseGate if the context used for the original
event has been cancelled. Any error in ReleaseGate causes the
controller to terminate its startup. If a user was trying to send
a request to the Boundary controller as it started up, the context
tied to the request would be reused to attempt logging the
observation associated with the request after the logging gate
was released. This would always fail, as the context associated
with the request was canceled.

We now use a new context timeout for events logged after the release
gate is released, if the original context was canceled.
2024-12-04 09:50:25 -08:00
Johan Brandhorst-Satzkorn 3d5c6ab33a Update release dir owner group (#5299)
* Update release dir owner group

The old group only contains a service account. I updated it to the self managed release engineering group instead.

* Remove release engineering as code owners

Actually lets just remove this group, as per their justification in #4057
2024-12-03 09:48:30 -08:00
Johan Brandhorst-Satzkorn 10370edf59 internal/commands/server: prevent test panic on timeout (#5249)
Previously, if one of these tests failed to start their servers before
the timeout, there was a risk that the goroutine started to run
the server would invoke t.Errorf after the test itself had concluded.
Replace t.Errorf with fmt.Printf to avoid the panic, and include
the test name for debugging.
2024-11-22 09:57:41 -08:00
Johan Brandhorst-Satzkorn 0c8ea69851 Update CODEOWNERS (#5259) 2024-11-19 11:37:46 -08:00
Johan Brandhorst-Satzkorn 963e276721 Update CHANGELOG.md (#5253) 2024-11-18 16:32:41 -08:00
Johan Brandhorst-Satzkorn a2be306eb4 More managed groups limit fixes (#5245)
* internal/handlers/managed_groups: ensure membership lookup is unlimited

Previously, we would only show the first 10,000 members in the group,
giving the impression that a complete list was performed. Now we
list all members.

* internal/handlers/accounts: ensure group lookup is unlimited

Previously, we would only show the first 10,000 managed group
memberships. Now we list all group memberships of an account.
2024-11-15 10:27:20 -08:00
Johan Brandhorst-Satzkorn d830bdd416 internal/auth/oidc: ensure all managed groups are tested on auth (#5242)
Previously, we would list the managed groups with an implied
filter of db.DefaultLimit (10,000), which would incorrectly remove
a user from managed group memberships if there were more
than 10,000 managed groups in an auth method. Explicitly
set the list limit to unlimited to ensure all managed groups are
updated appropriately.
2024-11-14 15:47:08 -08:00
Johan Brandhorst-SatzkornandDan Heath 680bb02af9 docs/client-agent: clarify use of override_upstream_dns_servers (#5220)
* docs/client-agent: clarify use of override_upstream_dns_servers

The override_upstream_dns_servers option is recommended whenever
a user needs to override the DNS servers discovered from the system.
However, if a user supplies a DNS server that is only useable while
connected to a specific network, it will break the internet in
cases where it is not able to resolve these DNS servers.
Encourage users to supply both the VPN servers and the default
DNS servers.

* Update website/content/docs/api-clients/client-agent.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

* Update website/content/docs/api-clients/client-agent.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-10-30 13:59:50 -07:00
Johan Brandhorst-SatzkornandDan Heath 5a071442b5 Clarify client agent config reload docs (#5213)
* docs/client-agent: clarify configuration reload on MacOS

The previous configuration was known to confuse at least one reader.
It's easy to just copy the first command you see and run it, so
make that the non-destructive reload command.

* docs/client-agent: correct log level config example

* Update website/content/docs/api-clients/client-agent.mdx

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-10-29 09:58:38 -07:00
Johan Brandhorst-Satzkorn 2d72d2488e Client agent docs updates (#5180)
* docs/client-agent: indent PAN docs correctly

Identifying the primary network interface is a sub-heading under the
PAN troubleshooting section.

* docs/transparent-sessions: add known issue around containers/VMs

VMs/containers that do not have access to the local network cannot
use aliases through transparent sessions.
2024-10-17 15:30:29 -04:00
Johan Brandhorst-Satzkorn ab922b5786 internal/clientcache/cmd/cache: restart cache on version mismatch (#5165)
Restart the client cache if it is found to be a version below the
version of the CLI during client cache hook execution.
2024-10-09 14:26:33 -04:00
Johan Brandhorst-Satzkorn 0ef88d0f05 Add semgrep rules (#5042)
* Add semgrep rules

Instrument our security scanner with the ability to use custom semgrep
rules. This is inspired by the HVS teams use of semgrep.

* semgrep: add rule to detect string interpolation in WithInfoMsg

The event.WithInfoMsg function expects a set of key value tuples,
but it can easily be misunderstood to accept string interpolation
arguments. This check will error if any string interpolation verbs are
used in calls to event.WithInfoMsg
2024-09-23 10:07:57 -07:00
Johan Brandhorst-Satzkorn 41de35f2b1 internal/daemon/controller+worker: propagate downstream timeout (#5083)
Propagate the downstream worker timeout into the
downstream receiver and downstream ticker
so we have a configurable consistent timeout
value to use for worker to worker interactions.

Also change the atomic.Pointer to an atomic.Int64
for consistency with other values.
2024-09-11 12:19:11 -04:00
Johan Brandhorst-Satzkorn a830892fec Some test fixes (#5084)
* internal/session: update variable name in test

This was missed in #5071

* internal/tests/cluster: skip failing tests

These tests will need to be fixed or removed. It is not
clear why they are failing, but they are always failing.

* Makefile: try upgrading golangci-lint

* internal/host/plugin: fix flaky test

Hosts contain IP addresses in string form, whose
order is not defined.
2024-09-09 09:22:34 -07:00
Johan Brandhorst-Satzkorn 59fd2d4595 e2e: replace '%s' with %q (#5058)
%q handles quotes inside the quoted strings better.
2024-08-29 15:50:19 -07:00
Johan Brandhorst-Satzkorn 4a031d9910 api: remove items deleted during refresh pagination (#5056)
The API automatically paginates to the end of a pagination,
and would take into account any items updated and subsequently
removed since the last pagination. It now also removes any items
removed during the current pagination.
2024-08-29 12:43:54 -07:00
Johan Brandhorst-Satzkorn 96688b36d5 internal/daemon: simplify time update tests (#5041)
Using time.After makes the intent clearer
2024-08-27 11:00:04 -07:00
Johan Brandhorst-Satzkorn 50ead47427 ci: refuse to backport if migrations changed (#5035) 2024-08-23 12:07:07 -07:00
Johan Brandhorst-Satzkorn 8e95a7eb86 Merge pull request #5026 from hashicorp/jbrandhorst-upgrade-go
all: upgrade Go to 1.23.0
2024-08-16 10:27:16 -07:00
Johan Brandhorst-Satzkorn 9f6fc8b26c ci: don't fail on cache miss
Other parts of CI do not fail on cache miss, and it might
be necessary to allow it to fail to successfully restore it later.
2024-08-15 15:46:09 -07:00
Johan Brandhorst-Satzkorn 6c4db8b6c0 all: upgrade Go to 1.23.0 2024-08-15 12:23:12 -07:00
Johan Brandhorst-Satzkorn a77769fdb6 internal/server: only use non-nil tags (#4996) 2024-08-06 09:17:40 -07:00
Johan Brandhorst-Satzkorn 96052c6a06 Upgrade Go version (#4923)
This fixes a security vulnerability in net/http, CVE-2024-24791.
2024-07-08 10:13:00 -07:00
Johan Brandhorst-SatzkornandJeff Mitchell c6f3c375f3 api: remove deprecated grant_scope_id field (#4886)
* api: remove deprecated grant_scope_id field

The grant_scope_id field was deprecated in 0.15.0, so we can remove
it for 0.17.0.

* Fix tests

* Fix more tests

* Remove an option and some related code that stuck around

* Fix bats tests

---------

Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
2024-06-17 12:09:33 -07:00
Johan Brandhorst-Satzkorn ec289420d3 clientagentcmd: use "localhost" to call client agent (#4816)
The client agent serves on "localhost:9300" by default. It appears
on some systems this resolves to ::1:9300 and on some systems
127.0.0.1:9300. We should use the same address on the client
as the server to avoid any incompatibilities between systems.
2024-05-22 14:17:30 -07:00
Johan Brandhorst-Satzkorn a1391db090 internal/cmd: rename ferry files to client_agent (#4815)
This was missed in the big rename PR
2024-05-22 13:49:06 -07:00
Johan Brandhorst-SatzkornandRobin Beck e64443c66f Rename daemon CLI command to cache (#4808)
* internal/cmd/wrapper: add deprecation wrapper

The deprecation wrapper can be used to display a warning to callers
when a command is deprecated.

* all: rename daemon to cache

Rename the boundary daemon command to boundary cache. This
avoids confusion with future client/daemons.

* changes daemon to cache in nav

---------

Co-authored-by: Robin Beck <stellarsquall@protonmail.ch>
2024-05-22 11:11:48 -07:00
Johan Brandhorst-Satzkorn be7d72d690 Merge pull request #4809 from hashicorp/jbrandhorst-rename-ferry
internal/cmd: rename ferry to client-agent
2024-05-22 09:59:24 -07:00
Johan Brandhorst-Satzkorn 8ff18f6c3c internal/cmd: rename ferry to client-agent
Renames the ferry command and related flags and env vars to
client-agent following the new naming decision.
2024-05-22 09:51:58 -07:00
Johan Brandhorst-Satzkorn 111b8fbecf internal/cmd/ferry: add sessions command (#4800) 2024-05-15 13:10:18 -07:00
Johan Brandhorst-Satzkorn 0ed1803557 mod: update transit dependency (#4797)
This version supports context cancelation
2024-05-13 09:18:12 -07:00
Johan Brandhorst-Satzkorn 33abe1274a build: include LICENSE.txt in all artifacts (#4630)
Adds our LICENSE file as LICENSE.txt to our binary .zip files,
Docker containers, and RPM files.
2024-04-17 09:04:40 -07:00
Johan Brandhorst-Satzkorn 31f4b73584 proto/api: improve auth method service API docs (#4616) 2024-04-09 14:14:30 -07:00
6b53766aa6 internal/proto: improvements to OpenAPIv2 spec (#4555)
* internal/gen: better API docs

Add various pieces of metadata that can be used by the API docs renderer.
Improve the service labels by specifying explicit tags.
Specify error responses. Specify version at generation time.

* internal/gen: add better errors

The default error entry is now used to cover all errors, as
adding a new error for every possible status code was a bit much.
This also properly includes the real error type now!

* Add various pieces of metadata that can be used by the API docs renderer. Improve the service labels by specifying explicit tags.

* make auth method API docs

* make API docs better

* make auth methods API docs nicer

* internal/gen: better attribute examples

Replace Output Only comments with a field behavior annotation in accounts.
Mark some fields as required.
Add elaborate description for attributes.

* Make API docs better

* Make API docs better

* Make API docs better

* internal/proto: regenerate files

* internal/proto: finish off account service

* Make API docs better

* internal/proto: add better API docs for aliases

* Tidy up service descriptions

* Added description for Boundary controller  API doc

* internal/gen: add better API intro

Copy parts of the API docs into the description

* sdk: add openapi dependency

* internal/gen: move global API doc to separate file

* internal/gen: remove required annotations

Unfortunately, while these help with the creating of resources, they still
appear required in contexts where they are not, such as when
updating a resource.

* Review comments

---------

Co-authored-by: jigar-hashicorp <jigar.shah@hashicorp.com>
Co-authored-by: Isaac Christian (he/him) <112639904+isaacchristian@users.noreply.github.com>
2024-04-08 13:55:17 -07:00
Johan Brandhorst-Satzkorn dd206bb419 deps: update go-jose (#4568)
Apparently 3.0.1 has a vulnerability
2024-03-22 12:56:30 -07:00
Johan Brandhorst-Satzkorn e95eda7ca2 handlers: always return pagination parameters in list (#4373)
* handlers/targets: always return pagination parameters in list

* handlers/authmethods: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/accounts: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/authtokens: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/credentiallibraries: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/credentials: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/credentialstores: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/groups: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/host_catalogs: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/host_sets: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/hosts: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/managed_groups: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/roles: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/scopes: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/sessions: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.

* handlers/users: test for pagination parameters

Note that this already always returned the pagination parameters,
but now we have a test that it does so.
2024-02-15 09:26:29 -08:00
Johan Brandhorst-Satzkorn be252e3447 testing/e2e: add option to skip slow test (#4380) 2024-02-08 10:19:09 -08:00
Johan Brandhorst-Satzkorn c334ec700c enos: support max_page_size in AWS scenarios (#4352) 2024-02-02 09:21:21 -08:00
Johan Brandhorst-Satzkorn d9c6de4e8b deps: update runc dependency (#4349)
Fixes GHSA-xr7r-f8xq-vfvv
2024-02-01 13:19:24 -08:00
Johan Brandhorst-Satzkorn fa38d37ba7 Add note about breaking list change (#4328) 2024-01-30 16:03:19 -08:00
Johan Brandhorst-Satzkorn 7fe9198bce testing/e2e: paginate managed groups (#4315) 2024-01-29 13:56:25 -08:00
Johan Brandhorst-Satzkorn 0bddb346e5 testing/e2e: add account pagination test (#4314) 2024-01-29 13:22:21 -08:00
Johan Brandhorst-Satzkorn d47d2ad2e4 testing/e2e: add auth token pagination tests (#4311) 2024-01-29 11:51:40 -08:00
Johan Brandhorst-Satzkorn 72c87e81cf internal/authtoken: use view for listing (#4284)
Use the existing auth token account view for listing
instead of a custom query. Testing shows that the
performance difference is negligible, and this is simpler.
2024-01-25 13:48:43 -08:00
Johan Brandhorst-Satzkorn 133e928c6d internal/db/schema: update recording indexes (#4278)
The new index includes the new delete_time and
delete_after columns, which are used in the list query.
2024-01-25 08:56:15 -08:00
Johan Brandhorst-Satzkorn b229ece914 internal/db: use more efficient index for host listing (#4256)
In tests, the index including the catalog_id performs significantly
better.
2024-01-19 10:59:18 -08:00
Johan Brandhorst-Satzkorn 07be75b7be internal/handlers: add pagination to storage policies 2024-01-16 13:53:44 -08:00
Johan Brandhorst-Satzkorn b454b28912 internal/handlers: add policy list resource type 2024-01-16 13:53:44 -08:00
Johan Brandhorst-Satzkorn dc4ea67d6e internal/db: changes for pagination 2024-01-16 13:53:44 -08:00
Johan Brandhorst-Satzkorn edc616ea9d dep: upgrade vulnerable deps (#4235)
These dependencies triggered warnings in our
release workflow.
2024-01-16 09:41:48 -08:00
Johan Brandhorst-Satzkorn ada0c273b0 testing/e2e: add scope pagination test (#4233) 2024-01-16 09:22:28 -08:00
Johan Brandhorst-Satzkorn c2a9723a10 testing/e2e: add group pagination test (#4234) 2024-01-16 09:22:16 -08:00
Johan Brandhorst-Satzkorn 0bb9e745b7 testing/e2e: add role pagination test (#4232) 2024-01-15 13:30:49 -08:00
Johan Brandhorst-Satzkorn fb2aa30e80 Merge pull request #4095 from hashicorp/mikemountain-adjust-session-pagination-queries
Update session query with optimized indexes
2024-01-11 09:45:09 -08:00
Johan Brandhorst-Satzkorn 9a23bd14f0 internal/session: tidy up query 2024-01-11 09:44:44 -08:00
Johan Brandhorst-Satzkorn b6fe9824ab internal/db: optimize session list indexes 2024-01-11 09:44:44 -08:00
Johan Brandhorst-Satzkorn 77e1f01421 website: correct grammar (#4222) 2024-01-05 07:45:14 -08:00
Johan Brandhorst-Satzkorn 7c15d7ff60 Update changelog for list pagination (#4220) 2024-01-05 07:45:09 -08:00
Johan Brandhorst-Satzkorn 1303f7c363 Fix linter warnings (#4219) 2024-01-05 07:43:22 -08:00
Johan Brandhorst-Satzkorn 69262c386c internal/db: renumber migrations (#4218) 2024-01-05 07:43:22 -08:00
Johan Brandhorst-Satzkorn 3daa55b913 internal/handlers: add scope list pagination 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn ad5b34da6b internal/iam: add scope list pagination 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn 85ca909720 internal/db: add iam_scope indexes
These will help the iam_scope list queries
2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn eb78943cdb testing/e2e: add host catalogs end to end test (#4214) 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn d4b60241db internal/db: storage bucket pagination migrations (#4213) 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn b7e474d277 internal/handlers: add accounts pagination 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn d5e8877f2c internal/auth/password: add account pagination 2024-01-05 07:43:21 -08:00
Johan Brandhorst-Satzkorn 1452952ddb internal/auth/oidc: add account pagination 2024-01-05 07:43:21 -08:00