Conversation
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
Olshansk
left a comment
There was a problem hiding this comment.
Just a few nites. Let's tend to it and merge it in.
Also, while looking into this, I realized that chatGPT can be great for helping write k8s manifest templates
| } | ||
|
|
||
| for id, privHexString := range private_keys_secret.Data { | ||
| validatorKeysMap[id] = string(privHexString) |
There was a problem hiding this comment.
Is the hex string stored as utf8 encoded bytes in Data? If so, just add a comment
There was a problem hiding this comment.
So we're encoding it to base64, but then casting it to a byte slice which is just "a weird thing to do" unless you want to get the byte count of the string or something.
Sound correct? Can you add a TODO/BUG next to the Data attribute so we don't lose this.
There was a problem hiding this comment.
No that's K8S documentation, they return a []byte and say that it's base64 encoded but it's not.
@Olshansk it should be good to go
I have snippets in VSCode from my Hashicorp days for templates, the tooling improved A LOT over the years. |
Olshansk
left a comment
There was a problem hiding this comment.
Let's tend to https://github.com/pokt-network/pocket/pull/517/files#r1107913640 later
* pokt/main: [Infra] KISS 3 - Cluster Manager [Merge me after #521] - (Issues: #490) (#522) Refactor/fix state sync logs (#515) [P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429) (#521) [Core] KISS 1 - Finite State Machine [Merge me first] - (Issue: #499) (#520) [CLI] Stake command bugfix (#518) [CLI] Cannot run make localnet_client_debug: Cannot initialise the keybase with the validator keys: Unable to find YAML file (#517) Fix the link shown by `make go_doc` Fixed duplicate GITHUB_WIKI tag [Documentation] Update Devlog Formatting (#512) [Docs & Bugs] Minor fixes post keybase changes (#513) [Utility] Foundational bugs, tests, code cleanup and improvements (1 / 2) (#503) [Tooling] Integrate Keybase w/ CLI (Issue #484 ) (#501) update devlog2.md update devlog2.md Update devlog1.md
* pokt/main: [Infra] KISS 3 - Cluster Manager [Merge me after #521] - (Issues: #490) (#522) Refactor/fix state sync logs (#515) [P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429) (#521) [Core] KISS 1 - Finite State Machine [Merge me first] - (Issue: #499) (#520) [CLI] Stake command bugfix (#518) [CLI] Cannot run make localnet_client_debug: Cannot initialise the keybase with the validator keys: Unable to find YAML file (#517) Fix the link shown by `make go_doc` Fixed duplicate GITHUB_WIKI tag [Documentation] Update Devlog Formatting (#512) [Docs & Bugs] Minor fixes post keybase changes (#513) [Utility] Foundational bugs, tests, code cleanup and improvements (1 / 2) (#503) [Tooling] Integrate Keybase w/ CLI (Issue #484 ) (#501) update devlog2.md update devlog2.md Update devlog1.md


Description
This PR introduces the ability to fetch private keys when running in Kubernetes
Issue
Fixes #516
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_testREADMERequired Checklist
If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)