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: support for generated secrets in schemas #4347

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

pmuir
Copy link
Contributor

@pmuir pmuir commented Jun 20, 2019

Submitter checklist

  • Change is code complete and matches issue description.
  • Change is covered by existing or new tests.

Description

feat: support for generated secrets in schemas

If "default":"<generated>” is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir pmuir@bleepbleep.org.uk

Special notes for the reviewer(s)

Which issue this PR fixes

#4328

allowRepeat = true
)

// Generate a secret using sensible defaults
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment on exported function DefaultGenerateSecret should be of the form "DefaultGenerateSecret ..."

@pmuir pmuir force-pushed the step_create_values1 branch 2 times, most recently from b5b8f31 to b7f7583 Compare June 20, 2019 11:19
@codecov
Copy link

codecov bot commented Jun 20, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@ab4a11e). Click here to learn what that means.
The diff coverage is 10.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4347   +/-   ##
=========================================
  Coverage          ?   31.17%           
=========================================
  Files             ?      688           
  Lines             ?    90588           
  Branches          ?        0           
=========================================
  Hits              ?    28243           
  Misses            ?    60945           
  Partials          ?     1400
Flag Coverage Δ
#e2e 31.17% <10.61%> (?)
Impacted Files Coverage Δ
pkg/apps/install.go 0% <0%> (ø)
pkg/secreturl/helpers.go 10% <0%> (ø)
pkg/cmd/add/add_app.go 25.2% <0%> (ø)
pkg/util/secrets/secrets.go 0% <0%> (ø)
pkg/cmd/upgrade/upgrade_apps.go 28.82% <0%> (ø)
pkg/surveyutils/jsonschema.go 0% <0%> (ø)
pkg/apps/values.go 0% <0%> (ø)
pkg/cmd/step/create/step_create.go 65.21% <100%> (ø)
pkg/cmd/step/create/step_create_values.go 26.86% <26.86%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab4a11e...b7f7583. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 20, 2019

Codecov Report

Merging #4347 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4347      +/-   ##
==========================================
- Coverage   31.18%   31.18%   -0.01%     
==========================================
  Files         687      688       +1     
  Lines       90565    90585      +20     
==========================================
  Hits        28245    28245              
- Misses      60921    60941      +20     
  Partials     1399     1399
Flag Coverage Δ
#e2e 31.18% <0%> (-0.01%) ⬇️
#integration 100% <ø> (?)
Impacted Files Coverage Δ
pkg/surveyutils/jsonschema.go 0% <0%> (ø) ⬆️
pkg/util/secrets/secrets.go 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bad8eab...ccd9b67. Read the comment docs.

@pmuir pmuir force-pushed the step_create_values1 branch from b7f7583 to 28a4d7c Compare June 20, 2019 13:36
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
@pmuir pmuir force-pushed the step_create_values1 branch from 28a4d7c to ccd9b67 Compare June 20, 2019 17:38
@jstrachan
Copy link
Member

/lgtm

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jstrachan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot jenkins-x-bot merged commit b7e23b3 into jenkins-x:master Jun 20, 2019
pmuir added a commit to pmuir/jx that referenced this pull request Jun 20, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
pmuir added a commit to pmuir/jx that referenced this pull request Jun 20, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
pmuir added a commit to pmuir/jx that referenced this pull request Jun 20, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
pmuir added a commit to pmuir/jx that referenced this pull request Jun 21, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
pmuir added a commit to pmuir/jx that referenced this pull request Jun 21, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
jenkins-x-bot pushed a commit that referenced this pull request Jun 21, 2019
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
daveconde pushed a commit to daveconde/jx that referenced this pull request Apr 7, 2020
If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
daveconde pushed a commit to daveconde/jx that referenced this pull request Apr 7, 2020
…ins-x#4360)

If `"default":"<generated>”` is used on a token or a password then it will default to a generated secret

Signed-off-by: Pete Muir <pmuir@bleepbleep.org.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants