Redfly is the identity and master-data service for every Olivia Douglas Support Services BC app. It signs people in with their phone, issues short-lived signed tokens, revokes sessions everywhere at once, takes in telemetry and keeps the master database.
About the project
Redfly is the identity and master-data service at the centre of the Olivia Douglas Support Services BC application estate. Every end user of every app signs in at Redfly, and each app then maps that user to its own local Shiro roles.
It provides sign-in, credentials, session revocation, device app passwords, telemetry intake, SMS notifications and the master database. Because every app’s sign-in depends on it, Redfly is built first, then the apps.
Role in the estate
| Service | Role | HTTPS port |
|---|---|---|
| Redfly | Identity, tokens, revocations, app passwords, SMS, telemetry intake, master DB | 8443 |
| DarkCrow | Telemetry store and search | 8444 |
| Caulight | Accessible experiences marketplace | 8445 |
| Bubbl | Client case management | 8446 |
| FairFeather | Jobs: outbox delivery, Cassandra maintenance, telemetry purge | 8447 |
- Redfly reaches DarkCrow and FairFeather through Pulsar only.
- FairFeather delivers Bubbl’s outbox entries to Redfly’s
/v1/sync/bubbl. - The redfly-client library and its WordPress plugin connect apps and sites to Redfly.
Runtime
- JDK 17 and Kotlin 2.2.21 (the template’s
kotlin.versionis overridden to 2.2.21). - Spring Boot 4.1.3 (
spring-boot-starter-parent), with the Maven wrapper included. - Group id
ca.odssbc, version0.0.1-SNAPSHOT, built with Maven as a flat JAR plus an assembly zip. - Kept starters: Cassandra, Data Cassandra, Mustache, Pulsar, Security, OAuth2 client, Spring Session (Redis), WebMVC, WebSocket and Jackson Kotlin.
- Removed starters: AMQP, Kafka and Kafka Streams, along with their test starters. Pulsar is the only message broker.
- Package root
ca.odssbc.redfly, built fromtemplate/redfly-spring-template.zip. - Cassandra 5.0.9 runs inside the app JVM and is reached on
127.0.0.1:9042. - Spring Session (Redis) uses the embedded SeaWave endpoint on
127.0.0.1:6379.
Deployment
- Kubernetes StatefulSet
redflywith 3 replicas (redfly-0..2) and a headless service for peer DNS. - Persistent volume claims for the Cassandra data directory.
- TLS at the ingress, and mTLS between pods and to Cassandra and Pulsar, with certificates from cert-manager.
- The ingress routes only port 8443 and blocks
/actuator/**apart from the health paths.
Dependencies
Embedded (in-process)
- SunLink (
ca.odssbc:sunlink) for leader election and membership. - SeaWave (
ca.odssbc:seawave) for the Spring Session store and the revocation deny-list. - Cassandra 5.0.9 in the app JVM.
Libraries
- Apache Shiro
- A PASETO v4 library with Ed25519 support
- A TOTP (RFC 6238) implementation
- An Argon2id implementation
- The Twilio Java SDK
- The Apache Pulsar client
External
- Pulsar cluster
- Twilio
- OpenBao
Redfly does not use Solr, RabbitMQ or Kafka.
Build and packaging
- Maven, producing a flat JAR repackage and an assembly zip.
- Dependency versions are the latest stable at build time.
- Container images and compiled builds are available on the Downloads page.