Automated Testing / CI
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza con .github/workflows/test-integration.yml y la configuración del emulador gestionada por Gradle descrita en la issue. Investiga cómo las imágenes de emulador de Android 12 y posteriores generan y rotan las raíces de atestación, y después define un enfoque reproducible de CI que evite construir cadenas manualmente y preserve el comportamiento de la lista negra de atestación de software.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi!
I've realized that the (old) SW attestation root is hardwired in the code as explicitly blacklisted.
How would I then test inside a CI without having to manually construct an attestation certificate chain to a custom root? After all, I don't want to be inadvertently testing whether I correctly constructed an attestation chain, but just use an emulator to make sure the chain is representative of a real chain. (See also our GitHub action that spins up an emulator to attest against a service running on localhost).
On a related note:
This approach for CI only works up to Android 12, because more recent Images seem to rotate(?) the root certificate. I can only guess that it might have something to do with also emulating RKP (Android 13+ emulators can also "run out of keys" just like a real RKP-capable device).
This begs the question: how is CI supposed to be done?
- Use Android 12 images and patch out the hardwired blacklist for the SW-certificate?
- Use newer emulator images, create a chain, extract the root, configure that as trust anchor before each test?
Full disclosure: I have yet to wrap my head around how the rotation/rollover of emulator root certificates works, because in the GitHub CI pipeline that use the same Gradle-managed emulator for testing uses different roots than on my local machine and (other) post-Android-12 emulators on other build hosts use yet other certificates. Are those root certs dynamically created on first boot of the emulator on each host?
All that being said, blacklisting the SW attestation root does not affect us so far, but should any future refactor pull the "SW attestation root = bad" logic into the PKIX cert chain validator, it would break not only our CI but also those downstream who use Warden Supreme in production and rely on emulators for testing on T stages, etc…
- Lenguaje dominante
- Kotlin
- Estrellas
- 159
- Forks
- 47
- Merge medio
- 3 d 14 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de android/keyattestation
-
Support for older Java versionsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
android/keyattestation#134 ·
Todos los issues de android/keyattestation
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MetrolistGroup/Metrolist#5426 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
micronizationlab/glafira-ai-hub#785 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sorsama/deepseek-harness-mobile#154 ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día