• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-build-unity
82%
master: 78%

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Repo Added 06 Jun 2018 07:51AM UTC
Files 71
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH PR-59
branch: PR-59
CHANGE BRANCH
x
Reset
  • PR-59
  • 2692491593e162389c4d535c3a47d57a34e23640
  • PR-10
  • PR-100
  • PR-101
  • PR-102
  • PR-103
  • PR-104
  • PR-106
  • PR-107
  • PR-11
  • PR-111
  • PR-113
  • PR-114
  • PR-115
  • PR-117
  • PR-118
  • PR-119
  • PR-12
  • PR-120
  • PR-122
  • PR-124
  • PR-125
  • PR-126
  • PR-127
  • PR-128
  • PR-129
  • PR-13
  • PR-130
  • PR-131
  • PR-133
  • PR-134
  • PR-135
  • PR-136
  • PR-137
  • PR-139
  • PR-14
  • PR-140
  • PR-141
  • PR-143
  • PR-144
  • PR-145
  • PR-146
  • PR-147
  • PR-148
  • PR-150
  • PR-152
  • PR-154
  • PR-16
  • PR-17
  • PR-18
  • PR-20
  • PR-21
  • PR-24
  • PR-25
  • PR-26
  • PR-27
  • PR-28
  • PR-29
  • PR-30
  • PR-31
  • PR-32
  • PR-35
  • PR-36
  • PR-37
  • PR-39
  • PR-40
  • PR-42
  • PR-44
  • PR-45
  • PR-46
  • PR-48
  • PR-49
  • PR-50
  • PR-53
  • PR-54
  • PR-55
  • PR-56
  • PR-57
  • PR-58
  • PR-6
  • PR-60
  • PR-61
  • PR-62
  • PR-63
  • PR-64
  • PR-65
  • PR-66
  • PR-67
  • PR-68
  • PR-7
  • PR-70
  • PR-71
  • PR-72
  • PR-73
  • PR-74
  • PR-75
  • PR-76
  • PR-77
  • PR-78
  • PR-79
  • PR-8
  • PR-80
  • PR-81
  • PR-82
  • PR-84
  • PR-85
  • PR-86
  • PR-87
  • PR-88
  • PR-89
  • PR-9
  • PR-90
  • PR-91
  • PR-92
  • PR-93
  • PR-94
  • PR-95
  • PR-96
  • PR-97
  • PR-98
  • PR-99
  • master
  • release/1.x

pending completion
3

push

jenkins

Add secret handling base types

Description
===========

This patch brings in base type for future secret handling. These types
are planned as a base API for further detailed implementation in future
patches / plugin extensions.

We have three basic sets of types

* _secrets_ - a wrapper type that holds a secret value
* _resolver_ - a basic object that can resolve a secret
* _secrets_ a map like structure to hold secrets in memory

Secrets
-------

The exposed type is an interface with a pretty simple API

```groovy
interface Secret<T> {
    T getSecretValue()
}
```

There is one base implementation available (`DefaultSecret`) and two concrete
implementations for secret file (`byte[]`) and secret text (`String`).
The concrete classes are only added for completion and are used in some
unit tests.

A second extended form of secret is the `EncryptedSecret`.

```groovy
interface EncryptedSecret<T> extends Secret<T> {
    T decryptedSecretValue(SecretKeySpec key)
    Secret<T> decryptSecret(SecretKeySpec key)
}
```

Objects of type `EncryptedSecret` should encrypt the secret value on
creation. The type contains a two API's to either convert this type back
to an unencrypted secret or to return the enclosed secret value
directly. To make implementation easier, this patch also adds an
`abstract` base class for `EncryptedSecret` objects calles
`AbstractEncryptedSecret`.
This class contains helper methods to encode and decode the secret value
with a passed `AES` key. The implementor needs to provide two
implementations:

```groovy
abstract T decryptedSecretValue(SecretKeySpec key)
abstract protected T encryptSecretValue(T secret, SecretKeySpec key)
```

Two concrete types are also provided for the `EncryptedSecret` called
`EncryptedSecretFile` and `EncryptedSecretText`.

Resolver
--------

The `SecretResolver` interface contains only one small API

```groovy
interface SecretResolver<T> {
    Secret<T> resolve(String secretId)
}
```
This patch provides a default... (continued)

861 of 1045 relevant lines covered (82.39%)

1.68 hits per line

Relevant lines Covered
Build:
Build:
1045 RELEVANT LINES 861 COVERED LINES
1.68 HITS PER LINE
Source Files on PR-59
  • Tree
  • List 30
  • Changed 30
  • Source Changed 30
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
3 PR-59 Add secret handling base types Description =========== This patch brings in base type for future secret handling. These types are planned as a base API for further detailed implementation in future patches / plugin extensions. We have three bas... push 14 Jul 2020 08:13AM UTC jenkins pending completion  
2 PR-59 Add secret handling base types Description =========== This patch brings in base type for future secret handling. These types are planned as a base API for further detailed implementation in future patches / plugin extensions. We have three bas... push 06 Jul 2020 10:43AM UTC jenkins pending completion  
1 PR-59 Add secret handling base types Description =========== This patch brings in base type for future secret handling. These types are planned as a base API for further detailed implementation in future patches / plugin extensions. We have three bas... push 02 Jul 2020 01:43PM UTC jenkins pending completion  
See All Builds (473)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc