dependabot[bot]
f75e2c276e
chore(deps): bump actions/checkout from 4.2.1 to 4.2.2 ( #24298 )
2024-11-04 11:42:37 +00:00
Seth Hoenig
4dbcdd103a
ui: show region in header gutter when only one region exists ( #24320 )
...
* ui: show region in header gutter when only one region exists
This PR adds a plain text label of the region to the header when there is
only one region present. Before, nothing was showin in this case, and a
dropdown was shown on federated clusters.
The use case here is for operators of multiple non-federated Nomad clusters,
when all the UI's involved otherwise look identical.
* [ui] Signing in with a token explicitly sets the region dropdown activeRegion (#24347 )
* Signing in with a token explicitly sets the region dropdown activeREgion
* Test and Select a Region default text
* Account for 403 on mocked agent members req
* Dont show the region if it isnt set in agent config
* Small padding css change
* unit test condition moved to stubbable acceptance test
---------
Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com >
2024-11-01 22:58:13 -04:00
Piotr Kazmierczak
f7847c6e5b
state: remove TimeTable and rely on objects' modify times instead ( #24112 )
...
Core scheduler relies on a special table in the state store—the TimeTable—to
figure out which objects can be GC'd. The TimeTable correlates Raft indices
with objects insertion time, a solution we used before most of the objects we
store in the state contained timestamps. This introduced a bit of a memory
overhead and complexity, but most importantly meant that any GC threshold users
set greater than timeTableLimit = 72 * time.Hour was ignored. This PR removes
the TimeTable and relies on object timestamps to determine whether they could
be GCd or not.
2024-11-01 19:38:04 +01:00
Michael Smithhisler
0f97574eae
test: fix rawexec driver unix test imports ( #24352 )
2024-11-01 12:10:03 -04:00
Michael Smithhisler
658c429d75
Drivers: add work_dir config to exec/raw_exec/java drivers ( #24249 )
...
---------
Co-authored-by: wurosh <uros.m.perisic@gmail.com >
Co-authored-by: Michael Schurter <mschurter@hashicorp.com >
Co-authored-by: Tim Gross <tgross@hashicorp.com >
2024-11-01 11:04:40 -04:00
James Rasell
58ea294f0b
docs: add note to reschedule block for update progress deadline. ( #24346 )
...
Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com >
2024-11-01 14:54:51 +00:00
Juana De La Cuesta
c18418fa61
Merge pull request #20073 from hashicorp/feat/uid-gid-restriction
...
Adds ability to restrict uid and gids in exec and raw_exec
2024-10-31 15:48:45 +01:00
Juanadelacuesta
80e398bbf7
test: add tests for validateBounds
2024-10-31 14:54:27 +01:00
Juanadelacuesta
d0b015ec01
func: move the user andd group type declarations
2024-10-31 10:34:26 +01:00
Juanadelacuesta
8752bb0a65
func: move the user lookup into the validation, it's used everywhere the function is called
2024-10-31 10:34:26 +01:00
Juana De La Cuesta
3449056cd6
Update website/content/docs/drivers/raw_exec.mdx
...
Co-authored-by: Michael Smithhisler <michael.smithhisler@hashicorp.com >
2024-10-31 10:26:26 +01:00
Juana De La Cuesta
3f32557f1e
Update website/content/docs/drivers/exec.mdx
...
Co-authored-by: Michael Smithhisler <michael.smithhisler@hashicorp.com >
2024-10-31 09:43:49 +01:00
Juana De La Cuesta
f1439f54f7
Update drivers/shared/validators/validators.go
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com >
2024-10-31 09:32:51 +01:00
Juanadelacuesta
3f884bb3fa
fix: remove the setConfig and modify the test driver to include idValidator to avoid panics
2024-10-30 17:38:54 +01:00
Juanadelacuesta
f954a1a5e8
fix: remove the setConfig and modify the test driver to include idValidator to avoid panics
2024-10-30 16:16:42 +01:00
Juanadelacuesta
a86e951f03
style: rename DeniedHostGidsStr to reflect refactor
2024-10-30 15:22:50 +01:00
Zack Moore
00b88bda74
Upgrade HDS dependency to 4.13 & migrate FlightIcon to Hds::Icon ( #24305 )
...
* upgraded to hds 4.13.0 and migrated FlightIcon instances to Hds::Icon
* updated test selectors
* fixing percy regression
* Vertically align flyout dismiss button and remove unused hasDivider prop
2024-10-30 10:17:07 -04:00
Juanadelacuesta
a90eda628d
func: implement mock validator to avoid changes on the rawexec tests
2024-10-30 15:07:47 +01:00
Juanadelacuesta
088417163b
fix: add set config to populate idValidator on tests
2024-10-30 13:40:19 +01:00
Juanadelacuesta
445b19ce3e
docs: update func docs
2024-10-30 12:35:06 +01:00
Juanadelacuesta
f707a02f4d
fix: update test to force recreation of idvalidator
2024-10-30 12:28:59 +01:00
Juanadelacuesta
bba0407250
style: remove unused code and duplicated test
2024-10-30 11:43:04 +01:00
Juanadelacuesta
3fa2717195
style: remove unused code
2024-10-30 11:36:25 +01:00
Juanadelacuesta
a491ceff5f
fix: put back MSL license header
2024-10-30 11:25:27 +01:00
Juanadelacuesta
e1a0c7cb43
fix: move exclusive unix test back from driver tests
2024-10-30 11:22:41 +01:00
Juanadelacuesta
9a6d2648c8
style: improve debug logging
2024-10-30 11:21:51 +01:00
Juanadelacuesta
2b9bb7a289
license: change missing file to BUSL
2024-10-30 10:24:35 +01:00
James Oulman
202baa1cfc
Validate that Connect Native services define a port ( #24329 )
2024-10-29 14:03:22 -07:00
Austin Culter
3ca728819b
[ui] Prevent double-open for cmd+click on vars index links ( #24316 )
...
* Check for target on click to prevent double-opening cmd+clicked links on var index
* Create cl entry 24316
* Move the dont-open-twice logic into the variable-paths component
2024-10-29 15:50:09 -04:00
Aimee Ukasick
5b1ad83d82
Docs: Add IPv6 support page ( #24228 )
...
* initial content from Daniel's doc
* Add IPv6 support doc to operations section.
* daniel obsessively re-refactors his docs
* Style guide edits
* a few more style nits
---------
Co-authored-by: Daniel Bennett <dbennett@hashicorp.com >
2024-10-29 14:02:04 -05:00
johncooler
c72e5755f8
Add info about authentication ( #23934 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com >
2024-10-29 15:45:49 +00:00
Juanadelacuesta
1751b618e4
func: Add conditional to validation init, to allow for easy testing
2024-10-29 16:45:33 +01:00
Juanadelacuesta
a9a452341c
license: update headers to BUSL
2024-10-29 15:54:09 +01:00
Etienne Bruines
09703b244a
fix: documentation of idempotency_token in API ( #24317 )
...
The parsing of the idempotency_token requires snake case, as it is a URL query parameter and not part of the JSON request body.
See also: 2df473c561/command/agent/http.go (L951)
2024-10-29 09:45:33 -05:00
Juanadelacuesta
0227788e22
fix: update tests configuration
2024-10-29 15:24:12 +01:00
Juanadelacuesta
0cd1b5ff13
func: move the validation to a dependency and use id sets
2024-10-28 18:59:51 +01:00
Juanadelacuesta
65be613be9
fix: rename test to avoid conflict
2024-10-28 12:17:57 +01:00
Juanadelacuesta
d77dc7dfa4
style: format
2024-10-28 11:46:51 +01:00
Juanadelacuesta
60a856fd0c
add changelog entry
2024-10-28 11:36:50 +01:00
Juanadelacuesta
ed04b1bf64
style: remove print
2024-10-28 11:35:03 +01:00
dependabot[bot]
2df473c561
chore(deps): bump actions/setup-go from 5.0.2 to 5.1.0 ( #24299 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](0a12ed9d6a...41dfa10bad )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 11:26:29 +01:00
Mike Nomitch
fd7e81dbce
Fixing accidental move of helper fn to unix only validators file
2024-10-28 11:15:41 +01:00
Mike Nomitch
c4f2a41da6
Splitting validators unix functions into own file
2024-10-28 11:15:41 +01:00
Mike Nomitch
ff5ab3776c
Tweaking user lookup code
2024-10-28 11:15:41 +01:00
Mike Nomitch
e1c226e633
Restructuring IDRange
2024-10-28 11:15:41 +01:00
Mike Nomitch
0fbf592131
moving user out of validators
2024-10-28 11:15:41 +01:00
Mike Nomitch
d8545fa262
Adds CL
2024-10-28 11:15:41 +01:00
Mike Nomitch
916af5a948
Moving idrange struct location
2024-10-28 11:15:41 +01:00
Mike Nomitch
9565dde138
Only parsing id ranges once
2024-10-28 11:15:41 +01:00
Mike Nomitch
d0049b1e63
Fixed error in denied_uids spec
2024-10-28 11:15:41 +01:00