Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/vaults #761

Merged
merged 2 commits into from
Oct 6, 2022
Merged

Feat/vaults #761

merged 2 commits into from
Oct 6, 2022

Conversation

GGabriele
Copy link
Collaborator

Requires Kong/go-kong#224

@GGabriele GGabriele temporarily deployed to Configure ci October 4, 2022 19:55 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 4, 2022 19:58 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 4, 2022 19:58 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 4, 2022 20:00 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 4, 2022 20:00 Inactive
@GGabriele GGabriele marked this pull request as ready for review October 5, 2022 09:43
@GGabriele GGabriele requested a review from a team October 5, 2022 09:44
@GGabriele
Copy link
Collaborator Author

Tested and confirmed this works well with DB-less declarative config too.

@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 12:36 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 12:37 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Base: 39.82% // Head: 39.00% // Decreases project coverage by -0.81% ⚠️

Coverage data is based on head (03f4899) compared to base (1b875f7).
Patch coverage: 3.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #761      +/-   ##
==========================================
- Coverage   39.82%   39.00%   -0.82%     
==========================================
  Files          87       88       +1     
  Lines        9875    10103     +228     
==========================================
+ Hits         3933     3941       +8     
- Misses       5563     5777     +214     
- Partials      379      385       +6     
Impacted Files Coverage Δ
cmd/common.go 5.26% <0.00%> (-0.18%) ⬇️
cmd/common_konnect.go 7.42% <0.00%> (-0.03%) ⬇️
diff/diff.go 0.00% <0.00%> (ø)
diff/order.go 79.16% <ø> (ø)
dump/dump.go 1.57% <0.00%> (-0.08%) ⬇️
file/types.go 60.89% <0.00%> (-1.49%) ⬇️
state/builder.go 0.00% <0.00%> (ø)
state/types.go 63.10% <0.00%> (-2.60%) ⬇️
state/vault.go 0.00% <0.00%> (ø)
utils/types.go 14.88% <ø> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 17:06 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 17:07 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 17:43 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 17:43 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 18:14 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 5, 2022 18:14 Inactive
aboudreault
aboudreault previously approved these changes Oct 5, 2022
Copy link
Contributor

@aboudreault aboudreault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @GGabriele, only a minor comment in tests. I tested this deck feature with kong gateway 3.0 and it works well (sync, dump, re-sync diff, etc.). Also tested a vault reference in a plugin (rate-limiting) and things look good there too. 👍

certificates:
- id: 13c562a1-191c-4464-9b18-e5222b46035b
cert: "{vault://env/my-secret-cert}"
key: "{vault://env/my-secret-key}"
Copy link
Contributor

@aboudreault aboudreault Oct 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we want to test the vault entity, we should set these vault references to {vault://my-env-vault/key}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

.ci/setup_kong_ee.sh Show resolved Hide resolved
file/builder.go Outdated Show resolved Hide resolved
state/vault.go Show resolved Hide resolved
types/postProcess.go Show resolved Hide resolved
types/vault.go Show resolved Hide resolved
types/vault.go Show resolved Hide resolved
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 06:43 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 06:43 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 07:06 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 07:06 Inactive
mikefero
mikefero previously approved these changes Oct 6, 2022
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 13:37 Inactive
@GGabriele GGabriele temporarily deployed to Configure ci October 6, 2022 13:37 Inactive
@GGabriele GGabriele merged commit db773ae into main Oct 6, 2022
@GGabriele GGabriele deleted the feat/vaults branch October 6, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants