Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5-internal/typos-etc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typos, dangling reference in source code haddocs, etc.
2 changes: 1 addition & 1 deletion docs/legacy/reference/user/registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ The rest of the unauthorized end-points is safe:
- `~* ^/teams/invitations/info$`: only `GET`; requires invitation code.
- `~* ^/teams/invitations/by-email$`: only `HEAD`.
- `/invitations/info`: discontinued feature, can be removed from nginz config.
- `/conversations/code-check`: link validatoin for ephemeral/guest users.
- `/conversations/code-check`: link validation for ephemeral/guest users.
- `/provider/*`: bots need to be registered to a team before becoming active. so if an attacker does not get access to a team, they cannot deploy a bot.
- `~* ^/custom-backend/by-domain/([^/]*)$`: only `GET`; only exposes a list of domains that has is maintained through an internal end-point. used to redirect stock clients from the cloud instance to on-prem instances.
- `~* ^/teams/api-docs`: only `GET`; swagger for part of the rest API. safe: it is trivial to identify the software that is running on the instance, and from there it is trivial to get to the source on github, where this can be obtained easily, and more.
Expand Down
2 changes: 0 additions & 2 deletions libs/galley-types/src/Galley/Types/Teams.hs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ data FeatureLegalHold
deriving (Eq, Ord, Show, Enum, Bounded, Generic)

-- | Default value for all teams that have not enabled or disabled this feature explicitly.
-- See also 'Wire.API.Team.SearchVisibility.TeamSearchVisibilityEnabled',
-- 'Wire.API.Team.SearchVisibility.TeamSearchVisibility'.
data FeatureTeamSearchVisibilityAvailability
= FeatureTeamSearchVisibilityAvailableByDefault
| FeatureTeamSearchVisibilityUnavailableByDefault
Expand Down
6 changes: 3 additions & 3 deletions libs/wire-api/src/Wire/API/Team/Feature.hs
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ data AllFeatureConfigs = AllFeatureConfigs
{ afcLegalholdStatus :: WithStatus LegalholdConfig,
afcSSOStatus :: WithStatus SSOConfig,
afcTeamSearchVisibilityAvailable :: WithStatus SearchVisibilityAvailableConfig,
afcSearchVisibilityInboundConfig :: WithStatus SearchVisibilityInboundConfig,
afcValidateSAMLEmails :: WithStatus ValidateSAMLEmailsConfig,
afcDigitalSignatures :: WithStatus DigitalSignaturesConfig,
afcAppLock :: WithStatus AppLockConfig,
Expand All @@ -1006,8 +1007,7 @@ data AllFeatureConfigs = AllFeatureConfigs
afcSelfDeletingMessages :: WithStatus SelfDeletingMessagesConfig,
afcGuestLink :: WithStatus GuestLinksConfig,
afcSndFactorPasswordChallenge :: WithStatus SndFactorPasswordChallengeConfig,
afcMLS :: WithStatus MLSConfig,
afcSearchVisibilityInboundConfig :: WithStatus SearchVisibilityInboundConfig
afcMLS :: WithStatus MLSConfig
}
deriving stock (Eq, Show)
deriving (FromJSON, ToJSON, S.ToSchema) via (Schema AllFeatureConfigs)
Expand All @@ -1019,6 +1019,7 @@ instance ToSchema AllFeatureConfigs where
<$> afcLegalholdStatus .= featureField
<*> afcSSOStatus .= featureField
<*> afcTeamSearchVisibilityAvailable .= featureField
<*> afcSearchVisibilityInboundConfig .= featureField
<*> afcValidateSAMLEmails .= featureField
<*> afcDigitalSignatures .= featureField
<*> afcAppLock .= featureField
Expand All @@ -1029,7 +1030,6 @@ instance ToSchema AllFeatureConfigs where
<*> afcGuestLink .= featureField
<*> afcSndFactorPasswordChallenge .= featureField
<*> afcMLS .= featureField
<*> afcSearchVisibilityInboundConfig .= featureField
where
featureField ::
forall cfg.
Expand Down
2 changes: 1 addition & 1 deletion libs/wire-api/src/Wire/API/Team/SearchVisibility.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import Wire.API.Arbitrary (Arbitrary, GenericUniform (..))
-- Name: can be found by same team only
-- @
--
-- See also: 'FeatureTeamSearchVisibility', 'TeamSearchVisibilityEnabled'.
-- See also: 'FeatureTeamSearchVisibilityAvailability'.
data TeamSearchVisibility
= SearchVisibilityStandard
| SearchVisibilityNoNameOutsideTeam
Expand Down
6 changes: 3 additions & 3 deletions services/galley/src/Galley/API/Teams/Features.hs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ getAllFeatureConfigsForServer =
<$> getConfigForServer @db @LegalholdConfig
<*> getConfigForServer @db @SSOConfig
<*> getConfigForServer @db @SearchVisibilityAvailableConfig
<*> getConfigForServer @db @SearchVisibilityInboundConfig
<*> getConfigForServer @db @ValidateSAMLEmailsConfig
<*> getConfigForServer @db @DigitalSignaturesConfig
<*> getConfigForServer @db @AppLockConfig
Expand All @@ -437,7 +438,6 @@ getAllFeatureConfigsForServer =
<*> getConfigForServer @db @GuestLinksConfig
<*> getConfigForServer @db @SndFactorPasswordChallengeConfig
<*> getConfigForServer @db @MLSConfig
<*> getConfigForServer @db @SearchVisibilityInboundConfig

getAllFeatureConfigsUser ::
forall db r.
Expand All @@ -460,6 +460,7 @@ getAllFeatureConfigsUser uid =
<$> getConfigForUser @db @LegalholdConfig uid
<*> getConfigForUser @db @SSOConfig uid
<*> getConfigForUser @db @SearchVisibilityAvailableConfig uid
<*> getConfigForUser @db @SearchVisibilityInboundConfig uid
<*> getConfigForUser @db @ValidateSAMLEmailsConfig uid
<*> getConfigForUser @db @DigitalSignaturesConfig uid
<*> getConfigForUser @db @AppLockConfig uid
Expand All @@ -470,7 +471,6 @@ getAllFeatureConfigsUser uid =
<*> getConfigForUser @db @GuestLinksConfig uid
<*> getConfigForUser @db @SndFactorPasswordChallengeConfig uid
<*> getConfigForUser @db @MLSConfig uid
<*> getConfigForUser @db @SearchVisibilityInboundConfig uid

getAllFeatureConfigsTeam ::
forall db r.
Expand All @@ -492,6 +492,7 @@ getAllFeatureConfigsTeam tid =
<$> getConfigForTeam @db @LegalholdConfig tid
<*> getConfigForTeam @db @SSOConfig tid
<*> getConfigForTeam @db @SearchVisibilityAvailableConfig tid
<*> getConfigForTeam @db @SearchVisibilityInboundConfig tid
<*> getConfigForTeam @db @ValidateSAMLEmailsConfig tid
<*> getConfigForTeam @db @DigitalSignaturesConfig tid
<*> getConfigForTeam @db @AppLockConfig tid
Expand All @@ -502,7 +503,6 @@ getAllFeatureConfigsTeam tid =
<*> getConfigForTeam @db @GuestLinksConfig tid
<*> getConfigForTeam @db @SndFactorPasswordChallengeConfig tid
<*> getConfigForTeam @db @MLSConfig tid
<*> getConfigForTeam @db @SearchVisibilityInboundConfig tid

-- | Note: this is an internal function which doesn't cover all features, e.g. LegalholdConfig
genericGetConfigForTeam ::
Expand Down