This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
PMM-10078 Extract portal client, add dev env variables for portal address overwriting #1136
Open
artemgavrilov
wants to merge
16
commits into
main
Choose a base branch
from
PMM-10078-dev-env-variables
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b7dddad
PMM-10078 Extract portal client, add dev env variables
artemgavrilov da8be8d
Merge branch 'main' into PMM-10078-dev-env-variables
artemgavrilov 70570cf
PMM-10078 Refactoring
artemgavrilov dbc5100
Merge branch 'main' into PMM-10078-dev-env-variables
artemgavrilov 14af02e
PMM-10078 Refactoring
artemgavrilov d055114
PMM-10078 Fix tests
artemgavrilov 8131143
PMM-10078 Remove unused code
artemgavrilov e20471f
PMM-10078 Add missing return statement
artemgavrilov d1f2e04
PMM-10078 Add env variables to the docker compose file
artemgavrilov 2ce3b59
Merge branch 'main' into PMM-10078-dev-env-variables
artemgavrilov 5f0d462
Merge branch 'main' into PMM-10078-dev-env-variables
artemgavrilov bc8b3f3
Merge branch 'main' into PMM-10078-dev-env-variables
fabio-silva 5472976
PMM-10078 Refactoring
artemgavrilov 4664fd8
Merge branch 'main' into PMM-10078-dev-env-variables
yurkovychv 14ead4e
Merge remote-tracking branch 'origin/main' into PMM-10078-dev-env-var…
artemgavrilov ea557fa
Merge remote-tracking branch 'origin/main' into PMM-10078-dev-env-var…
artemgavrilov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it is not clear if it is a PATH to a key, how about renaming to something like
PERCONA_TEST_PLATFORM_PUBLIC_KEY_PATH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a path, it's key itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you show example of how it is supposed to be used? the key is multiline. the user should cat it can send it?
I think, it can be a potential source of issues. ie when user set value in terminal (escaping and new line issues).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's minisign public key, it's one line, here is example:
pmm-managed/services/checks/checks_test.go
Line 46 in 05124a1
This variable should not be used by anyone outside Percona. We print warnings in logs each time
PERCONA_TEST_*
variable used. It's completely for dev/qa needs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imagine user creates
.env
, and sets env var this way:- PERCONA_TEST_PLATFORM_PUBLIC_KEY=${PERCONA_TEST_PLATFORM_PUBLIC_KEY}
how .env should look like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is how it will look like for our dev environment:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, it is very confusing, because it can be though as https cert
can you pls rename so that it will clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PUBLIC_KEY
part is confusing, can we rename it according to it's function? iePERCONA_TEST_PLATFORM_ENCRYPTION_KEY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact it's not a new variable, it was
PERCONA_TEST_CHECKS_PUBLIC_KEY
for a long time. I renamed it toPERCONA_TEST_PLATFORM_PUBLIC_KEY
because now it used not only for checks system but also for alerting.It's public key for signatures verification, not for encryption/decryption. Maybe
PERCONA_TEST_PLATFORM_VERIFICATION_KEY
will work better. BTW I will create a poll