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

error at the time of deployment : error validating data: ValidationError(Secret.data): invalid type for io.k8s.api.core.v1.Secret.data: #26

Open
sunilkumarjena21 opened this issue Oct 24, 2020 · 3 comments

Comments

@sunilkumarjena21
Copy link

Hello @simoncolincap @janrenz @mvakert @wolfm89

Everything goes well apart from the below error at the time of deployment..

For your information, I have also replaced the placeholders for the base64 credentials in

/overlays/production/ops/bbb-basic-auth-secret.yaml
/base/jitsi/jitsi-secret.yaml

apiVersion: v1 kind: Secret metadata: namespace: jitsi name: jitsi-config type: Opaque data: JICOFO_COMPONENT_SECRET:6290f3e910afc1b0ded51a9ff5825e08 JICOFO_AUTH_PASSWORD:b8cb3a744c3a83b9107f6e4115c0bad8 JVB_AUTH_PASSWORD:119d7ffe32bb2964337068852d6ad078 JVB_STUN_SERVERS:meet-jit-si-turnrelay.jitsi.net:443 TURNCREDENTIALS_SECRET:119d7ffe32bb2964337068852d6ad675 TURN_HOST:52.172.170.79 STUN_PORT:4000 TURN_PORT:4001 TURNS_PORT:4002

error: error validating "STDIN": error validating data: ValidationError(Secret.data): invalid type for io.k8s.api.core.v1.Secret.data: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false

Swift response will be life saver..

Thanks in advance!

@sunilkumarjena21 sunilkumarjena21 changed the title error at the time of deployment error at the time of deployment : error validating data: ValidationError(Secret.data): invalid type for io.k8s.api.core.v1.Secret.data: Oct 24, 2020
@tonezzz
Copy link

tonezzz commented Jan 26, 2021

Perhaps you've found the solution already but here is it again (so the next guy looking for the answer doesn't have to spend hours to find the answer like I've done ;-).

Only the "invalid type for ..." part though. I'm still working on the STDIN error :-(

You cannot use the value directly, you'll have to base64 encode your value before using it. I use this website https://www.base64encode.org/

Good luck! And please let me know if you find the fix for the STDIN part, thanks. :-)

@janrenz
Copy link
Contributor

janrenz commented Jan 27, 2021

Hi, does it make sense to add this to the readme or add seomthing like FAQs?

@nicolas-san
Copy link

nicolas-san commented Mar 23, 2021

Hi, I’ve seen the secret.sh script at the root of the project, so here what I’ve done:

first, generate pwds:

(install pwgen first if you need, or figure out pwd yourself ;) )

pwgen 25 50 -s

Take some passwords from the output and add them into "base/jitsi/jitsi-secret.yaml"

chmod +x secrets.sh

./secret.sh base/jitsi/jitsi-secret.yaml development
(from the root of the project)

=> you need to do it obviously for other "instance" <development|production...>

And the secrets are ok

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

No branches or pull requests

4 participants