memos/internal
boojack d1cef7a9ab feat(auth): add private instance mode derived from instance_url
Run the instance in private mode when instance_url is not configured: the API rejects anonymous requests except the auth-bootstrap set (sign-in, token refresh, instance profile/settings, SSO providers, share-link access) plus first-run user creation, and the web UI redirects anonymous visitors to /auth instead of /explore. Setting instance_url keeps the current public behavior. Access tokens and personal access tokens are never gated.

Enforcement lives in a shared Authorizer used by both the Connect interceptor and the gRPC-gateway middleware; the file server applies the same rule to public-memo attachments and avatars. Also merges the duplicated Authenticate/AuthenticateToUser token dispatch behind resolveBearer, dedups the AuthContext unauthenticated state, extracts the redirect decision into a pure shouldGatePrivateInstance helper, and prints the access mode at startup.
2026-07-05 22:48:00 +08:00
..
ai refactor: use the built-in max/min to simplify the code (#6060) 2026-07-02 08:35:47 +08:00
base fix: user resource names can be uuidv4 from idp sub claim (#5856) 2026-04-19 13:05:08 +08:00
cron refactor: move plugin packages under internal 2026-04-06 11:10:32 +08:00
email feat(notification): add smtp email settings 2026-05-01 18:48:21 +08:00
filter feat(filter): standard CEL now variable, time accessors, set ops 2026-06-22 22:42:44 +08:00
httpgetter fix: support <meta name=description> in link previews (#6000) 2026-06-02 23:02:21 +08:00
idp feat: redesign account and SSO management (#5886) 2026-04-24 09:08:58 +08:00
markdown fix(markdown): ignore tags inside links 2026-06-06 00:01:28 +08:00
motionphoto feat(attachments): add Live Photo and Motion Photo support (#5810) 2026-04-06 10:47:01 +08:00
profile feat(auth): add private instance mode derived from instance_url 2026-07-05 22:48:00 +08:00
scheduler refactor: use slices.Backward to simplify the code (#6058) 2026-07-01 18:38:24 +08:00
storage/s3 feat(storage): add insecure_skip_tls_verify option for S3 2026-06-23 00:04:54 +08:00
testutil feat(attachments): add Live Photo and Motion Photo support (#5810) 2026-04-06 10:47:01 +08:00
util feat: update gomark dependency and refactor markdown parsing logic 2025-09-17 21:09:30 +08:00
version fix(release): inject build version into artifacts 2026-04-19 12:02:32 +08:00
webhook chore(webhook): reveal-later signing secret flow 2026-06-26 09:03:24 +08:00