Commit Graph
4448 Commits
Author SHA1 Message Date
Dan Heath 2322357c05 docs: Update meta content - Release notes (#5285) 2024-12-04 10:52:10 -05:00
Ryan Derr dc51dfba92 Update Tags For CRT (#5296) 2024-12-03 12:06:19 -06: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
b84f62fae1 SEC-090: Automated trusted workflow pinning (2024-12-01) (#5293)
* Result of tsccr-helper -log-level=info gha update -latest .github/

* chore: Fix usage of slack-github-action

---------

Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
Co-authored-by: Michael Li <michael.li@hashicorp.com>
2024-12-03 09:56:01 -05:00
Bharath Gajjala 58cc322c63 Refactor redundant append operations in test setup (#5211)
* Refactor redundant append operations in test setup

- Simplified code by removing unnecessary if-else conditions in the wantUserIds and wantGroupIds blocks.

Fixes #5205

* chore: fmt fix
2024-12-03 08:47:51 -05:00
Michael Li ae0ca0c5aa test(e2e): Update module to account for docker image changes (#5295)
There were some directory changes made to the openssh server docker container. These changes were made to account for that update.
2024-12-02 16:20:07 -05:00
Louis Ruch 088564c385 feat(aws): Update plugin dep (#5288)
* feat(aws): Update plugin dep

* chore: Update go version
2024-11-27 13:03:53 -08:00
Elim Tsiagbey b6458732ed chore: update module name (#5282)
The module name for `go.mod` should be `gcp` not `aws` since it is in the `gcp` package
2024-11-25 15:55:40 -05:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] 69b60c82df Result of tsccr-helper -log-level=info gha update -latest .github/ (#5226)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2024-11-25 15:09:24 -05:00
Michael Li 66e8ec0f41 test(e2e): Fix failure in migration test (#5277)
* test(e2e): Fix log path to avoid error

* test(e2e): Be explicit about port definition to avoid dockertest issue

* test(e2e): Add check for health
2024-11-22 15:05:46 -05: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
Dan HeathandJohan Brandhorst-Satzkorn 4f9f281398 docs: Add resolved issue to release notes (#5260)
* docs: Add resolved issue to release notes

* Update website/content/docs/release-notes/v0_18_0.mdx

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* docs: Revise gerund for standards

---------

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2024-11-21 17:44:39 -05:00
Damian Debkowski bc10cbb35b chore: update dependencies (#5269)
* chore: update go-retryablehttp

* chore: update x/net

* chore: update protobuf

* fix: missing dependency

* chore: update jwt dependency
2024-11-21 11:12:41 -08:00
Michael Li 504050acb9 test(e2e): Add debug to search test (#5274)
* test(e2e): Fix typo

* test(e2e): Add cache log to output on failure
2024-11-21 13:50:19 -05:00
1a19f70edf Install boundary docs enhancements (#5261)
* adds install-boundary/install-clients page

* renames install-boundary/install to deploy, adds workflow notes

* renames install-boundary/deploy, adds redirect for install-boundary/install

* adds TOC for install-boundary section

* Apply suggestions from code review

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

* style fixes

* add next steps

* fixes TF configuration note

* use lowercase for Boundary installer

* removes beta warning and adds a note instead

* Apply suggestions from code review

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2024-11-20 15:54:52 -07:00
Elim Tsiagbey 194629488d chore: bump gcp plugin dependency (#5266)
This picks up latest GCP Plugin bug fixes
2024-11-20 16:59:29 -05:00
a92c0c7ed2 adds target aliases and transparent sessions usage docs (#5243)
* adds target aliases and transparent sessions usage docs

* fixes relative link

* Apply suggestions from code review

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

* Update website/content/docs/configuration/target-aliases/create-target-alias.mdx

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

* fixes paragraph formatting

* add authenticaton requirement

* adds example link

* Apply suggestions from code review

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

* clarifies host selection for session

* use DNS-like aliases in example

* fixes indentation

* Update website/content/docs/concepts/aliases.mdx

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* adds callout box for 0.16 clusters

---------

Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2024-11-20 13:49:07 -07:00
69fc3a47d0 docs: add ssh host key error to known issues (#5250)
* docs: ssh error due to change in host key

* style: remove trailing whitespace

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

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* docs: rephrase  message

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

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

---------

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com>
2024-11-20 09:12:30 -05:00
Johan Brandhorst-Satzkorn 0c8ea69851 Update CODEOWNERS (#5259) 2024-11-19 11:37:46 -08:00
Michael Gaffney e086fd3007 test(batch): Fix data races in tests
Fixes: 9b984b0ab6
2024-11-19 08:49:57 -05:00
Johan Brandhorst-Satzkorn 963e276721 Update CHANGELOG.md (#5253) 2024-11-18 16:32:41 -08:00
Michael Li 820eb395a3 chore(e2e): Increase worker instance size (#5251)
* chore(e2e): Update to use t2.small instances

Using the updated AWS SDK required more memory and was causing workers to crash.

* chore(e2e): Add identifier to aws instance
2024-11-18 15:02:19 -05:00
Deniz Onur Duzgunandmickael e 91128ba37a ci: update the security-scanner gha token (#5112)
* ci: update the security-scanner gha token

* security-scan : fix codeql download

---------

Co-authored-by: mickael e <mickael@hashicorp.com>
2024-11-18 09:47:24 -05: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
Dan HeathandYoko Hyakuna 53e77e313a docs: Update meta content - Getting started (#5214)
* docs: Update meta content - Getting started

* Update website/content/docs/getting-started/dev-mode/connect-to-dev-target.mdx

Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>

* Update website/content/docs/getting-started/index.mdx

Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>

---------

Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
2024-11-14 13:57:25 -05:00
Dan Heath 3d6a629c97 docs: Update meta content - Install (#5218) 2024-11-14 13:48:59 -05:00
Dan Heath 9ac1129289 docs: Update meta content - Overview (#5203)
* docs: Update meta content - Overview

* docs: Delete extra line

* docs: Remove newlines
2024-11-14 13:46:30 -05:00
Michael Li 45542b3fab chore(e2e): Add required permission to service user (#5231) 2024-11-14 12:26:44 -05:00
Elim Tsiagbey 514bcc19f6 feat(gcp): add GCP plugin (#5229)
Add GCP as a supported plugin for dynamic host catalogs
2024-11-08 11:09:29 -05:00
Hugo f227020b67 feat(scheduler): Use job table to select jobs to run
This commit changes the logic around selecting jobs to run. Before this,
Boundary used a view "job_jobs_to_run" which was a collation of all jobs
that were not running and scheduled to run. When jobs were requested to
run, Boundary would look at this view, grab a certain amount of jobs and
insert them into the "job_run" table. Importantly, while the amount of
jobs to be scheduled at once defaulted to 1 in the scheduler package,
this was entirely overriden in the controller package to -1 (no limit,
run all jobs that the query would return).

With this commit, Boundary now looks at the "job" table directly for
jobs to run, regardless of job run status. This was done to improve DB
performance as the view (which queried all "job_run" rows) was causing
significant DB contention.

Additionally, the option to limit job runs is now removed since it was
already hardcoded to -1 and not user-configurable anyways.

Should the need arise to implement this limit again, this will have to
be done in a different way since the new query does not account for
running jobs and limiting the rows returned after jobs are already
running would yield a no-op (the new query inserts nothing into
"job_run" if any given job is already running).
2024-11-06 16:15:49 +00:00
Hugo 27c432a748 feat(scheduler): Drop completed job runs as they complete
Before this change, upon the completion of a job run, the scheduler
would update a job_run entry with the completed status as well as the
number of objects affected by the run. Additionally, we then had a
cleaner job whose scope was deleting these completed entries from
job_run.

This commit changes this design to drop the cleaner job the and rolls
its functionality directly into the scheduler. Now, when any given job
run is complete, the scheduler will automatically delete it from the
job_run table itself.

In addition, the completed status has been removed as a valid status as
it is not set anymore.

This change follows a decision that given the data in these job_run
entries is already being deleted by the cleaner job, updating its state
when a job completes just to have it deleted is not efficient.
Additionally, no use-case for this data was surfaced.
2024-11-05 17:10:39 +00:00
daniandDamian Debkowski 62c41191ff [fix] allow IPv6 controllers, workers, and targets (#5221)
Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
2024-11-01 13:27:40 -04: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
Michael Gaffney 9529491fa6 feat(session): Delete terminated sessions in batches
This changes the periodic job that deletes terminated sessions to delete
the those sessions in batches. Prior to this, a single SQL DELETE
command was used to delete all qualifying terminated sessions. In
systems under heavy load, the statement could timeout leading to a
situation where no qualifying terminated sessions were ever being
deleted.
2024-10-25 10:25:52 -04:00
Michael Gaffney 9b984b0ab6 feat(batch): Add batching for SQL jobs
This adds a new `batch` package under the `scheduler` package.
2024-10-25 10:25:51 -04:00
Michael Gaffney 8c291a2934 feat(scheduler): Add retries to job status
This adds retries as an attribute to JobStatus allowing a job to
indicate liveness to the scheduler when work has not progressed.
A job could use this and the statusThreshold passed into the Run method
to break work up into batches that would otherwise timeout if all the
work was attempted at once, for example a long running SQL delete
command.
2024-10-25 10:25:51 -04:00
Michael Gaffney 9354a4ebcf refactor(scheduler): Add statusThreshold parameter to job.Run
The scheduler monitors running jobs to make sure they are not hung. If
the status of a running job does not change after a duration (the
interruptThreshold in the scheduler), the scheduler kills the job. This
change passes the scheduler's interruptThreshold to the job when it
calls Run() on the job.
2024-10-25 10:25:51 -04:00
Michael Gaffney 50ab600519 docs(scheduler): Clarify Job and JobStatus
This adds more details to the Job interface and the JobStatus struct to
clarify how the scheduler uses them.
2024-10-25 10:25:50 -04:00
Dan Heath 1f0bad4d48 docs: Session recording updates (#5195) 2024-10-23 16:16:08 -04:00
Irena Rindos 70079bac7b chore: update security scanner (#5197) 2024-10-23 15:09:19 -04:00
Irena Rindos 36158056d9 feat(workers): add VerifyKnownWorkers repo function (#5189) 2024-10-23 13:41:44 -04:00
Irena Rindos dfde64e648 chore(server): fix const ops (#5190) 2024-10-23 08:42:36 -04:00
Irena Rindos a862dc1691 chore(docs): clarify that storage policies must be attached in order to take effect (#5191) 2024-10-21 16:50:47 -04:00
Michael Li 50db63be95 test(e2e): Add retry to search test (#5187) 2024-10-18 18:06:56 -04:00
Jim 7c89b052b3 chore (changelog): client cache user soft delete. (#5186) 2024-10-18 15:32:30 -04:00
Jim ffd0d2a7d3 feat (cache): impl. soft-delete of users in cache (#5173) 2024-10-18 10:33:29 -04:00
Dan Heath 72e6ea8da0 docs: Clarify need to reload or restart Client Agent on Mac (#5183)
* docs: Clarify need to reload or restart Client Agent on Mac

* docs: Wake up Vercel

* docs: Use full name of client
2024-10-17 18:36:05 -04: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