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

changes to support usage in serverless backend development #1303

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

joshuaauerbachwatson
Copy link
Contributor

A corollary to recent efforts to reduce dependence on the serverless plugin: we are also trying to eliminate internal usages of nim in our own development processes, replacing it with doctl. In order for that to work, doctl needs some enhancements to work with serverless backend clusters that are not in production (and hence not (yet) known to the portal).

The changes are all in the area of credential management. Basically, they allow both setting and interrogating credentials via their low-level OpenWhisk characteristics without using the namespace APIs.

Only those commands whose nim equivalents are actually used in this way have been changed. The additional flags are all hidden, since this low-level credential manipulation is not something DigitalOcean customers would ordinarily do (although there is nothing insecure about it). Having these features show up in help texts would be distracting and might lead to the impression that this feature had an important mainstream use case.

ddebarros
ddebarros previously approved these changes Nov 7, 2022
credentials, _ := c.Doit.GetBool(c.NS, "credentials")
if credentials {
type showCreds struct {
Auth string `json:auth`
Copy link
Contributor

Choose a reason for hiding this comment

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

@joshuaauerbachwatson can we also include the path to the credentials here ? It would be very useful when running the deployer tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ddebarros I have added the path to the credentials output. To do this cleanly I added to the ServerlessService which in turn required regenerating the mocks. This led me to thinking whether we should expand unit tests to cover these paths, so I may do that also before requesting review again.

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@andrewsomething andrewsomething merged commit ac95a0f into digitalocean:main Nov 14, 2022
@joshuaauerbachwatson joshuaauerbachwatson deleted the terse-status branch November 14, 2022 21:03
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.

3 participants