-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1072ac2
commit d073178
Showing
7 changed files
with
104 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
model/src/main/java/io/quarkus/vault/runtime/client/dto/auth/VaultAwsIamAuth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package io.quarkus.vault.runtime.client.dto.auth; | ||
|
||
import io.quarkus.vault.runtime.client.dto.AbstractVaultDTO; | ||
|
||
/* | ||
{ | ||
"request_id": "9e923c23-3a45-ff0f-a3ea-5fffd94f1e2f", | ||
"lease_id": "", | ||
"renewable": false, | ||
"lease_duration": 0, | ||
"data": null, | ||
"wrap_info": null, | ||
"warnings": null, | ||
"auth": { | ||
"client_token": "s.aWvAbfqWpoqPpbTebdwDEVuu", | ||
"accessor": "abbJ8vD3JghuH37Up5d0SLYM", | ||
"policies": [ | ||
"default", | ||
"mypolicy" | ||
], | ||
"token_policies": [ | ||
"default", | ||
"mypolicy" | ||
], | ||
"metadata": { | ||
"role": "myapprole", | ||
"service_account_name": "default", | ||
"service_account_namespace": "vaultapp", | ||
"service_account_secret_name": "default-token-qj4b5", | ||
"service_account_uid": "27c26105-92d3-11e9-9202-025000000001" | ||
}, | ||
"lease_duration": 7200, | ||
"renewable": true, | ||
"entity_id": "62f850bb-4835-a9ea-471b-006a92017128", | ||
"token_type": "service", | ||
"orphan": true | ||
} | ||
} | ||
*/ | ||
public class VaultAwsIamAuth extends AbstractVaultDTO<Object, VaultAwsIamAuthAuth> { | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
model/src/main/java/io/quarkus/vault/runtime/client/dto/auth/VaultAwsIamAuthAuth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package io.quarkus.vault.runtime.client.dto.auth; | ||
|
||
public class VaultAwsIamAuthAuth extends AbstractVaultAuthAuth<VaultAwsIamAuthAuthMetadata> { | ||
} |
8 changes: 8 additions & 0 deletions
8
...l/src/main/java/io/quarkus/vault/runtime/client/dto/auth/VaultAwsIamAuthAuthMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.quarkus.vault.runtime.client.dto.auth; | ||
|
||
import io.quarkus.vault.runtime.client.dto.VaultModel; | ||
|
||
public class VaultAwsIamAuthAuthMetadata implements VaultModel { | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...c/main/java/io/quarkus/vault/runtime/client/authmethod/VaultInternalAwsIamAuthMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.vault.runtime.client.authmethod; | ||
|
||
import io.quarkus.vault.runtime.VaultConfigHolder; | ||
import io.quarkus.vault.runtime.client.VaultClient; | ||
import io.quarkus.vault.runtime.client.VaultInternalBase; | ||
import io.quarkus.vault.runtime.client.dto.auth.VaultAwsIamAuth; | ||
import io.smallrye.mutiny.Uni; | ||
import jakarta.inject.Inject; | ||
import jakarta.inject.Singleton; | ||
|
||
@Singleton | ||
public class VaultInternalAwsIamAuthMethod extends VaultInternalBase { | ||
|
||
@Inject | ||
private VaultConfigHolder vaultConfigHolder; | ||
|
||
@Override | ||
protected String opNamePrefix() { | ||
return super.opNamePrefix() + " [AUTH (aws iam)]"; | ||
} | ||
|
||
public Uni<VaultAwsIamAuth> login(final VaultClient vaultClient) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters