-
Notifications
You must be signed in to change notification settings - Fork 789
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(server): add optional name/limit/password props for createNewAccessKey method #1273
feat(server): add optional name/limit/password props for createNewAccessKey method #1273
Conversation
@murka Could you add a bit of background on why you need this change? |
@fortuna, I would like to add options when creating a key, right now it takes three steps to create a key, change the name and add restrictions. |
@fortuna This PR is ready to merge! The PR is not blocking compatibility for previous server versions, because new props is optional. https://github.com/murka/outline-server/actions/runs/5685731607 |
@murka Could you add a password field? I would like to synchronize passwords between several servers, but this cannot be done through the API. |
@vatrubin, no, it's not completion for this PR, password will be automatically generated for each accessKey. You can sync opt file storage for between servers. |
@fortuna @daniellacosse, any updates? |
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the test. I realize that one issue was not addressed.
Oh, there are still tests failing when you run |
@fortuna, all jobs is succeed: https://github.com/murka/outline-server/actions/runs/7369417871 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the contribution and patience!
method: | ||
type: string | ||
password: | ||
type: string | ||
port: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think port was not implemented as part of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jadolg I think you are right. You can still set the port for new access keys if you want to do that, but we should add it to the key creation API as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll send a PR to add this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also review the PUT
method. I think it's wired to the same method so it should not work either but the docs claim it does.
even though it was added to the API spec, the parameter is missing from implementation. See Jigsaw-Code/outline-server#1273
No description provided.