-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from iExecBlockchainComputing/sgx
Implement full TEE with sgx
- Loading branch information
Showing
9 changed files
with
88 additions
and
17 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
36 changes: 36 additions & 0 deletions
36
src/main/java/com/iexec/core/configuration/SconeCasConfiguration.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,36 @@ | ||
package com.iexec.core.configuration; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
|
||
/** | ||
* CAS: Configuration and Attestation Service. | ||
* It handles configurations and secret provisioning: a user uploads secrets | ||
* and configuration infos for a specific service to the CAS. | ||
* When a service wants to access those secrets, it sends a quote with its MREnclave. | ||
* The CAS attests the quote through Intel Attestation Service and sends the secrets | ||
* if the MREnclave is as expected. | ||
* | ||
* MREnclave: an enclave identifier, created by hashing all its | ||
* code. It guarantees that a code behaves exactly as expected. | ||
*/ | ||
@Component | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class SconeCasConfiguration { | ||
|
||
@Value("${scone.cas.host}") | ||
private String host; | ||
|
||
@Value("${scone.cas.port}") | ||
private String port; | ||
|
||
public String getURL() { | ||
return host + ":" + port; | ||
} | ||
} |
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
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
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
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
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
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
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