Donal McBreen
2bd716ece4
Drop the TestOptionalAccount adapter
...
It's included in the gem lib which is best to avoid and we can infer
that it works account optional adapters.
2025-01-17 12:37:12 +00:00
Donal McBreen
f9a78f4fcb
gcloud login tidy
...
Use unless instead of if !, don't suggest running gcloud auth login,
we've just tried that.
2025-01-17 12:34:38 +00:00
Donal McBreen
10dafc058a
Extract secrets_get_flags
2025-01-17 12:31:24 +00:00
Donal McBreen
5e2678dece
Ensure external input is shell escaped
2025-01-17 12:28:59 +00:00
Donal McBreen
a1708f687f
Prefix secrets in fetch_secrets
...
This allows us to remove the custom fetch method for enpass.
2025-01-17 12:24:46 +00:00
Donal McBreen
db7556ed99
Fix enpass adapter
...
There were changes in main that meant the tests failed after merging.
Adding the new `requires_account?` method to the enpass adapter fixed it.
2025-01-17 12:07:56 +00:00
Donal McBreen
93133cd7a9
Merge pull request #1236 from andrelaszlo/gcp_secret_manager_adapter
...
Add GCP Secret Manager adapter
2025-01-17 12:07:33 +00:00
Donal McBreen
a7b2ef56c7
Merge pull request #1189 from egze/enpass
...
Add support for Enpass - a password manager for secrets
2025-01-17 12:01:24 +00:00
Donal McBreen
06f2cb223e
Merge branch 'main' into gcp_secret_manager_adapter
2025-01-17 11:57:52 +00:00
Donal McBreen
ea7e72d75f
Merge pull request #1186 from oandalib/bitwarden-secrets-manager
...
feat: add Bitwarden Secrets Manager adapter
2025-01-17 11:43:19 +00:00
Donal McBreen
9035bd0d88
Merge pull request #1359 from basecamp/add-env-precedence-tests
...
Add tests for env/secret file precedence
2025-01-17 11:19:32 +00:00
Donal McBreen
dd8cadf743
Add tests for env/secret file precedence
2025-01-17 11:06:29 +00:00
Donal McBreen
f1a9a09929
Merge pull request #1265 from phoozle/proxy-bind-ip
...
Add proxy boot_config --publish-ip argument
2025-01-17 08:49:17 +00:00
Donal McBreen
620b132138
Merge pull request #1313 from emmceemoore/patch-1
...
Configure the CLI to exit non-zero on failures.
2025-01-17 08:31:58 +00:00
Donal McBreen
2e7d0ddc44
Merge pull request #1358 from basecamp/dont-run-assets-container
...
Create but don't run the assets container
2025-01-17 08:09:01 +00:00
Donal McBreen
ab8396fbb2
Merge pull request #1032 from basecamp/set-config-file-and-deploy-in-aliases
...
Allow destination and config-file in aliases
2025-01-17 08:07:06 +00:00
Donal McBreen
2cdca4596c
Create but don't run the assets container
...
We don't need to run the assets container to copy the assets out,
instead we can just create, copy and remove.
2025-01-16 16:28:02 +00:00
Donal McBreen
78fcc3d88f
Allow destination and config-file in aliases
...
We only loaded the configuration once, which meant that aliases always
used the initial configuration file and destination.
We don't want to load the configuration in subcommands as it is not
passed all the options we need. But just checking if we are in a
subcommand is enough - the alias reloads and the subcommand does not.
One thing to note is that anything passed on the command line overrides
what is in the alias, so if an alias says
`other_config: config -c config/deploy2.yml` and you run
`kamal other_config -c config/deploy.yml`, it won't switch.
2025-01-16 15:51:18 +00:00
Mike Moore
2943c4a301
Use the newer option name.
2024-12-20 08:45:47 -07:00
Mike Moore
32e1b6504d
Re-trigger GitHub actions.
2024-12-20 08:26:14 -07:00
Mike Moore
39e2c4f848
Trying the new method for setting proxy boot config.
2024-12-19 12:14:00 -07:00
Mike Moore
89db5025a0
Configure Thor to "exit on failure".
2024-12-19 09:28:37 -07:00
Donal McBreen
1547089da0
Bump version for 2.4.0
v2.4.0
2024-12-13 12:38:26 +00:00
Donal McBreen
ae7a4f3411
Update yml files to match doc site changes
2024-12-13 12:27:22 +00:00
Donal McBreen
77c202ebaf
Highlight ssl/forward_headers behaviour
...
Pulled in from: https://github.com/basecamp/kamal-site/pull/141
2024-12-13 12:20:05 +00:00
Donal McBreen
063dfd9edd
Merge pull request #1296 from basecamp/fix-for-dotenv-1.3.5
...
Fix for Dotenv 3.1.5
2024-12-13 10:54:16 +00:00
Donal McBreen
3e4a190173
Fix for Dotenv 3.1.5
...
In Dotenv 3.1.5, `Dotenv.parse` no longer returns values that are
already in the environment.
See https://github.com/bkeepers/dotenv/issues/518
We can get the values though by setting overwrite: true, which works
with both 3.1.4 and 3.1.5.
2024-12-13 10:42:02 +00:00
Donal McBreen
d9c25533e4
Merge pull request #1292 from nickhammond/aws-secrets-manager-simple
...
Aws secrets manager simple strings and error checking
2024-12-13 09:45:52 +00:00
Donal McBreen
d5ec0e6ad2
Merge pull request #1291 from nickhammond/remove-grep-options-alias
...
Remove the alias for grep_options, issues processing with thor
2024-12-13 09:44:06 +00:00
Nick Hammond
725da6aa68
Rubocop, Rubocop
2024-12-12 05:29:15 -07:00
Nick Hammond
84a874e63b
Update secrets manager spec to render multiple errors
2024-12-12 05:15:52 -07:00
Nick Hammond
ba567e0474
Just map the secrets returned from AWS
2024-12-12 05:09:12 -07:00
Nick Hammond
e464177349
Check for errors from AWS secrets manager
2024-12-12 04:58:53 -07:00
Nick Hammond
68e6f82b30
Grab from secret2 for assertion
2024-12-12 04:17:03 -07:00
Nick Hammond
55983c6431
AWS secrets manager value can be a string
2024-12-12 04:10:48 -07:00
Nick Hammond
b2cf3f33a7
Remove the alias for grep_options, issues processing with thor
2024-12-12 03:47:25 -07:00
Jeremy Daer
16fb3adacb
No need for IO.read for basic file paths
...
References 3cad095 , e1d5182
2024-12-10 16:08:58 -08:00
Jeremy Daer
407c8b834e
Simplify hostname trimming. References #762 .
2024-12-10 15:57:30 -08:00
dependabot[bot]
3468b45014
Bump actionpack in the bundler group across 1 directory ( #1283 )
...
Bumps the bundler group with 1 update in the / directory: [actionpack](https://github.com/rails/rails ).
Updates `actionpack` from 7.1.4.1 to 7.1.5.1
- [Release notes](https://github.com/rails/rails/releases )
- [Changelog](https://github.com/rails/rails/blob/v8.0.0.1/actionpack/CHANGELOG.md )
- [Commits](https://github.com/rails/rails/compare/v7.1.4.1...v7.1.5.1 )
---
updated-dependencies:
- dependency-name: actionpack
dependency-type: indirect
dependency-group: bundler
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-10 15:46:48 -08:00
André Laszlo
8103d68688
Shellescape all interpolated strings in commands
2024-12-06 17:43:47 +01:00
André Laszlo
eb82b4a753
Keep the 'default' prefix for secret items
2024-12-06 17:40:08 +01:00
André Laszlo
19b4359b17
Use a nil session
2024-12-06 17:32:31 +01:00
André Laszlo
dc64aaa0de
Add gcloud auth login invocation to test
2024-12-06 17:32:01 +01:00
André Laszlo
ea170fbe5e
Run gcloud auth login if user is not authenticated
2024-12-06 17:22:03 +01:00
André Laszlo
18f2aae936
Simplify parsing by changing account separators
2024-12-06 17:15:22 +01:00
André Laszlo
e314f38bdc
Merge remote-tracking branch 'origin/main' into gcp_secret_manager_adapter
2024-12-06 17:08:26 +01:00
Matthew Croall
1c8a56b8cf
Change invalid publish ip exception class
2024-12-04 10:44:16 +10:30
Matthew Croall
e597ae6155
Add support for multiple publish ip addresses
2024-12-04 10:42:50 +10:30
Donal McBreen
495b3cd95f
Merge pull request #1270 from basecamp/kamal-proxy-0.8.4
...
Update to proxy version 0.8.4
2024-12-03 12:15:00 +00:00
Donal McBreen
b04e8cd8d7
Merge pull request #1272 from basecamp/dependabot/bundler/bundler-7ec3bf8405
...
Bump rails-html-sanitizer from 1.6.0 to 1.6.1 in the bundler group across 1 directory
2024-12-03 12:14:47 +00:00