Repository navigation
Easier app certificate request - #1975
Draft
lukasdotcom wants to merge 5 commits into
Draft
lukasdotcom wants to merge 5 commits into
lukasdotcom wants to merge 5 commits into
Conversation
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
for more information, see https://pre-commit.ci
edward-ly
reviewed
Nov 18, 2026
Collaborator
There was a problem hiding this comment.
Nice, the key/CSR generation works for me, along with the automatic PR (nextcloud/app-certificate-requests#1478)! A few more notes on top of the other comments:
- The form needs more validations:
- cap app_id length to 32 characters
- check that the CSR's CN and app_id actually match
- check if the app_id is already taken by another app or not
- When creating the PR, check that the branch name is also not already taken
- PR commit is missing DCO
Comment on lines
+70
to
+72
| <button type="button" id="generate-key-cert" class="btn btn-default"> | ||
| {% trans 'Generate key and CSR' %} | ||
| </button> |
Collaborator
There was a problem hiding this comment.
This button needs a different color to not blend in with the background. Maybe it would look better centered too.
Comment on lines
+253
to
+254
| if not settings.GITHUB_API_TOKEN: | ||
| raise ValidationError("Certificate request submission is not configured") |
Collaborator
There was a problem hiding this comment.
I'd say this is some kind of server-side error more than a ValidationError, since it's not the user's fault in this case.
| app_id = serializer.validated_data["app_id"] | ||
| repository = serializer.validated_data["repository"] | ||
| csr = serializer.validated_data["csr"].strip() | ||
| client = GitHubClient(settings.GITHUB_API_BASE_URL, settings.GITHUB_API_TOKEN) |
Collaborator
There was a problem hiding this comment.
Maybe we should use a separate GITHUB_APP_CERTIFICATE_TOKEN with write permissions for creating PRs since GITHUB_API_TOKEN only needs read access at the moment.
lukasdotcom
force-pushed
the
easier-app-release
branch
2 times, most recently
from
November 24, 2026 16:07
c5291aa to
d030e1f
Compare
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
lukasdotcom
force-pushed
the
easier-app-release
branch
from
November 24, 2026 17:05
d030e1f to
820efc7
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Form to create app certificate request

🤖 AI (if applicable)