Compare commits

..

8 Commits

Author SHA1 Message Date
942ae25f09
Merge branch 'master' into live
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-23 14:10:16 +04:00
4bf6985b87
Fix wrong matcher for custom LDAP attribute
All checks were successful
continuous-integration/drone/push Build is passing
389ds doesn't like case-insensitive matches for 7-bit ASCII strings
2025-05-23 14:08:41 +04:00
308cac5a39 Merge pull request 'Add Mastodon API client, service for syncing avatars and display names' (#225) from feature/mastodon_api into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #225
Reviewed-by: Greg <greg@noreply.kosmos.org>
2025-05-23 08:48:15 +00:00
7f766473ab
Fix typo
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-22 13:21:37 +04:00
c1bac2625c
Only log exception to stdout
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-05-21 16:42:49 +04:00
c5c6765d67
Log LDAP exceptions
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-21 16:29:52 +04:00
171524fb83
Use production link
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-18 14:58:55 +04:00
3538067da6
Use production link
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 2s
2025-05-18 14:58:34 +04:00
4 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ class WebKeyDirectoryController < WellKnownController
if params[:l].blank?
# TODO store hashed username in db if existing implementations trigger
# this a lot
msg = "WKD request with \"l\" param omitted for hu: #{params[:hashed_username]})"
msg = "WKD request with \"l\" param omitted for hu: #{params[:hashed_username]}"
Sentry.capture_message(msg) if Setting.sentry_enabled?
http_status :bad_request and return
end

View File

@ -52,7 +52,7 @@
<section class="!pt-8 sm:!pt-12">
<h3>OpenPGP</h3>
<ul role="list">
<% example_link = link_to "example", "https://accounts.kosmos.org/.well-known/openpgpkey/hu/yuca4ky39mhwkjo78qb8zjgbfj1hg3yf.txt?l=jimmy",
<% example_link = link_to "example", "https://kosmos.org/.well-known/openpgpkey/hu/yuca4ky39mhwkjo78qb8zjgbfj1hg3yf.txt?l=jimmy",
target: "_blank", class: "text-gray-500 underline" %>
<%= render FormElements::FieldsetComponent.new(
title: "Public key",

View File

@ -63,9 +63,10 @@ export class LdapPolicy implements NPolicy {
out['accept'] = false;
out['msg'] = 'Only members can publish notes on this relay';
}
} catch (ex) {
} catch (e) {
out['accept'] = false;
out['msg'] = 'Auth service temporarily unavailable';
console.warn(`[ldap-policy] Auth service temporarily unavailable: ${e.message}`)
} finally {
await client.unbind();
return ['OK', id, out['accept'], out['msg']];

View File

@ -4,6 +4,6 @@ add: attributeTypes
attributeTypes: ( 1.3.6.1.4.1.61554.1.1.2.1.21
NAME 'nostrKey'
DESC 'Nostr public key'
EQUALITY caseIgnoreMatch
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )