Skip to content

cli: require chart path when using enterprise access token#433

Merged
thomasten merged 2 commits intomasterfrom
feat/cli/require-chartpath-with-ent-token
Jun 29, 2023
Merged

cli: require chart path when using enterprise access token#433
thomasten merged 2 commits intomasterfrom
feat/cli/require-chartpath-with-ent-token

Conversation

@thomasten
Copy link
Copy Markdown
Member

@thomasten thomasten commented Jun 28, 2023

Proposed changes

  • Enterprise chart isn't included in the edgeless helm repo anymore, so make --marblerun-chart-path required for enterprise.
  • Propose to let the cli do the base64(token:token) encoding. Not sure if this was left to the user on purpose or not. I can drop that commit if you have concerns (other auth secret formats?). Or I can add a simple heuristic, e.g., starting with ghp_ Actually, I prefer accepting both inputs and convert the PAT automatically for convenience, so I've just added the check. Should be fine now. (Let me know if not.)

@thomasten thomasten requested a review from daniel-weisse June 28, 2023 15:53
@netlify
Copy link
Copy Markdown

netlify bot commented Jun 28, 2023

Deploy Preview for marblerun-docs canceled.

Name Link
🔨 Latest commit 5da1fa8
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/649c62831e9f450008f18718

@thomasten thomasten force-pushed the feat/cli/require-chartpath-with-ent-token branch from 90e4578 to eb97625 Compare June 28, 2023 16:10
@thomasten thomasten force-pushed the feat/cli/require-chartpath-with-ent-token branch from eb97625 to 5da1fa8 Compare June 28, 2023 16:40
Copy link
Copy Markdown
Member

@daniel-weisse daniel-weisse left a comment

Choose a reason for hiding this comment

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

Accepting both formats for PATs sounds like a good idea

@thomasten thomasten merged commit 7bf804d into master Jun 29, 2023
@thomasten thomasten deleted the feat/cli/require-chartpath-with-ent-token branch June 29, 2023 07:04
@thomasten thomasten restored the feat/cli/require-chartpath-with-ent-token branch June 29, 2023 07:04
@thomasten thomasten deleted the feat/cli/require-chartpath-with-ent-token branch June 29, 2023 07:04
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.

2 participants